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

Optional modules, qSim modules and qSim components configurations #182

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

tkchouaki
Copy link
Collaborator

This PR allows users developping use cases and new modules to run new components without needing to write separate run scripts.

This is done by allowing subclassed of EqasimConfigurator to register optional elements (modules, qsim modules and qsim components configurations) that are activated only if related config groups are present.
The typical workflow for using this functionality is:

  • Calling the registerOptionalConfigGroup method from the constructor of your class extending EqasimConfigurator
  • Call the addOptionalConfigGroups with your config object right after loading/creating a config

No tests for this functionality are added here as the next PR with DRT features will use it and all will be tested together.

…n steps

Allows subclasses to register optional config groups to avoid writing many Run scripts.
@sebhoerl
Copy link
Collaborator

Looks good! Let's merge

@tkchouaki tkchouaki merged commit 71239c0 into develop Dec 15, 2023
1 check passed
@tkchouaki tkchouaki deleted the optionalSimComponents branch December 15, 2023 16:25
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