Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin Detector #290

Open
uppittu11 opened this issue Oct 31, 2019 · 0 comments · May be fixed by #292
Open

Plugin Detector #290

uppittu11 opened this issue Oct 31, 2019 · 0 comments · May be fixed by #292

Comments

@uppittu11
Copy link
Member

Describe the behavior you would like added to Foyer
A plugin detector within foyer that will detect all of the foyer plugins installed in the environment. We would also want convenient way to access all of the information about a plugin. See #288.

Additional context

In my view, ideally we would have a global dict of the installed plugins, so then we can call a variable (foyer.plugins or something like that) and it outputs the dict of the installed plugins and all of their info (like version, pointer to loader function, and location of xml, etc).

>>> import foyer
>>> foyer.plugins
{
"oplsaa" : {"version" : "0.0.3", "loader_function" : foyer.forcefields.load_OPLSAA, "path" : "/path/to/oplsaa.xml"}, 
"trappe-ua" : {"version" : "0.0.5", "loader_function" : foyer.forcefields.load_TRAPPE_UA, "path" : "/path/to/trappe_ua.xml"}, 
"perfluoroethers" : {"version" : "loader_function" : "0.0.1", foyer.forcefields.load_PFE, "path" : "/path/to/perfluoroethers.xml"}
}

This way we can easily check what forcefields are installed and these would be the only forcefields tested.

Originally posted by @uppittu11 in #288 (comment)

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 a pull request may close this issue.

1 participant