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

Standardize boolean accept integer #217

Closed

Conversation

maximejay
Copy link
Collaborator

Salut,

Le fichier setup yml contient des boolens
Le dictionnaire python setup contient des boolens
setup est utilisé pour la création de l'objet model en entrée de smash.Model()
En résultat la variable model.setup contient des entiers à la place des boolens

=> le dictionnaire setup peut donc maintenant contenir des entiers 1 ou 0 à la place des boolens (plus facile lorsque l'on copie les valeurs de model.setup vers un nouveau setup)

asjeb and others added 2 commits June 11, 2024 14:12
…ly integer 0 and 1 but not Python boolean, thus Smash cannot read its own setup. This slight modification fix this pb. it is now possible to extract setup from a model without write it in hdf5 and create a new model from this identical setup (just warning are displayed because unrecognize options).
@maximejay maximejay closed this Jun 24, 2024
@maximejay maximejay deleted the standardize_boolean_accept_integer branch June 24, 2024 14:32
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.

3 participants