Skip to content

Commit

Permalink
chore: fix flake8 rule B026
Browse files Browse the repository at this point in the history
  • Loading branch information
JSchlensok committed Jun 25, 2024
1 parent c59dbfc commit b306a8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ per-file-ignores =
tests/unit_tests/test_parquet.py:B908,DAR101
noxfile.py:DAR101
spectrum_io/raw/thermo_raw.py:S603,S404
spectrum_io/raw/msraw.py:B026,S405,S314
spectrum_io/raw/msraw.py:S405,S314
spectrum_io/d/masterSpectrum.py:C901
docs/conf.py:S404,S607,S603
2 changes: 1 addition & 1 deletion spectrum_io/raw/msraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def _read_mzml_pyteomics(file_list: List[Path], *args, **kwargs) -> pd.DataFrame
for file_path in file_list:
mass_analyzer = get_mass_analyzer(file_path)
logger.info(f"Reading mzML file: {file_path}")
data_iter = mzml.read(source=str(file_path), *args, **kwargs)
data_iter = mzml.read(str(file_path), *args, **kwargs)
file_name = file_path.stem
try:
instrument_params = data_iter.get_by_id("commonInstrumentParams")
Expand Down

0 comments on commit b306a8e

Please sign in to comment.