Skip to content

Commit

Permalink
#296: declare variables in __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwoer committed Aug 7, 2024
1 parent 98a4b48 commit 430b772
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions alphadia/workflow/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,14 @@ def __init__(
Configuration for the workflow. This will be used to initialize the calibration manager and fdr manager
"""
self._instance_name = instance_name
self._parent_path = os.path.join(config["output"], TEMP_FOLDER)
self._config = config
self._instance_name: str = instance_name
self._parent_path: str = os.path.join(config["output"], TEMP_FOLDER)
self._config: dict = config
self.reporter: reporting.Pipeline | None = None
self._dia_data: bruker.TimsTOFTranspose | alpharaw.AlphaRaw | None = None
self._spectral_library: SpecLibBase | None = None
self._calibration_manager: manager.CalibrationManager | None = None
self._optimization_manager: manager.OptimizationManager | None = None

if not os.path.exists(self.parent_path):
logger.info(f"Creating parent folder for workflows at {self.parent_path}")
Expand Down

0 comments on commit 430b772

Please sign in to comment.