Skip to content

Custom PathDensityHistogram._add_ops_trajectory#1154

Merged
dwhswenson merged 2 commits into
openpathsampling:masterfrom
dwhswenson:custom-add-ops-traj-pathhist
Aug 13, 2024
Merged

Custom PathDensityHistogram._add_ops_trajectory#1154
dwhswenson merged 2 commits into
openpathsampling:masterfrom
dwhswenson:custom-add-ops-traj-pathhist

Conversation

@dwhswenson

Copy link
Copy Markdown
Member

This adds a touch point for path density histogram subclasses to change what occurs when adding an OPS trajectory to a PathDensityHistogram.

I needed this when playing with the idea of having a custom histogram that would also track all trajectories that passed through a given histogram bin.

This doesn't break the API, and doesn't even need changes in the tests.

This adds a touch point for path density histogram subclasses to change
what occurs when adding an OPS trajectory to a PathDensityHistogram.

I needed this when playing with the idea of having a custom histogram
that would also track all trajectories that passed through a given
histogram bin.
@dwhswenson

Copy link
Copy Markdown
Member Author

This is ready for review and comment. Without review, I will merge this after at least 24 hours, no sooner than Wed 14 Aug 03:00 GMT (Tue 13 Aug 23:00 my local).

@codecov

codecov Bot commented Aug 13, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.28%. Comparing base (4062530) to head (936341f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1154   +/-   ##
=======================================
  Coverage   81.28%   81.28%           
=======================================
  Files         142      142           
  Lines       15639    15641    +2     
=======================================
+ Hits        12712    12714    +2     
  Misses       2927     2927           

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

@dwhswenson dwhswenson changed the title Custom PathDensityHistogram._ops_add_trajectory Custom PathDensityHistogram._ops_add_trajectory Aug 13, 2024
@dwhswenson dwhswenson changed the title Custom PathDensityHistogram._ops_add_trajectory Custom PathDensityHistogram._add_ops_trajectory Aug 13, 2024

@sroet sroet 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.

looks like a trivial refactor. LGTM!

@dwhswenson dwhswenson merged commit a34e74d into openpathsampling:master Aug 13, 2024
@dwhswenson dwhswenson deleted the custom-add-ops-traj-pathhist branch August 13, 2024 15:01
@dwhswenson dwhswenson mentioned this pull request Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants