Skip to content

Align waterentropy outputs with v230 and give parallelisation option - #487

Merged
jkalayan merged 10 commits into
mainfrom
483-align-waterentropy-outputs-with-v230-and-give-parallelisation-option
Nov 11, 2026
Merged

jkalayan merged 10 commits into
mainfrom
483-align-waterentropy-outputs-with-v230-and-give-parallelisation-option

Conversation

@jkalayan

@jkalayan jkalayan commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

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:

  • Set water_entropy default to False in argparse.py and when set to True, wE will run for bulk water too with a warning to users of slower performance in workflow.py.
  • Added water_entropy_parallel (to control parallel vs. serial calculation) to the argument parsing logic in argparse.py.
  • Updated the WaterEntropyInput data structure and related methods to include a parallel flag, allowing control over parallel or serial execution of water entropy calculations.
  • Modified the workflow logic in workflow.py to use the new water_entropy_parallel argument and to allow water entropy calculation even if there are no non-water groups.

Updates to water entropy solver and logging:

  • Changed the _run_solver method and associated logging to include the parallel flag, and updated the call signature to pass this flag to the solver.
  • Updated the logging format for orientational entropy results to handle new dictionary-based data structures instead of lists, to be compatible with wE v2.3.0.

Dependency updates:

  • Bumped the waterEntropy package dependency to version >=2.3.0,<3.0 to ensure compatibility with the new data format.

Testing

  • Updated all relevant unit tests to use the new parallel argument and the revised dictionary-based result format for orientational entropy in wE.

Impact

  • The changes provide more flexibility in running water entropy calculations and ensure compatibility with updated data formats in wE v2.3.0.
  • wE will now run for bulk water when set to True, with a warning to the user of slow performance for this.
  • Running wE on some HPCs may fail, providing an option to turn off wE parallelisation, provides a serial option for wE calculations in these cases.

Checklist

  • Tests added or updated
  • Documentation updated
  • If dependencies in pyproject.toml changed, the lower bounds were reviewed deliberately

@jkalayan jkalayan self-assigned this Nov 11, 2026
@jkalayan jkalayan added documentation Improvements or additions to documentation feature request New feature or request dependencies Pull requests that update a dependency file labels Nov 11, 2026

@harryswift01 harryswift01 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

@jkalayan
jkalayan merged commit 585bea4 into main Nov 11, 2026
23 checks passed
@harryswift01
harryswift01 deleted the 483-align-waterentropy-outputs-with-v230-and-give-parallelisation-option branch November 12, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation feature request New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Align waterEntropy outputs with v2.3.0 and give parallelisation option.

2 participants