Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Preserve plugin load order with OrderedSet#60

Merged
dwhswenson merged 3 commits into
openpathsampling:mainopenpathsampling/openpathsampling-cli:mainfrom
dwhswenson:plugins-ordered-setdwhswenson/openpathsampling-cli:plugins-ordered-setCopy head branch name to clipboard
Oct 31, 2021
Merged

Preserve plugin load order with OrderedSet#60
dwhswenson merged 3 commits into
openpathsampling:mainopenpathsampling/openpathsampling-cli:mainfrom
dwhswenson:plugins-ordered-setdwhswenson/openpathsampling-cli:plugins-ordered-setCopy head branch name to clipboard

Conversation

@dwhswenson

Copy link
Copy Markdown
Member

As mentioned in #57, the Wizard would benefit from plugins always loading in the same order. Without this, the order of category plugins located in the same file tended to be random. For example, the choices of CV types (Distance, Angle, Dihedral, etc) were not consistent between different runs of the wizard. This also seemed to be the case with command plugins: the order they were listed in --help was not retained.

Here I replace the set used previously with a custom-written OrderedSet class. This seems to have fixed these consistency issues.

@dwhswenson dwhswenson added the enhancement New feature or request label Oct 28, 2021
@dwhswenson dwhswenson mentioned this pull request Oct 28, 2021
18 tasks
@codecov

codecov Bot commented Oct 28, 2021

Copy link
Copy Markdown

Codecov Report

Merging #60 (084eef1) into main (f8ed965) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##              main       #60    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           45        51     +6     
  Lines         1766      2136   +370     
==========================================
+ Hits          1766      2136   +370     
Impacted Files Coverage Δ
paths_cli/utils.py 100.00% <100.00%> (ø)
paths_cli/wizard/cvs.py 100.00% <0.00%> (ø)
paths_cli/wizard/tps.py 100.00% <0.00%> (ø)
paths_cli/wizard/steps.py 100.00% <0.00%> (ø)
paths_cli/wizard/openmm.py 100.00% <0.00%> (ø)
paths_cli/wizard/wizard.py 100.00% <0.00%> (ø)
paths_cli/wizard/engines.py 100.00% <0.00%> (ø)
paths_cli/wizard/volumes.py 100.00% <0.00%> (ø)
paths_cli/commands/wizard.py 100.00% <0.00%> (ø)
paths_cli/wizard/shooting.py 100.00% <0.00%> (ø)
... and 10 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f8ed965...084eef1. Read the comment docs.

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

I am a bit paranoid about the current not in test, otherwise LGTM

Comment thread paths_cli/tests/test_utils.py
Co-authored-by: Sander Roet <sanderroet@hotmail.com>
@dwhswenson dwhswenson merged commit f24564a into openpathsampling:main Oct 31, 2021
@dwhswenson dwhswenson deleted the plugins-ordered-set branch October 31, 2021 11:51
@dwhswenson dwhswenson mentioned this pull request Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.