Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
odespard committed Aug 20, 2024
1 parent b7fbf48 commit 16aa10f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion alphadia/workflow/peptidecentric.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ def save_managers(self):
The FDR manager is not saved because it is not used in subsequent parts of the workflow.
"""
self.calibration_manager.save()
self.optimization_manager.save()
self.optimization_manager.save() # this replaces the .save() call when the optimization manager is fitted, since there seems little point in saving an intermediate optimization manager.

def extraction(self):
self.timing_manager.set_start_time("extraction")
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ def test_optimization_manager_fit():
assert optimization_manager.fwhm_cycles == 10
assert optimization_manager.fwhm_mobility == 0.02

optimization_manager.save()
os.remove(temp_path)


Expand Down

0 comments on commit 16aa10f

Please sign in to comment.