ome-types
ome-types copied to clipboard
native Python dataclasses for the OME data model
As of 11h ago `xsdata` has a new version (24.4) and `to_xml` breaks spectacularly in omero-cli-transfer now. I can confirm that the same exact build ran 2 days ago with...
if you do, for example ```python instrument = Instrument(...) image = Image(instrument_ref=instrument) ``` you get an error. there are many ways we could facilitate that, and should
@joshmoore, here's the beginning of a modulo type ```python from ome_types.model import OME, modulo m = modulo.ModuloAnnotation() m.value.modulos.modulo_along_c = modulo.Modulo( type=modulo.ModuloType.ANGLE, start=0, end=360 ) ome = OME() ome.structured_annotations.append(m) print(ome.to_xml()) ```...
there's a lot of hacks we're having to do in our internal type checking, lots of type: ignores and stuff, surrounding the metadata field in `pydantic.Field` ... which has been...
This adds convenience functions that make it easy to construct ome objects for arrays: something like: ```python data = np.empty((2, 2, 3, 10, 20, 3), dtype=np.uint16) img = ome_image_like( data,...
not sure what happened upstream, but xmlschema 2.5 breaks tests: ```pytb def validate_xml_with_xmlschema( xml: XMLSource, schema: Path | str | None = None, warn_on_schema_update: bool = True ) -> AnyElementTree:...
when getting repr on `OME.structured_annotations` ```python File ~/mambaforge/envs/ome-types/lib/python3.11/site-packages/rich/pretty.py:887, in traverse(_object, max_length, max_string, max_depth) 884 node.is_namedtuple = _is_namedtuple(obj) 885 return node --> 887 node = _traverse(_object, root=True) 888 return node File...
The `BinData` schema element is really just an XML-friendly encoding for a series of raw bytes, and the ideal Python type for that is `bytes`. If we make that change,...
updates: - [github.com/abravalheri/validate-pyproject: v0.16 → v0.18](https://github.com/abravalheri/validate-pyproject/compare/v0.16...v0.18) - [github.com/crate-ci/typos: v1.20.9 → v1.23.6](https://github.com/crate-ci/typos/compare/v1.20.9...v1.23.6) - [github.com/astral-sh/ruff-pre-commit: v0.4.1 → v0.5.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.1...v0.5.6) - [github.com/pre-commit/mirrors-mypy: v1.9.0 → v1.11.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.9.0...v1.11.1)
Bumps [CodSpeedHQ/action](https://github.com/codspeedhq/action) from 2 to 3. Release notes Sourced from CodSpeedHQ/action's releases. v3.0.0 What's Changed chore(ci): run ci on every pull request by @adriencaccia in CodSpeedHQ/runner#23 feat/add codspeed cli by...