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

Move parameter check #187

Merged
merged 2 commits into from Aug 16, 2022
Merged

Move parameter check #187

merged 2 commits into from Aug 16, 2022

Conversation

bd-j
Copy link
Collaborator

@bd-j bd-j commented Aug 16, 2022

This moves the parameter validity check from the parameter value setter to the place where the parameters are actually passed to the fortran driver (StellarPopulation._update_parameters()). This gives less instant feedback if you give an invalid parameter, but should solve the issue in #183

Also added a test, with a clunky way to check that an assertion error is raised appropriately without completely rewriting the test infrastructure.

@bd-j bd-j merged commit 756762d into dfm:main Aug 16, 2022
@bd-j bd-j deleted the parupdate branch August 16, 2022 19:55
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.

None yet

1 participant