-
Notifications
You must be signed in to change notification settings - Fork 292
Improving properties metadata #995
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
Conversation
|
Note that test failures are expected for now - there are some tests that are using the property metadata for unexpected purposes. |
Codecov ReportBase: 70.06% // Head: 70.18% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #995 +/- ##
==========================================
+ Coverage 70.06% 70.18% +0.11%
==========================================
Files 397 399 +2
Lines 65077 65318 +241
Branches 12058 12089 +31
==========================================
+ Hits 45597 45844 +247
- Misses 17131 17132 +1
+ Partials 2349 2342 -7
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
| if meth is None: | ||
| super().__setattr__("_method", None) | ||
| else: | ||
| super().__setattr__("_method", str(meth)) |
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.
Why str(meth)?
Part of #669
Summary/Motivation:
This PR introduces a new PropertyMetadata and PropertySet object for recording what thermophysical properties are supported by a property package. The eventual goal is to have a concrete definition of the standard properties used in IDAES that can be accessed programmatically and does not rely on string constants, as well as formalizing what metadata is stored for each.
Changes proposed in this PR:
Legal Acknowledgement
By contributing to this software project, I agree to the following terms and conditions for my contribution: