-
-
Notifications
You must be signed in to change notification settings - Fork 425
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
Add a ModelState class #1847
Add a ModelState class #1847
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1847 +/- ##
==========================================
+ Coverage 58.04% 62.21% +4.17%
==========================================
Files 66 66
Lines 6747 6826 +79
==========================================
+ Hits 3916 4247 +331
+ Misses 2831 2579 -252
Continue to review full report at Codecov.
|
tardis/model/base.py
Outdated
@@ -23,6 +23,11 @@ | |||
logger = logging.getLogger(__name__) | |||
|
|||
|
|||
class ModelState(): | |||
def __init__(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you want to initialize it with the variables as discussed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is 2e58f01 a good way to do this? Because properties are very related to each other, I thought it might be good to move those calculations to model_state
class.
2e58f01
to
b9f5edc
Compare
6bec7d9
to
f3ffb06
Compare
558d219
to
cfa475f
Compare
Before a pull request is accepted, it must meet the following criteria:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the class looks good, though it should in the future probably act as a base class for the Radial1DModel. Currently, the ModelState assumes 1D as well. Unclear if we want to generalise more right now.
@atharva-2001 can you check the docststrings - but then it is good to merge. |
0afe798
to
e32ee17
Compare
e32ee17
to
1c4e1fe
Compare
Description
Motivation and context
How has this been tested?
Examples
Type of change
Checklist