Skip to content

Commit 20dc893

Browse files
committed
console: show user warning on console rather than logs
1 parent 72d220d commit 20dc893

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎CodeEntropy/entropy/workflow.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ def execute(self) -> None:
106106
)
107107

108108
if self._args.water_entropy and water_groups:
109-
if nonwater_groups:
110-
logger.warning("You are running waterEntropy on bulk water, this will be slow!")
109+
if not nonwater_groups:
110+
console.print("Warning: You are running waterEntropy on bulk water, this will be slow!")
111111
self._compute_water_entropy(frame_selection, water_groups)
112112
else:
113113
nonwater_groups.update(water_groups)

0 commit comments

Comments
 (0)