CodeEntropy.entropy.workflow module¶
Entropy manager orchestration.
This module defines EntropyWorkflow, which coordinates the end-to-end entropy workflow: - Determine trajectory bounds and frame count. - Build a reduced universe based on atom selection. - Identify molecule groups and hierarchy levels. - Optionally compute water entropy and adjust selection. - Execute the level DAG (matrix/state preparation). - Execute the entropy graph (entropy calculations and aggregation). - Finalize and persist results.
The manager intentionally delegates calculations to dedicated components.
- class CodeEntropy.entropy.workflow.EntropyWorkflow(run_manager: Any, args: Any, universe: Any, reporter: Any, group_molecules: Any, dihedral_analysis: Any, universe_operations: Any)[source]¶
Bases:
objectCoordinate entropy calculations across structural levels.
This class is responsible for orchestration and IO-level concerns (selection, grouping, running graphs, and finalizing results). Domain calculations live in dedicated components (LevelDAG, EntropyGraph, WaterEntropy, etc.).
- execute() None[source]¶
Run the full entropy workflow and emit results.
- This orchestrates the complete entropy pipeline:
Build trajectory frame selection.
Apply atom/frame selection to create the current analysis universe.
Detect hierarchy levels.
Group molecules.
Split groups into water and non-water.
Optionally compute water entropy.
Run level DAG and entropy graph.
Finalize and persist results.