8000 remove str cast · Benchling-Open-Source/allotropy@c6d5db1 · GitHub
[go: up one dir, main page]

Skip to content

Commit c6d5db1

Browse files
remove str cast
1 parent a30045b commit c6d5db1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/allotropy/parsers/thermo_fisher_nanodrop_eight/nanodrop_eight_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def _get_float(data_frame: pd.DataFrame, row: int, column: str) -> JsonFloat:
100100
def _get_concentration(
101101
conc: JsonFloat, unit: Optional[str]
102102
) -> Optional[ConcentrationType]:
103-
if unit in CONCENTRATION_UNIT_TO_TQUANTITY and isinstance(conc, float):
104-
cls = CONCENTRATION_UNIT_TO_TQUANTITY[str(unit)]
103+
if unit and unit in CONCENTRATION_UNIT_TO_TQUANTITY and isinstance(conc, float):
104+
cls = CONCENTRATION_UNIT_TO_TQUANTITY[unit]
105105
return cls(value=conc)
106106

107107
return None

0 commit comments

Comments
 (0)
0