-
Notifications
You must be signed in to change notification settings - Fork 51
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
Adding lite-restart and lastObs to BMI conversions #685
Conversation
… removed some internal verigication code
src/model_DAforcing.py
Outdated
@@ -131,6 +132,17 @@ def __init__(self, bmi_cfg_file=None): | |||
|
|||
# read in metadata for BMI compliant arrays: | |||
|
|||
if lastobs_file: |
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.
maybe check if self._lastobs_df
is not empty here instead of if the file name exists? Not sure if an empty dataframe would cause _bmi_disassemble_lastObs
trouble.
src/model_DAforcing.py
Outdated
|
||
(_q0_columnArray, _q0_columnLengthArray, _q0_nCol, \ | ||
_q0_indexArray, _q0_nIndex, _q0_Array) = \ | ||
_bmi_disassemble_lite_restart (self._q0,np.float32) |
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.
Do we need to verify that self._q0
is not empty before calling this function?
src/model_DAforcing.py
Outdated
|
||
(_waterbodyLR_columnArray, _waterbodyLR_columnLengthArray, _waterbodyLR_nCol, \ | ||
_waterbodyLR_indexArray, _waterbodyLR_nIndex, _waterbodyLR_Array) = \ | ||
_bmi_disassemble_lite_restart (self._waterbody_df,np.float64) |
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.
Same here, check if self._waterbody_df
is empty?
src/model_DAforcing.py
Outdated
|
||
#testRevert = True | ||
|
||
if (testRevert): |
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.
Can we remove all the testRevert
sections? Keep the text somewhere for later use, but we don't need it in this file anymore.
Implemented requested modifications. |
Added lite-restart and lastObs, along the lines of last additions (usgs, usace, etc). Abstract classes will be created at a later stage upon more-complete integration into t-route.
Additions
Removals
Changes
Testing
Screenshots
Notes
Todos
Checklist
Testing checklist
Target Environment support
Accessibility
Other