Skip to content

Conversation

@dwhswenson
Copy link
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
Copy link

codecov bot commented Oct 28, 2021

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.

Copy link
Member

@sroet sroet left a comment

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

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