From 5357e081abb8a168e9beaf8750e4f80c25a810fe Mon Sep 17 00:00:00 2001 From: VGPReys Date: Fri, 20 Sep 2024 11:37:50 +0200 Subject: [PATCH] apply suggestions and set default value of debug to false --- src/haddock/modules/analysis/caprieval/__init__.py | 2 +- src/haddock/modules/analysis/caprieval/capri.py | 6 +++--- src/haddock/modules/defaults.yaml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/haddock/modules/analysis/caprieval/__init__.py b/src/haddock/modules/analysis/caprieval/__init__.py index 92f49e435..894b8a906 100644 --- a/src/haddock/modules/analysis/caprieval/__init__.py +++ b/src/haddock/modules/analysis/caprieval/__init__.py @@ -133,7 +133,7 @@ def _run(self) -> None: path=Path("."), reference=reference, params=self.params, - less_io=_less_io, + debug=not _less_io, ) ) diff --git a/src/haddock/modules/analysis/caprieval/capri.py b/src/haddock/modules/analysis/caprieval/capri.py index 98efd7e62..47b8f85b0 100644 --- a/src/haddock/modules/analysis/caprieval/capri.py +++ b/src/haddock/modules/analysis/caprieval/capri.py @@ -179,7 +179,7 @@ def __init__( path: Path, reference: PDBPath, params: ParamMap, - less_io: Optional[bool] = True, + debug: Optional[bool] = False, ) -> None: """ Initialize the class. @@ -225,7 +225,7 @@ def __init__( self.output = self.output_ss_fname self.identificator = identificator self.core_model_idx = identificator - self.less_io = less_io + self.debug = debug def calc_irmsd(self, cutoff: float = 5.0) -> None: """Calculate the I-RMSD. @@ -654,7 +654,7 @@ def run(self) -> Union[None, "CAPRI"]: log.debug(f"id {self.identificator}, calculating global RMSD") self.calc_global_rmsd() - if not self.less_io: + if self.debug: self.make_output() else: # The scheduler will use the return of the `run` method as the output of the tasks diff --git a/src/haddock/modules/defaults.yaml b/src/haddock/modules/defaults.yaml index 972a19b66..5e4210915 100644 --- a/src/haddock/modules/defaults.yaml +++ b/src/haddock/modules/defaults.yaml @@ -139,7 +139,7 @@ offline: group: "execution" explevel: easy debug: - default: true + default: false type: boolean title: Write intermediate and stdout files. short: Write intermediate and stdout files.