Skip to content

Commit

Permalink
clean-up-workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
Arslan-Siraj committed Oct 16, 2023
1 parent f715ced commit f0d5866
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ini2dec.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def ini2dict(path: str, sections: list):
# Initialize an empty dictionary to store the extracted information
config_dict = {}

## dictionaries used to capture these variable from sections
# dictionaries used to capture these variable from sections
precursor_mass_tolerance = {}
fragment_mass_tolerance = {}
precursor_mass_tolerance_unit = {}
Expand All @@ -44,7 +44,7 @@ def ini2dict(path: str, sections: list):
"restrictions": restrictions_list
}

## because the mass tolerance same section in ini file, so need to validate from descriptions
# because the mass tolerance same section in ini file, so need to validate from descriptions

if "Precursor mass tolerance" in node_desc:
entry["name"] = "precursor_mass_tolerance"
Expand All @@ -65,12 +65,12 @@ def ini2dict(path: str, sections: list):
# Store the entry in the section dictionary
config_dict[section_name] = entry

## add mass tolerance dictionaries to config
# add mass tolerance dictionaries to config
if "mass_tolerance" in section_name:
config_dict["precursor_mass_tolerance"] = precursor_mass_tolerance
config_dict["fragment_mass_tolerance"] = fragment_mass_tolerance

## add mass tolerance unit dictionaries to config
# add mass tolerance unit dictionaries to config
if "mass_tolerance_unit" in section_name:
config_dict["precursor_mass_tolerance_unit"] = precursor_mass_tolerance_unit
config_dict["fragment_mass_tolerance_unit"] = fragment_mass_tolerance_unit
Expand Down

0 comments on commit f0d5866

Please sign in to comment.