Skip to content

Commit

Permalink
apply suggestions and set default value of debug to false
Browse files Browse the repository at this point in the history
  • Loading branch information
VGPReys committed Sep 20, 2024
1 parent b021990 commit 5357e08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/haddock/modules/analysis/caprieval/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _run(self) -> None:
path=Path("."),
reference=reference,
params=self.params,
less_io=_less_io,
debug=not _less_io,
)
)

Expand Down
6 changes: 3 additions & 3 deletions src/haddock/modules/analysis/caprieval/capri.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/haddock/modules/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5357e08

Please sign in to comment.