- some ome fixes
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -9,3 +9,4 @@
|
|||||||
/ndbioimage/jars
|
/ndbioimage/jars
|
||||||
/tests/files/*
|
/tests/files/*
|
||||||
/poetry.lock
|
/poetry.lock
|
||||||
|
/dist/
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
# ndbioimage - Work in progress
|
# ndbioimage - Work in progress
|
||||||
|
|
||||||
Exposes (bio) images as a numpy ndarray-like-object, but without loading the whole
|
Exposes (bio) images as a numpy ndarray-like object, but without loading the whole
|
||||||
image into memory, reading from the file only when needed. Some metadata is read
|
image into memory, reading from the file only when needed. Some metadata is read
|
||||||
and stored in an ome structure. Additionally, it can automatically calculate an affine
|
and stored in an ome structure. Additionally, it can automatically calculate an affine
|
||||||
transform that corrects for chromatic abberrations etc. and apply it on the fly to the image.
|
transform that corrects for chromatic aberrations etc. and apply it on the fly to the image.
|
||||||
|
|
||||||
Currently, supports imagej tif files, czi files, micromanager tif sequences and anything
|
Currently, supports imagej tif files, czi files, micromanager tif sequences and anything
|
||||||
bioformats can handle.
|
bioformats can handle.
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ class Reader(AbstractReader, ABC):
|
|||||||
|
|
||||||
for light_source in instrument.find("LightSources"):
|
for light_source in instrument.find("LightSources"):
|
||||||
if light_source.find("LightSourceType").find("Laser") is not None:
|
if light_source.find("LightSourceType").find("Laser") is not None:
|
||||||
ome.instruments[0].light_source_group.append(
|
ome.instruments[0].lasers.append(
|
||||||
model.Laser(
|
model.Laser(
|
||||||
id=f'LightSource:{light_source.attrib["Id"]}',
|
id=f'LightSource:{light_source.attrib["Id"]}',
|
||||||
power=float(text(light_source.find("Power"))),
|
power=float(text(light_source.find("Power"))),
|
||||||
@@ -214,7 +214,7 @@ class Reader(AbstractReader, ABC):
|
|||||||
x=float(text(geometry.find("Left"))),
|
x=float(text(geometry.find("Left"))),
|
||||||
y=float(text(geometry.find("Top")))))
|
y=float(text(geometry.find("Top")))))
|
||||||
ome.rois.append(roi)
|
ome.rois.append(roi)
|
||||||
ome.images[0].roi_ref.append(model.ROIRef(id=f"ROI:{idx}"))
|
ome.images[0].roi_refs.append(model.ROIRef(id=f"ROI:{idx}"))
|
||||||
idx += 1
|
idx += 1
|
||||||
return ome
|
return ome
|
||||||
|
|
||||||
@@ -262,7 +262,7 @@ class Reader(AbstractReader, ABC):
|
|||||||
|
|
||||||
for light_source in instrument.find("LightSources"):
|
for light_source in instrument.find("LightSources"):
|
||||||
if light_source.find("LightSourceType").find("Laser") is not None:
|
if light_source.find("LightSourceType").find("Laser") is not None:
|
||||||
ome.instruments[0].light_source_group.append(
|
ome.instruments[0].lasers.append(
|
||||||
model.Laser(
|
model.Laser(
|
||||||
id=light_source.attrib["Id"],
|
id=light_source.attrib["Id"],
|
||||||
model=text(light_source.find("Manufacturer").find("Model")),
|
model=text(light_source.find("Manufacturer").find("Model")),
|
||||||
@@ -409,7 +409,7 @@ class Reader(AbstractReader, ABC):
|
|||||||
x=float(text(geometry.find("Left"))),
|
x=float(text(geometry.find("Left"))),
|
||||||
y=float(text(geometry.find("Top")))))
|
y=float(text(geometry.find("Top")))))
|
||||||
ome.rois.append(roi)
|
ome.rois.append(roi)
|
||||||
ome.images[0].roi_ref.append(model.ROIRef(id=f"ROI:{idx}"))
|
ome.images[0].roi_refs.append(model.ROIRef(id=f"ROI:{idx}"))
|
||||||
idx += 1
|
idx += 1
|
||||||
return ome
|
return ome
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "ndbioimage"
|
name = "ndbioimage"
|
||||||
version = "2023.8.1"
|
version = "2023.8.2"
|
||||||
description = "Bio image reading, metadata and some affine registration."
|
description = "Bio image reading, metadata and some affine registration."
|
||||||
authors = ["W. Pomp <w.pomp@nki.nl>"]
|
authors = ["W. Pomp <w.pomp@nki.nl>"]
|
||||||
license = "GPLv3"
|
license = "GPLv3"
|
||||||
@@ -17,7 +17,7 @@ pandas = "*"
|
|||||||
tifffile = "*"
|
tifffile = "*"
|
||||||
czifile = "*"
|
czifile = "*"
|
||||||
tiffwrite = "*"
|
tiffwrite = "*"
|
||||||
ome-types = "^0.4"
|
ome-types = "^0.4.0"
|
||||||
pint = "*"
|
pint = "*"
|
||||||
tqdm = "*"
|
tqdm = "*"
|
||||||
lxml = "*"
|
lxml = "*"
|
||||||
|
|||||||
Reference in New Issue
Block a user