We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c4c354 commit 81ff852Copy full SHA for 81ff852
1 file changed
im2deep/calibration.py
@@ -332,7 +332,11 @@ def get_charge(pf):
332
# Extract CCS from metadata if it's not a direct column
333
if "CCS" not in target_work.columns and "metadata" in target_work.columns:
334
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
+ 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
+ )
340
)
341
342
source_work["peptide_key"] = source_work["peptidoform"].apply(get_peptide_key)
0 commit comments