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

introduce model_info type annotation #396

Merged
merged 5 commits into from
Nov 13, 2024
Merged

introduce model_info type annotation #396

merged 5 commits into from
Nov 13, 2024

Conversation

pearsonca
Copy link
Contributor

Describe your changes.

This pull request introduces type hints / annotation where model info objects are part of method signatures.

Does this pull request make any user interface changes? If so please describe.

No.

What does your pull request address? Tag relevant issues.

Seems likely this is partial address of some generic software engineering issue.

@pearsonca
Copy link
Contributor Author

Need to deal w/ some circular imports apparently - standby reviewers!

Per @pearsonca request fixed GH-396. Cannot type hint the `ModelInfo`
objects in `gempyor.initial_conditions/seeding` due to circular imports.
@pearsonca
Copy link
Contributor Author

@TimothyWillard @jcblemai @emprzy should be passing tests now. This is mainly a type-hinting change, with one change to the NPI class definition to get the ti, tf instead of the whole ModelInfo object.

Copy link
Collaborator

@emprzy emprzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovely

@pearsonca pearsonca merged commit 70f9cd7 into dev Nov 13, 2024
3 checks passed
pearsonca pushed a commit that referenced this pull request Nov 13, 2024
Per @pearsonca request fixed GH-396. Cannot type hint the `ModelInfo`
objects in `gempyor.initial_conditions/seeding` due to circular imports.
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