Skip to content

Commit

Permalink
removed scans field from dataloaders
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilferrit committed Oct 14, 2024
1 parent fff7153 commit e995d98
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions casanovo/denovo/dataloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,19 +123,9 @@ def __init__(
scale_to_unit_norm,
]
self.custom_field_test_mgf = [
CustomField(
"scans",
lambda x: (
x["params"]["scans"]
if "scans" in x["params"]
else x["params"]["title"]
),
pa.string(),
),
CustomField("title", lambda x: x["params"]["title"], pa.string()),
]
self.custom_field_test_mzml = [
CustomField("scans", lambda x: x["id"], pa.string()),
CustomField("title", lambda x: x["id"], pa.string()),
]

Expand Down

0 comments on commit e995d98

Please sign in to comment.