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
specl(): Proposed function definition for SPEC-ACTIONS #13
Comments
17 tasks
rburghol
changed the title
Function naming conventions, arguments and code - propose
Proposed function definition for Aug 31, 2022
specl()
which calls _specl_()
as place for analog.specl()
rburghol
changed the title
Proposed function definition for
specl(): Proposed function definition for SPEC-ACTIONS
Aug 31, 2022
specl()
work session 9/7/22
|
HSP2 flowchart (incomplete)Questions:
|
Answered some of your questions in line. Let's tackle these in tomorrow's work sesh! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
propose at respec#90
def specl(io_manager, siminfo, ui, ts, state, specl_actions)
:io_manager
: global facility to pull data. Minimize calls toio_manager
within loops if possible for speedsiminfo
: global info like start, end, timestep other?ui
: uci data for current block, ie rchres/hydr (verify this path in the Data Dictionary)ts
: timeseries/[block], ie timeseries/rchresstate
:ts[step -1]
; the state array for the domain (i.e. RCHRES variables), this is crucial as state variables in the code are simply named variables, not a member of an array, thus difficult to pass into a routine such asspecl()
, however, all values that are relevant should be set at the end of each timestep in thets
dictionary, so, passing the last state is both a reasonable way of insuring that only the values that should be public are passed, and that the expected state of the system at the last time step is what special actions are acting upon.specl_actions
: local reach SAs (could be global list of SAs), andobjects
io_manager
in the calling routine prior to looping, so that we avoid redundant data retrievals.get_specl()
in the manner ofget_timeseries()
see def get_timeseriesSUBROUTINE SPECL
,[old hspf fn]
, which receives data at each time step then calls python equivalent to old function_[old hspf function name in lower case]_
define hydr()
calls_hydr_()
see HYDR.pyThe text was updated successfully, but these errors were encountered: