Skip to content

Commit

Permalink
fix: fix spectrum subtype
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Dec 13, 2024
1 parent 38429a8 commit 597a223
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fpbase/_fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ def _norm_name(name: str) -> str:


def get_microscope(id: str = "i6WL2W") -> Microscope:
print("microscope", id)
return FPbaseClient.instance().get_microscope(id)


Expand All @@ -233,14 +234,17 @@ def get_fluorophore(name: str) -> Fluorophore:


def get_filter(name: str) -> Filter:
print("filter", name)
return FPbaseClient.instance().get_filter(name)


def get_camera(name: str) -> Camera:
print("camera", name)
return FPbaseClient.instance().get_camera(name)


def get_light_source(name: str) -> LightSource:
print("light", name)
return FPbaseClient.instance().get_light_source(name)


Expand Down
1 change: 1 addition & 0 deletions src/fpbase/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class SpectrumType(str, Enum):
PD = "PD"
QE = "QE"
AB = "AB"
SP = "SP"

def __str__(self) -> str: # pragma: no cover
"""Return the string representation of the enum."""
Expand Down

0 comments on commit 597a223

Please sign in to comment.