Skip to content

Commit

Permalink
Merge pull request #369 from pymzml/feature/clean_build_artifacts
Browse files Browse the repository at this point in the history
Save GSGW test output file to example_data
  • Loading branch information
MKoesters authored Dec 13, 2024
2 parents cb8a479 + c5e2648 commit c5fce21
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tox_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.8', '3.9', '3.10']
python: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v4
- name: Setup Python
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ General information

Module to parse mzML data in Python based on cElementTree

Copyright 2010-2021 by:
Copyright 2010-2024 by:

| M. Kösters,
| J. Leufken,
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Installation
numpy
plotly==4.12.0
pynumpress==0.0.5
pynumpress==0.0.9
regex
ms_deisotope==0.0.14
ms_deisotope==0.0.14
13 changes: 11 additions & 2 deletions tests/file_io_indexed_gzip_writer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@ def setUp(self):
def tearDown(self):
""" """
self.Writer.close()
os.remove(os.path.abspath(os.path.join(".", "tests", "data", "unittest.mzml")))
try:
os.remove(os.path.abspath(os.path.join(".", "tests", "data", "unittest.mzml")))
except FileNotFoundError:
pass
try:
os.remove(os.path.abspath(os.path.join(".", "tests", "data", "unittest2.mzml")))
except FileNotFoundError:
pass

def test_init(self):
self.assertEqual(self.Writer.crc32, 0)
Expand Down Expand Up @@ -128,7 +135,9 @@ def test_add_data(self):
"uncompressed",
"CF_07062012_pH8_2_3A.mzML",
)
self.Writer = GSGW(test_file, max_idx=80, max_idx_len=8, max_offset_len=8)
self.Writer = GSGW(test_file, max_idx=80, max_idx_len=8, max_offset_len=8, output_path=os.path.abspath(
os.path.join(".", "tests", "data", "unittest2.mzml")
))
self.Writer.add_data(test_string, "a")
self.Writer.close()
file = open(self.paths[0], "rb")
Expand Down

0 comments on commit c5fce21

Please sign in to comment.