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

Select only relevant output_parameters #5

Open
cpignedoli opened this issue Dec 12, 2024 · 0 comments
Open

Select only relevant output_parameters #5

cpignedoli opened this issue Dec 12, 2024 · 0 comments
Assignees

Comments

@cpignedoli
Copy link
Member

cpignedoli commented Dec 12, 2024

output_parameters = workchain.outputs.output_parameters.get_dict()

see #6
replace with a function like this that could be valid for all CP2K calculations with added logic for different cases

properties=['energy','energy_scf','energy_units','bandgap_spin1_au','bandgap_spin2_au']
try:
    all_output_parameters = workchain.outputs.dft_output_parameters.get_dict()
except:
    all_output_parameters = workchain.outputs.output_parameters.get_dict()
output_parameters = {key: all_output_parameters[key] for key in properties if key in all_output_parameters}
step_info={key: values[-1] for key, values in all_output_parameters['motion_step_info'].items()}
output_parameters.update(step_info)
fabioacl added a commit that referenced this issue Dec 13, 2024
… saving a history of objects. Instead of always calling openBIS for the objects. One may check inside the dictionary if it is already there.
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

No branches or pull requests

2 participants