-
Notifications
You must be signed in to change notification settings - Fork 5
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
Rob/mdanse trajectory filter #615
base: protos
Are you sure you want to change the base?
Conversation
…ydrogen) atomic trajectory csv data for testing
…tion of filter object
settings = collections.OrderedDict() | ||
settings["trajectory"] = ("HDFTrajectoryConfigurator", {}) | ||
settings["frames"] = ( | ||
"CorrelationFramesConfigurator", | ||
{"dependencies": {"trajectory": "trajectory"}}, | ||
) | ||
settings["instrument_resolution"] = ( | ||
"InstrumentResolutionConfigurator", | ||
{"dependencies": {"trajectory": "trajectory", "frames": "frames"}}, | ||
) | ||
settings["projection"] = ( | ||
"ProjectionConfigurator", | ||
{"label": "project coordinates"}, | ||
) | ||
settings["trajectory_filter"] = ( | ||
"TrajectoryFilterConfigurator", | ||
{"dependencies": {"trajectory": "trajectory"}}, | ||
) | ||
settings["atom_selection"] = ( | ||
"AtomSelectionConfigurator", | ||
{"dependencies": {"trajectory": "trajectory"}}, | ||
) | ||
settings["atom_transmutation"] = ( | ||
"AtomTransmutationConfigurator", | ||
{ | ||
"dependencies": { | ||
"trajectory": "trajectory", | ||
"atom_selection": "atom_selection", | ||
} | ||
}, | ||
) | ||
settings["weights"] = ( | ||
"WeightsConfigurator", | ||
{ | ||
"default": "atomic_weight", | ||
"dependencies": {"atom_selection": "atom_selection"}, | ||
}, | ||
) | ||
settings["output_files"] = ( | ||
"OutputTrajectoryConfigurator", | ||
{"format": "MDTFormat"}, | ||
) | ||
settings["running_mode"] = ("RunningModeConfigurator", {}) |
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.
Some of these settings are not used and/or are not relevant to the filter job. They can be removed, this will clear up the job settings in the actions tab as well.
def configure(self, value: str): | ||
"""Configure an input value. | ||
|
||
Parameters | ||
---------- | ||
value : str | ||
The selection setting in a json readable format. | ||
""" | ||
print(f"Configuring {value}") | ||
self.settings = value | ||
self["value"] = self.settings | ||
|
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.
Can we update this so that it includes some error checking? See any of the other configurators e.g. the FloatConfigurator. This is so that invalid settings are not inputted, this will also provide a warning to the user in the GUI. Also, please use the MDANSE logger instead of printing.
…attenuation + fix freq -> energy conversion
Description of work
TODO:
(Probably don't need to solve all of these immediately - some may become issues for further work after this is completed)
UI
UI &/or Backend
Backend
Tests
Other
Fixes
A list of fixes.
To test
Please describe the tests that were run to verify the changes.