forked from respec/HSPsquared
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Equation #25
Comments
Add a group with hdf5 module in python
|
Now add a timeseries indexed by integers -
|
4 tasks
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overview
Tasks
eval():We cannot useeval()
innumba
- but maybenumexpr.evaluate()
See below Solver: eval optionsObject Model
Explore method of using
@jitclass
objects or a more functional approach.Handler Class
Execution Rendering
Parser
Data Model in hdf5
/TIMESERIES/INTAKE_001/
available_mgd = Qintake - flowby
/TIMESERIES/RCHRES_001/IVOL
- could also be an equation scaling to intake drainage area, i.e.Qreach = ivol * local_area / area
/TIMESERIES/INTAKE_001/flowby/value
(note: flowby would also be an equation)ts['/TIMESERIES/INTAKE_001/available_mgd/value'] = ts['/TIMESERIES/RCHRES_001/IVOL/value'] - ts['/TIMESERIES/INTAKE_001/flowby/value']
Solver
Decomposition/Optimization:
Eval
eval()
there are examples of usingnumexpr.evaluate()
(a numba analog ofeval()
) with@njit
however,ts['/TIMESERIES/RCHRES_001/IVOL/value'] - ts['/TIMESERIES/INTAKE_001/flowby/value']
cannot be evaluated.om
) BUT, the numba string replace methods do not allow replacing with a numeric value, only a string, and does not have the ability to convert a number to a string inside an@njit
compiled function.Pre-rendered Functions
state['/STATE/INTAKE_001/available_mgd/value'] = state['/STATE/RCHRES_001/IVOL/value'] - state['/STATE/INTAKE_001/flowby/value']
def fn_specl_rchres_0001_Qin(state, ui, ts, step)
The text was updated successfully, but these errors were encountered: