Repository navigation
Conversation
harryswift01
approved these changes
Nov 11, 2026
harryswift01
left a comment
Member
There was a problem hiding this comment.
This looks like a great addition to ensure that CodeEntropy is fully aligned with how waterEntropy currently handles its results while also ensuring that the parallel execution is working as intended as well as giving the users more information about the running calculations. It looks like everything is in the correct place and the tests and docs have been updated so I'm very happy to see this merged in, thanks for this!
harryswift01
deleted the
483-align-waterentropy-outputs-with-v230-and-give-parallelisation-option
branch
November 12, 2026 10:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request introduces improvements to the handling and calculation of waterEntropy (wE), including new config options for wE specific parallelisation, updates to the data structures and logging format, and corresponding changes to tests and dependencies.
Changes
Enhancements to water entropy configuration and calculation:
water_entropydefault to False inargparse.pyand when set to True, wE will run for bulk water too with a warning to users of slower performance inworkflow.py.water_entropy_parallel(to control parallel vs. serial calculation) to the argument parsing logic inargparse.py.WaterEntropyInputdata structure and related methods to include aparallelflag, allowing control over parallel or serial execution of water entropy calculations.workflow.pyto use the newwater_entropy_parallelargument and to allow water entropy calculation even if there are no non-water groups.Updates to water entropy solver and logging:
_run_solvermethod and associated logging to include theparallelflag, and updated the call signature to pass this flag to the solver.Dependency updates:
waterEntropypackage dependency to version>=2.3.0,<3.0to ensure compatibility with the new data format.Testing
parallelargument and the revised dictionary-based result format for orientational entropy in wE.Impact
Checklist
pyproject.tomlchanged, the lower bounds were reviewed deliberately