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

Refactor Imager instantiation #8

Open
AnthonyHorton opened this issue Aug 7, 2017 · 0 comments
Open

Refactor Imager instantiation #8

AnthonyHorton opened this issue Aug 7, 2017 · 0 comments
Assignees

Comments

@AnthonyHorton
Copy link
Member

Currently Imager can be created either fully automatically using the create_imagers() function, where all parameters are set in the performance.yaml config file, or completely in Python where all the subcomponents (Optic, Camera, etc.) have to be manually instantiated with all their parameters passed to the constructor.

More useful would be an option to create an Imager in Python by simply referencing the names of either a predefined Imager or a selection of subcomponents that are then generated from the config file. Basically the Imager constructor should, optionally, be passed either one name (one of the Imager pre-defined in performance.yaml file) or some combination of subcomponent objects or names of subcomponent from the performance.yaml file.

This will make interact creation of Imager objects much easier.

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

1 participant