Skip to content

Commit

Permalink
drop it hard
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgWa committed Jan 16, 2025
1 parent aec4957 commit 6883941
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions alphabase/spectral_library/flat.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,13 +372,8 @@ def to_speclib_base(
setattr(speclib_base, f"_fragment_{col}_df", df)

# Drop flat indices from precursor_df if they exist
drop_columns = [
col
for col in ["flat_frag_start_idx", "flat_frag_stop_idx"]
if col in speclib_base._precursor_df.columns
]
speclib_base._precursor_df = speclib_base._precursor_df.drop(
drop_columns, axis=1
["flat_frag_start_idx", "flat_frag_stop_idx"], axis=1, errors="ignore"
)

return speclib_base
Expand Down

0 comments on commit 6883941

Please sign in to comment.