Fix set_parameter_path in Helmholtz Property Package#1530
Fix set_parameter_path in Helmholtz Property Package#1530ksbeattie merged 8 commits intoIDAES:mainfrom
set_parameter_path in Helmholtz Property Package#1530Conversation
|
@bertkdowns Could you please format your PR with Black? I'd like to see if it breaks the CI. |
done, and the pytest tests passed on my machine, except for the ones that required the petsc solver as I didn't have it installed |
|
Looks like tests are passing, random Keras/multithreading errors nonwithstanding. @eslickj , if you get a chance, could you take a look to see if this breaks anything? At any rate, we should probably wait until after the 2.7 release to merge this. |
|
@lbianchi-lbl , I think you were going to take a look at this (when you get back)? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1530 +/- ##
==========================================
- Coverage 77.06% 77.05% -0.01%
==========================================
Files 389 389
Lines 62680 62683 +3
Branches 10276 10276
==========================================
- Hits 48303 48302 -1
- Misses 11939 11944 +5
+ Partials 2438 2437 -1 ☔ View full report in Codecov by Sentry. |
|
As far as I can tell it looks good. |
Fixes
Fix the set_parameter_path() function in helmholtz.
update
helmholtz_functions.pyandhelmholtz_state.pyto use the latest cfg variable rather than storing a copySummary/Motivation:
the set_parameter_path function does not properly update the helmholtz parameter file path, because it sets
idaes.properties.helmholtz.parameter_file_pathrather thanidaes.cfg.properties.parameter_file_path(note .cfg).Also,
helmholtz_functions.pymakes a copy of the cfg variable into _data_dir, which also is not updated with set_parameter_path.This involves needing to do some hacky workarounds to specify a different directory to load helmholtz data from (e.g see my register_compounds function.
Changes proposed in this PR:
Legal Acknowledgement
By contributing to this software project, I agree to the following terms and conditions for my contribution: