Skip to content

Refactoring and cleanup, remove unnecessary code and reduce duplication#27

Merged
hejung merged 33 commits into
bio-phys:mainfrom
hejung:distributed_housekeeping
Jul 13, 2026
Merged

Refactoring and cleanup, remove unnecessary code and reduce duplication#27
hejung merged 33 commits into
bio-phys:mainfrom
hejung:distributed_housekeeping

Conversation

@hejung

@hejung hejung commented Nov 22, 2025

Copy link
Copy Markdown
Collaborator
  • aimmd.distributed: renamed CommittorEngineSpec to MDEngineSpec and moved it to a more central file to facilitate reuse in shooting PathMovers
  • aimmd.distributed: use MDEngineSpec as input for all shooting PathMovers, improve PathMover class hierarchy
  • use numpy.bytes_ instead of numpy.string_
  • move density collection and correction to shooting point selection (for both aimmd.distributed and aimmd.ops)
  • aimmd.ops: The density collector is now attached to the aimmd.ops.hooks.DensityCollectionHook and uses the new density collector implementation from aimmd.base.density_collection
  • aimmd.ops: removed unused legacy code
  • aimmd.keras: removed complete submodule (has not seen updates for a long time, the aimmd.pytorch submodule is better maintained and offers better functionality)
  • aimmd.distributed: tqdm progress bars for transition path sampling
  • aimmd.distributed: Introduced PathSamplingSimStateInfo dataclass to make it easier to access any information about the current state of the path sampling simulation at any level when performing a MC step.

@codecov

codecov Bot commented Nov 22, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 37.56432% with 364 lines in your changes missing coverage. Please review.
✅ Project coverage is 42.79%. Comparing base (8cabc33) to head (b4d3c77).

Files with missing lines Patch % Lines
aimmd/distributed/pathmovers.py 29.03% 110 Missing ⚠️
aimmd/distributed/pathsampling.py 14.28% 72 Missing ⚠️
aimmd/base/density_collection.py 24.09% 63 Missing ⚠️
aimmd/distributed/spselectors.py 26.98% 46 Missing ⚠️
aimmd/distributed/utils.py 6.97% 40 Missing ⚠️
aimmd/base/storage.py 35.71% 9 Missing ⚠️
aimmd/distributed/dataclasses.py 91.35% 6 Missing and 1 partial ⚠️
aimmd/ops/hooks.py 22.22% 7 Missing ⚠️
aimmd/ops/selector.py 50.00% 3 Missing and 4 partials ⚠️
aimmd/distributed/committors.py 66.66% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #27      +/-   ##
==========================================
+ Coverage   36.68%   42.79%   +6.11%     
==========================================
  Files          43       41       -2     
  Lines        5237     4472     -765     
  Branches      815      687     -128     
==========================================
- Hits         1921     1914       -7     
+ Misses       3205     2454     -751     
+ Partials      111      104       -7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…ibuted), improve aimmd.distributed.pathmovers class inheritance
…ced PathSamplingSimStateInfo dataclass to make it easier to access info about the current step/simulation at every level of the step, also variable name harmonization
…emove unnecesary checks for old density collection
@hejung
hejung merged commit 95211d9 into bio-phys:main Jul 13, 2026
5 of 6 checks passed
@hejung
hejung deleted the distributed_housekeeping branch July 14, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant