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

Accessing parameters from a simulation #57

Open
aevans1 opened this issue Apr 16, 2024 · 0 comments
Open

Accessing parameters from a simulation #57

aevans1 opened this issue Apr 16, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@aevans1
Copy link
Collaborator

aevans1 commented Apr 16, 2024

I've been accessing parameters from pre-run simulations roughly like:
images, parameters = sim.simulate(num_sim=num_sim, indices=indices, return_parameters=True, batch_size=batchsize)
and for grabbing parameters using the ordering given in priors as

class ImagePrior:
...
        self.priors = [
            index_prior,
            quaternion_prior,
            sigma_prior,
            shift_prior,
            defocus_prior,
            b_factor_prior,
            amp_prior,
            snr_prior,
        ]
...

e.g for parameters[-1] for snr, parameters[1] for quaternions.

I'm thinking there may be a simple way of converting the parameters output from simulate(...) so that I could do something like snr = parameters["snr"] through keys.

@aevans1 aevans1 added the enhancement New feature or request label Apr 16, 2024
@aevans1 aevans1 self-assigned this Apr 16, 2024
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

1 participant