8000 Dataconverter param file by sherjeelshabih · Pull Request #23 · FAIRmat-NFDI/pynxtools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Dataconverter param file #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

Merged
merged 2 commits into from
Jul 1, 2022
Merged

Dataconverter param file #23

merged 2 commits into from
Jul 1, 2022

Conversation

sherjeelshabih
Copy link
Collaborator

This adds support to recieve a parameter file for the data converter and also allows us to trigger the converter in the Nomad GUI by uploading such a parameter YAML file.

@sherjeelshabih sherjeelshabih requested a review from sanbrock June 27, 2022 11:07
@sherjeelshabih sherjeelshabih self-assigned this Jun 27, 2022
conv_params["output"] = f"{base_dir}{os.sep}{check_path(conv_params['output'])}"
convert(**conv_params)
mainfile = conv_params["output"]

nexus_helper = read_nexus.HandleNexus(logger, [mainfile])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't NOMAD try to parse the freshly generated new NeXus file anyway?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Nomad walk over the files doesn't win the race here. The user can press reprocess to have another entry for the NXS file. It's hard to enforce this and can lead to unexpected behavior.

I've went with this additional feature in h5web in Nomad that allows us to show the Nexus file assosciated with the dataconverter parameter file. Here is the relevant MR: https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-FAIR/-/merge_requests/734

@sanbrock sanbrock merged commit c0354d3 into master Jul 1, 2022
@sherjeelshabih sherjeelshabih deleted the dataconverter-param-file branch July 6, 2022 10:41
RubelMozumder pushed a commit that referenced this pull request Jun 28, 2023
* Added params file parsing to dataconverter

* Added auto convert when files get parsed through Nomad
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 this pull request may close these issues.

2 participants
0