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

Closure registry enhancement #3

Open
GabrielMouttapa opened this issue Oct 22, 2024 · 0 comments
Open

Closure registry enhancement #3

GabrielMouttapa opened this issue Oct 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@GabrielMouttapa
Copy link
Collaborator

To avoid error of triangular importations, these three parts of tunax have their own modules

  • definition of abstract closure classes for parameters and states in closure.py
  • definition of the different closures from these classes in closures/...py
  • definition of the closure registry which is a dictionnary of these closures inclosures_registry.py
    To add a new closure the user has to add it's code in a module in he folder closures/ and then import them in the closure registry manually.

It would be nice to have a dynamic way to define the closure registry, maybe there is a solution to define it in closure.pyin order to avoid a large number of modules.

@GabrielMouttapa GabrielMouttapa added the enhancement New feature or request label Oct 22, 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