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

Include a has_aux-like parameter in the dataset generation pipeline #317

Open
DSilva27 opened this issue Jan 31, 2025 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@DSilva27
Copy link
Collaborator

Sometimes there are quantities that are computed during the image generation process that could be useful to have, but that normally don't go into a starfile. For example, when generating data from ensembles it would be useful to have the index of the configuration used for each image. There are more cases, right now I can only think of images with different SNR, but I am sure there are more.

What I mean by hax-aux-like is to have a functionality similar to the one in jax.value_and_grad function, where one can specify that the objective function outputs an image, and some extra variable. In this case we would have to carry this output, and then give it as an output at the end of the dataset generation process.

@DSilva27 DSilva27 self-assigned this Jan 31, 2025
@DSilva27 DSilva27 added the enhancement New feature or request label Jan 31, 2025
@mjo22
Copy link
Owner

mjo22 commented Jan 31, 2025

I think I see what you mean—you mean to say that we allow for some auxiliary data to be returned in the compute_image function for the write_simulated_image_stack_from_starfile function, and return this auxiliary data at the end of dataset generation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants