-
Notifications
You must be signed in to change notification settings - Fork 23
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
Yaml format for CLI input #583
Changes from 1 commit
637c7f6
21a0df6
17e5026
d4e3261
4ef7ab1
7ad79c7
53fc5b1
675623c
900e43b
4ec89e0
912720a
5f5d619
90bfae8
f78762f
aab5620
0d57408
16cae4b
a1fb632
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# things behind a "method" key have to match up to a known thing in openfe | ||
|
||
network: | ||
method: plan_radial_network | ||
scorer: default_lomap_score | ||
|
||
# Question: | ||
# use settings here, to match Protocol | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like the "settings" nest, since a) allows for further expansion for non-settings keys if they are ever needed, b) it's just visually pleasing to look at. Not a super strong vote though. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 on settings nesting There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I honestly don't remember which approach was easier for a JSON Schema. I think the not nested version is a little easier: you define a single subschema with a literal for |
||
|
||
mappers: | ||
- method: LomapAtomMapper | ||
settings: | ||
timeout: 60 | ||
- method: LomapAtomMapper | ||
settings: | ||
timeout: 120 | ||
|
||
# OR not nesting settings, anything without the "method" key gets put into kwargs | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Either one works from a JSON Schema standpoint. I'd vote to start by requiring it to be a list and add handling for non-list later, just as a matter of do the simple thing first. |
||
|
||
mappers: | ||
- method: LomapAtomMapper | ||
timeout: 60 | ||
- method: LomapAtomMapper | ||
timeout: 120 | ||
|
||
|
||
# Question: | ||
# is mapper*s* always a list and mapper always a single item | ||
# or do we allow mapper to define either a list or single item behind it? | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If there is more than one mapper, how are things divided up? Like if there are 2 mappers, do we just create 2 mappings for each leg? or do you control which leg gets which mapper (if this is out of scope for what you are doing, then ignore). I think I like:
and
so that we either have a list or a single one, but it always uses the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The way multiple mappers works is already define in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's more aesthetically, is the spec that we allow |
||
mapper: | ||
method: LomapAtomMapper | ||
settings: | ||
timeout: 120 | ||
|
||
|
||
protocol: | ||
method: OpenMM_RFE | ||
settings: | ||
alchemical_sampler_settings: | ||
n_repeats: 5 | ||
simulation_settings: | ||
production_length: 11 ns |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these going to be required? Like will there be some defaults if it is blank, or do we require some (or all) to have values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think everything in the file is optional. It's just to augment the command line
plan_rbfe_network
.