ngio 0.1.4__py3-none-any.whl → 0.1.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -110,7 +110,13 @@ def vanilla_omero_v04_to_fractal(omero04: Omero04) -> Omero:
110
110
  for channel04 in omero04.channels:
111
111
  # Convert the window to a dictionary
112
112
  label = channel04.label
113
- wavelength_id = channel04.extra_fields.get("wavelength_id", label)
113
+
114
+ if "wavelength_id" in channel04.extra_fields:
115
+ # If the wavelength_id is present, pop it from the extra fields
116
+ # so that it is not added to the channel_visualisation
117
+ wavelength_id = channel04.extra_fields.pop("wavelength_id")
118
+ else:
119
+ wavelength_id = label
114
120
 
115
121
  if channel04.window is None:
116
122
  window04 = Window04(
@@ -161,6 +167,7 @@ def fractal_omero_to_vanilla_v04(omero: Omero) -> Omero04:
161
167
  color=channel.channel_visualisation.color,
162
168
  active=channel.channel_visualisation.active,
163
169
  window=window04,
170
+ wavelength_id=channel.wavelength_id,
164
171
  **channel.channel_visualisation.extra_fields,
165
172
  )
166
173
  list_channels04.append(channel04)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ngio
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: Next Generation file format IO
5
5
  Project-URL: homepage, https://github.com/lorenzocerrone/ngio
6
6
  Project-URL: repository, https://github.com/lorenzocerrone/ngio
@@ -18,7 +18,7 @@ ngio/ngff_meta/meta_handler.py,sha256=YDqOl-UUzE-flqC2EXGbJc-ctqZsULsZzA0Xj6X7Xk
18
18
  ngio/ngff_meta/utils.py,sha256=eZSlm1-XJAGiThSol8RW7a_61Crj91f9vXbBGssWnhk,7978
19
19
  ngio/ngff_meta/v04/__init__.py,sha256=zlIL9-R3fNT_mgrOxE51dGyhnJlZ1UX0uRNeEl8WuRM,239
20
20
  ngio/ngff_meta/v04/specs.py,sha256=cjdMlL8L8Sbk-cGq5J3-wgOxQ9zr3r3u2q09fDI11kM,4256
21
- ngio/ngff_meta/v04/zarr_utils.py,sha256=ZCheqDpuaRqxlJCn3Q6igszbvw3X_Nr4qAp-RA-NaT0,11567
21
+ ngio/ngff_meta/v04/zarr_utils.py,sha256=02ISrsAGIXB1iLfcXPpqDljDlp0vC8Y_MyL5c016FY8,11859
22
22
  ngio/pipes/__init__.py,sha256=Ypt9bCqrk0qSg81GTBNqH5oljMg2rQPwyOWVZRKzaYg,299
23
23
  ngio/pipes/_slicer_transforms.py,sha256=UyN_aeAg-mtO9wsbqcvUIvnV5PJFTbj8AUmegMsF05k,5812
24
24
  ngio/pipes/_transforms.py,sha256=S7PqIwyf10i1cjQ-lKcJLr7YLfW2zKJKGf6DKKP3bTA,1067
@@ -38,7 +38,7 @@ ngio/utils/_common_types.py,sha256=ylo6RfCyKVyXPx1Mz7WAwFfz8F85R9yd2_TPlRGRUyo,1
38
38
  ngio/utils/_errors.py,sha256=rLy9LOFkaEmsSD0-nToKUrXY1ZuPfcpcGpmeHVSnTNg,583
39
39
  ngio/utils/_logger.py,sha256=zvFG-Ta3ZIJxTyY93zYoPGp2A6TTUf7mSO0zr_uFy4A,837
40
40
  ngio/utils/_pydantic_utils.py,sha256=uN5-76cjE3bvV8GvLX62fpxoRi8GOsZu6K5aynGH1bY,1711
41
- ngio-0.1.4.dist-info/METADATA,sha256=PjRzmV7qfMiHPuUPexCO4rLkoyKeTe6QEFBft8dPEnM,5705
42
- ngio-0.1.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
43
- ngio-0.1.4.dist-info/licenses/LICENSE,sha256=UgN_a1QCeNh9rZWfz-wORQFxE3elQzLWPQaoK6N6fxQ,1502
44
- ngio-0.1.4.dist-info/RECORD,,
41
+ ngio-0.1.5.dist-info/METADATA,sha256=foHqb5q_WPlk8-fJ2fnwBcirrAY_rbcT0NYPATqy7us,5705
42
+ ngio-0.1.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
43
+ ngio-0.1.5.dist-info/licenses/LICENSE,sha256=UgN_a1QCeNh9rZWfz-wORQFxE3elQzLWPQaoK6N6fxQ,1502
44
+ ngio-0.1.5.dist-info/RECORD,,
File without changes