Skip to content

Commit f122377

Browse files
committed
feat(wE): make wE false by default, and when True, run for bulk water too.
1 parent f6278e2 commit f122377

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

‎CodeEntropy/config/argparse.py‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,16 @@ class ArgSpec:
130130
),
131131
"water_entropy": ArgSpec(
132132
type=bool,
133-
default=True,
134-
help="If set to False, disables the calculation of water entropy",
133+
default=False,
134+
help="If set to True, enables the calculation of water entropy",
135135
),
136136
"water_entropy_parallel": ArgSpec(
137137
type=bool,
138138
default=True,
139-
help="If set to False, disables the parallel calculation of water entropy and switches to serial",
139+
help=(
140+
"If set to False, disables the parallel calculation of "
141+
"water entropy and switches to serial"
142+
),
140143
),
141144
"grouping": ArgSpec(
142145
type=str,

‎CodeEntropy/entropy/water.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ def _run_solver(self, inputs: WaterEntropyInput):
122122
Tuple of solver outputs.
123123
"""
124124
logger.info(
125-
"[WaterEntropy] Computing water entropy (start=%s, end=%s, step=%s, parallel=%s)",
125+
"[WaterEntropy] Computing water entropy (start=%s, end=%s, step=%s, "
126+
"parallel=%s)",
126127
inputs.start,
127128
inputs.end,
128129
inputs.step,

‎CodeEntropy/entropy/workflow.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def execute(self) -> None:
105105
reduced_universe, groups
106106
)
107107

108-
if self._args.water_entropy and water_groups and nonwater_groups:
108+
if self._args.water_entropy and water_groups:
109109
self._compute_water_entropy(frame_selection, water_groups)
110110
else:
111111
nonwater_groups.update(water_groups)

0 commit comments

Comments
 (0)