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

cycle or timestep prefixes for extracts #1285

Open
mlohry opened this issue May 8, 2024 · 4 comments
Open

cycle or timestep prefixes for extracts #1285

mlohry opened this issue May 8, 2024 · 4 comments
Milestone

Comments

@mlohry
Copy link

mlohry commented May 8, 2024

With scene renders, I can provide an image prefix like image_prefix: "./filename_%06d" and at step 5 will be exported filename_000005.png.

How can I do similar for extracts to HDF5? e.g. if i give it path: "./filename_%06d" the resulting output file is literally called filename_%06d.root.

@cyrush cyrush added this to the 0.10.0 milestone May 10, 2024
@cyrush
Copy link
Member

cyrush commented May 10, 2024

Good suggestion, we will see if we can use the same strategy we used for images and add an option to support this for extracts.

@mlohry
Copy link
Author

mlohry commented May 10, 2024

Thanks @cyrush , in the meantime is there a way i can intercept the name of the extract outputs and change it to append a time step?

@cyrush
Copy link
Member

cyrush commented May 10, 2024

conduit::Node exec_info;
ascent_instance.info(exec_info);

Will report details about the extract after you call execute.

That said, the root file will have the directory name baked in so changing could unlink the info needed to load the file set.

You can set the exact name, or also strip out the cycle using extract options -- I'll admit we need better docs for this.

@mlohry
Copy link
Author

mlohry commented May 10, 2024

Thanks, I think I'll just make a directory with the cycle and move the extracts there instead of tinkering with the extract internals.

@cyrush cyrush modified the milestones: 0.10.0, 0.9.4 May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants