Skip to content

Commit

Permalink
Merge pull request #156 from fmi-faim/none-wavelength
Browse files Browse the repository at this point in the history
None wavelength
  • Loading branch information
tibuch authored Jul 3, 2024
2 parents 1d64e04 + af5c816 commit f08b4a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/faim_ipa/visiview/ome_companion_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def get_channels(metadata: lxml.etree.ElementTree) -> dict[str, ChannelMetadata]
wavelength = int(channel["EmissionWavelength"])
display_color = rgb_to_hex(*wavelength_to_rgb(wavelength))
else:
wavelength = channel["Name"]
wavelength = None
display_color = "#ffffff"
ch_metadata[f"w{idx+1}"] = ChannelMetadata(
channel_index=idx,
Expand Down Expand Up @@ -152,9 +152,9 @@ def get_stage_positions(
y_pos = float(stage_label["Y"])
x_pos = float(stage_label["X"])
positions[str(i + 1)] = (y_pos, x_pos)
except StopIteration:
# No stage positions
pass
except (StopIteration, KeyError):
# No stage positions in metadata
positions[str(i + 1)] = (0, 0)

return positions

Expand Down
Empty file removed tests/detection/__init__.py
Empty file.
File renamed without changes.

0 comments on commit f08b4a9

Please sign in to comment.