Skip to content

Commit 81ff852

Browse files
committed
Fix formatting
1 parent 9c4c354 commit 81ff852

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

im2deep/calibration.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,11 @@ def get_charge(pf):
332332
# Extract CCS from metadata if it's not a direct column
333333
if "CCS" not in target_work.columns and "metadata" in target_work.columns:
334334
target_work["CCS"] = target_work["metadata"].apply(
335-
lambda x: float(x.get("CCS")) if isinstance(x, dict) and x.get("CCS") is not None else np.nan
335+
lambda x: (
336+
float(x.get("CCS")) # type: ignore[union-attr]
337+
if isinstance(x, dict) and x.get("CCS") is not None
338+
else np.nan
339+
)
336340
)
337341

338342
source_work["peptide_key"] = source_work["peptidoform"].apply(get_peptide_key)

0 commit comments

Comments
 (0)