Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Weimin Liu <[email protected]>
  • Loading branch information
weimin-liu committed Feb 28, 2024
1 parent 9388063 commit 760ad85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mfe/from_txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ def msi_from_txt(raw_txt_path: str, min_int=10000, min_snr=1) -> dict:

lines = raw_txt.readlines()

lines = lines[1:]
# only keep the lines that contain the spectrum, i.e., starts with 'R'
lines = [line for line in lines if line.startswith('R')]

# pack the function with partial, using the min_int and min_snr as default arguments
parse_da_export_partial = partial(parse_da_export, min_int=min_int, min_snr=min_snr)
Expand Down

0 comments on commit 760ad85

Please sign in to comment.