repository_name
stringlengths
7
55
func_path_in_repository
stringlengths
4
223
func_name
stringlengths
1
134
whole_func_string
stringlengths
75
104k
language
stringclasses
1 value
func_code_string
stringlengths
75
104k
func_code_tokens
listlengths
19
28.4k
func_documentation_string
stringlengths
1
46.9k
func_documentation_tokens
listlengths
1
1.97k
split_name
stringclasses
1 value
func_code_url
stringlengths
87
315
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_evi_inzp_v1
def calc_evi_inzp_v1(self): """Calculate interception evaporation and update the interception storage accordingly. Required control parameters: |NHRU| |Lnk| |TRefT| |TRefN| Required flux sequence: |EvPo| Calculated flux sequence: |EvI| Updated state sequen...
python
def calc_evi_inzp_v1(self): """Calculate interception evaporation and update the interception storage accordingly. Required control parameters: |NHRU| |Lnk| |TRefT| |TRefN| Required flux sequence: |EvPo| Calculated flux sequence: |EvI| Updated state sequen...
[ "def", "calc_evi_inzp_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "sta", "=", "self", ".", "sequences", ".", "states", ".", ...
Calculate interception evaporation and update the interception storage accordingly. Required control parameters: |NHRU| |Lnk| |TRefT| |TRefN| Required flux sequence: |EvPo| Calculated flux sequence: |EvI| Updated state sequence: |Inzp| Basic equatio...
[ "Calculate", "interception", "evaporation", "and", "update", "the", "interception", "storage", "accordingly", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L397-L459
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_sbes_v1
def calc_sbes_v1(self): """Calculate the frozen part of stand precipitation. Required control parameters: |NHRU| |TGr| |TSp| Required flux sequences: |TKor| |NBes| Calculated flux sequence: |SBes| Examples: In the first example, the threshold temperat...
python
def calc_sbes_v1(self): """Calculate the frozen part of stand precipitation. Required control parameters: |NHRU| |TGr| |TSp| Required flux sequences: |TKor| |NBes| Calculated flux sequence: |SBes| Examples: In the first example, the threshold temperat...
[ "def", "calc_sbes_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "for", "k", "in", "range", "(", "con", ".", "nhru", ")", "...
Calculate the frozen part of stand precipitation. Required control parameters: |NHRU| |TGr| |TSp| Required flux sequences: |TKor| |NBes| Calculated flux sequence: |SBes| Examples: In the first example, the threshold temperature of seven hydrological ...
[ "Calculate", "the", "frozen", "part", "of", "stand", "precipitation", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L462-L519
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_wgtf_v1
def calc_wgtf_v1(self): """Calculate the potential snowmelt. Required control parameters: |NHRU| |Lnk| |GTF| |TRefT| |TRefN| |RSchmelz| |CPWasser| Required flux sequence: |TKor| Calculated fluxes sequence: |WGTF| Basic equation: :math:`...
python
def calc_wgtf_v1(self): """Calculate the potential snowmelt. Required control parameters: |NHRU| |Lnk| |GTF| |TRefT| |TRefN| |RSchmelz| |CPWasser| Required flux sequence: |TKor| Calculated fluxes sequence: |WGTF| Basic equation: :math:`...
[ "def", "calc_wgtf_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "for", "k", "in", "range", "(", "con", ".", "nhru", ")", "...
Calculate the potential snowmelt. Required control parameters: |NHRU| |Lnk| |GTF| |TRefT| |TRefN| |RSchmelz| |CPWasser| Required flux sequence: |TKor| Calculated fluxes sequence: |WGTF| Basic equation: :math:`WGTF = max(GTF \\cdot (TKor - T...
[ "Calculate", "the", "potential", "snowmelt", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L522-L601
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_schm_wats_v1
def calc_schm_wats_v1(self): """Calculate the actual amount of water melting within the snow cover. Required control parameters: |NHRU| |Lnk| Required flux sequences: |SBes| |WGTF| Calculated flux sequence: |Schm| Updated state sequence: |WATS| Basic equa...
python
def calc_schm_wats_v1(self): """Calculate the actual amount of water melting within the snow cover. Required control parameters: |NHRU| |Lnk| Required flux sequences: |SBes| |WGTF| Calculated flux sequence: |Schm| Updated state sequence: |WATS| Basic equa...
[ "def", "calc_schm_wats_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "sta", "=", "self", ".", "sequences", ".", "states", ".",...
Calculate the actual amount of water melting within the snow cover. Required control parameters: |NHRU| |Lnk| Required flux sequences: |SBes| |WGTF| Calculated flux sequence: |Schm| Updated state sequence: |WATS| Basic equations: :math:`\\frac{dWATS}{dt...
[ "Calculate", "the", "actual", "amount", "of", "water", "melting", "within", "the", "snow", "cover", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L604-L666
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_wada_waes_v1
def calc_wada_waes_v1(self): """Calculate the actual water release from the snow cover. Required control parameters: |NHRU| |Lnk| |PWMax| Required flux sequences: |NBes| Calculated flux sequence: |WaDa| Updated state sequence: |WAeS| Basic equations: ...
python
def calc_wada_waes_v1(self): """Calculate the actual water release from the snow cover. Required control parameters: |NHRU| |Lnk| |PWMax| Required flux sequences: |NBes| Calculated flux sequence: |WaDa| Updated state sequence: |WAeS| Basic equations: ...
[ "def", "calc_wada_waes_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "sta", "=", "self", ".", "sequences", ".", "states", ".",...
Calculate the actual water release from the snow cover. Required control parameters: |NHRU| |Lnk| |PWMax| Required flux sequences: |NBes| Calculated flux sequence: |WaDa| Updated state sequence: |WAeS| Basic equations: :math:`\\frac{dWAeS}{dt} = NBes - ...
[ "Calculate", "the", "actual", "water", "release", "from", "the", "snow", "cover", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L669-L729
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_evb_v1
def calc_evb_v1(self): """Calculate the actual water release from the snow cover. Required control parameters: |NHRU| |Lnk| |NFk| |GrasRef_R| Required state sequence: |BoWa| Required flux sequences: |EvPo| |EvI| Calculated flux sequence: |EvB| ...
python
def calc_evb_v1(self): """Calculate the actual water release from the snow cover. Required control parameters: |NHRU| |Lnk| |NFk| |GrasRef_R| Required state sequence: |BoWa| Required flux sequences: |EvPo| |EvI| Calculated flux sequence: |EvB| ...
[ "def", "calc_evb_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "sta", "=", "self", ".", "sequences", ".", "states", ".", "fa...
Calculate the actual water release from the snow cover. Required control parameters: |NHRU| |Lnk| |NFk| |GrasRef_R| Required state sequence: |BoWa| Required flux sequences: |EvPo| |EvI| Calculated flux sequence: |EvB| Basic equations: :math:...
[ "Calculate", "the", "actual", "water", "release", "from", "the", "snow", "cover", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L732-L793
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_qbb_v1
def calc_qbb_v1(self): """Calculate the amount of base flow released from the soil. Required control parameters: |NHRU| |Lnk| |Beta| |FBeta| Required derived parameter: |WB| |WZ| Required state sequence: |BoWa| Calculated flux sequence: |QBB| ...
python
def calc_qbb_v1(self): """Calculate the amount of base flow released from the soil. Required control parameters: |NHRU| |Lnk| |Beta| |FBeta| Required derived parameter: |WB| |WZ| Required state sequence: |BoWa| Calculated flux sequence: |QBB| ...
[ "def", "calc_qbb_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "...
Calculate the amount of base flow released from the soil. Required control parameters: |NHRU| |Lnk| |Beta| |FBeta| Required derived parameter: |WB| |WZ| Required state sequence: |BoWa| Calculated flux sequence: |QBB| Basic equations: :math:`...
[ "Calculate", "the", "amount", "of", "base", "flow", "released", "from", "the", "soil", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L796-L896
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_qib1_v1
def calc_qib1_v1(self): """Calculate the first inflow component released from the soil. Required control parameters: |NHRU| |Lnk| |NFk| |DMin| Required derived parameter: |WB| Required state sequence: |BoWa| Calculated flux sequence: |QIB1| Basic eq...
python
def calc_qib1_v1(self): """Calculate the first inflow component released from the soil. Required control parameters: |NHRU| |Lnk| |NFk| |DMin| Required derived parameter: |WB| Required state sequence: |BoWa| Calculated flux sequence: |QIB1| Basic eq...
[ "def", "calc_qib1_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", ...
Calculate the first inflow component released from the soil. Required control parameters: |NHRU| |Lnk| |NFk| |DMin| Required derived parameter: |WB| Required state sequence: |BoWa| Calculated flux sequence: |QIB1| Basic equation: :math:`QIB1 = DMi...
[ "Calculate", "the", "first", "inflow", "component", "released", "from", "the", "soil", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L899-L969
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_qib2_v1
def calc_qib2_v1(self): """Calculate the first inflow component released from the soil. Required control parameters: |NHRU| |Lnk| |NFk| |DMin| |DMax| Required derived parameter: |WZ| Required state sequence: |BoWa| Calculated flux sequence: |QIB2| ...
python
def calc_qib2_v1(self): """Calculate the first inflow component released from the soil. Required control parameters: |NHRU| |Lnk| |NFk| |DMin| |DMax| Required derived parameter: |WZ| Required state sequence: |BoWa| Calculated flux sequence: |QIB2| ...
[ "def", "calc_qib2_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", ...
Calculate the first inflow component released from the soil. Required control parameters: |NHRU| |Lnk| |NFk| |DMin| |DMax| Required derived parameter: |WZ| Required state sequence: |BoWa| Calculated flux sequence: |QIB2| Basic equation: :mat...
[ "Calculate", "the", "first", "inflow", "component", "released", "from", "the", "soil", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L972-L1049
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_qdb_v1
def calc_qdb_v1(self): """Calculate direct runoff released from the soil. Required control parameters: |NHRU| |Lnk| |NFk| |BSf| Required state sequence: |BoWa| Required flux sequence: |WaDa| Calculated flux sequence: |QDB| Basic equations: :ma...
python
def calc_qdb_v1(self): """Calculate direct runoff released from the soil. Required control parameters: |NHRU| |Lnk| |NFk| |BSf| Required state sequence: |BoWa| Required flux sequence: |WaDa| Calculated flux sequence: |QDB| Basic equations: :ma...
[ "def", "calc_qdb_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "sta", "=", "self", ".", "sequences", ".", "states", ".", "fa...
Calculate direct runoff released from the soil. Required control parameters: |NHRU| |Lnk| |NFk| |BSf| Required state sequence: |BoWa| Required flux sequence: |WaDa| Calculated flux sequence: |QDB| Basic equations: :math:`QDB = \\Bigl \\lbrace ...
[ "Calculate", "direct", "runoff", "released", "from", "the", "soil", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L1052-L1131
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_bowa_v1
def calc_bowa_v1(self): """Update soil moisture and correct fluxes if necessary. Required control parameters: |NHRU| |Lnk| Required flux sequence: |WaDa| Updated state sequence: |BoWa| Required (and eventually corrected) flux sequences: |EvB| |QBB| |QIB1...
python
def calc_bowa_v1(self): """Update soil moisture and correct fluxes if necessary. Required control parameters: |NHRU| |Lnk| Required flux sequence: |WaDa| Updated state sequence: |BoWa| Required (and eventually corrected) flux sequences: |EvB| |QBB| |QIB1...
[ "def", "calc_bowa_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "sta", "=", "self", ".", "sequences", ".", "states", ".", "f...
Update soil moisture and correct fluxes if necessary. Required control parameters: |NHRU| |Lnk| Required flux sequence: |WaDa| Updated state sequence: |BoWa| Required (and eventually corrected) flux sequences: |EvB| |QBB| |QIB1| |QIB2| |QDB| ...
[ "Update", "soil", "moisture", "and", "correct", "fluxes", "if", "necessary", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L1134-L1216
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_qbgz_v1
def calc_qbgz_v1(self): """Aggregate the amount of base flow released by all "soil type" HRUs and the "net precipitation" above water areas of type |SEE|. Water areas of type |SEE| are assumed to be directly connected with groundwater, but not with the stream network. This is modelled by adding th...
python
def calc_qbgz_v1(self): """Aggregate the amount of base flow released by all "soil type" HRUs and the "net precipitation" above water areas of type |SEE|. Water areas of type |SEE| are assumed to be directly connected with groundwater, but not with the stream network. This is modelled by adding th...
[ "def", "calc_qbgz_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "sta", "=", "self", ".", "sequences", ".", "states", ".", "f...
Aggregate the amount of base flow released by all "soil type" HRUs and the "net precipitation" above water areas of type |SEE|. Water areas of type |SEE| are assumed to be directly connected with groundwater, but not with the stream network. This is modelled by adding their (positive or negative) "net...
[ "Aggregate", "the", "amount", "of", "base", "flow", "released", "by", "all", "soil", "type", "HRUs", "and", "the", "net", "precipitation", "above", "water", "areas", "of", "type", "|SEE|", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L1219-L1281
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_qigz1_v1
def calc_qigz1_v1(self): """Aggregate the amount of the first interflow component released by all HRUs. Required control parameters: |NHRU| |FHRU| Required flux sequence: |QIB1| Calculated state sequence: |QIGZ1| Basic equation: :math:`QIGZ1 = \\Sigma(FHRU \\cd...
python
def calc_qigz1_v1(self): """Aggregate the amount of the first interflow component released by all HRUs. Required control parameters: |NHRU| |FHRU| Required flux sequence: |QIB1| Calculated state sequence: |QIGZ1| Basic equation: :math:`QIGZ1 = \\Sigma(FHRU \\cd...
[ "def", "calc_qigz1_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "sta", "=", "self", ".", "sequences", ".", "states", ".", "...
Aggregate the amount of the first interflow component released by all HRUs. Required control parameters: |NHRU| |FHRU| Required flux sequence: |QIB1| Calculated state sequence: |QIGZ1| Basic equation: :math:`QIGZ1 = \\Sigma(FHRU \\cdot QIB1)` Example: ...
[ "Aggregate", "the", "amount", "of", "the", "first", "interflow", "component", "released", "by", "all", "HRUs", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L1284-L1317
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_qigz2_v1
def calc_qigz2_v1(self): """Aggregate the amount of the second interflow component released by all HRUs. Required control parameters: |NHRU| |FHRU| Required flux sequence: |QIB2| Calculated state sequence: |QIGZ2| Basic equation: :math:`QIGZ2 = \\Sigma(FHRU \\c...
python
def calc_qigz2_v1(self): """Aggregate the amount of the second interflow component released by all HRUs. Required control parameters: |NHRU| |FHRU| Required flux sequence: |QIB2| Calculated state sequence: |QIGZ2| Basic equation: :math:`QIGZ2 = \\Sigma(FHRU \\c...
[ "def", "calc_qigz2_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "sta", "=", "self", ".", "sequences", ".", "states", ".", "...
Aggregate the amount of the second interflow component released by all HRUs. Required control parameters: |NHRU| |FHRU| Required flux sequence: |QIB2| Calculated state sequence: |QIGZ2| Basic equation: :math:`QIGZ2 = \\Sigma(FHRU \\cdot QIB2)` Example: ...
[ "Aggregate", "the", "amount", "of", "the", "second", "interflow", "component", "released", "by", "all", "HRUs", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L1320-L1353
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_qdgz_v1
def calc_qdgz_v1(self): """Aggregate the amount of total direct flow released by all HRUs. Required control parameters: |Lnk| |NHRU| |FHRU| Required flux sequence: |QDB| |NKor| |EvI| Calculated flux sequence: |QDGZ| Basic equation: :math:`QDGZ = \...
python
def calc_qdgz_v1(self): """Aggregate the amount of total direct flow released by all HRUs. Required control parameters: |Lnk| |NHRU| |FHRU| Required flux sequence: |QDB| |NKor| |EvI| Calculated flux sequence: |QDGZ| Basic equation: :math:`QDGZ = \...
[ "def", "calc_qdgz_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "flu", ".", "qdgz", "=", "0.", "for", "k", "in", "range", ...
Aggregate the amount of total direct flow released by all HRUs. Required control parameters: |Lnk| |NHRU| |FHRU| Required flux sequence: |QDB| |NKor| |EvI| Calculated flux sequence: |QDGZ| Basic equation: :math:`QDGZ = \\Sigma(FHRU \\cdot QDB) + ...
[ "Aggregate", "the", "amount", "of", "total", "direct", "flow", "released", "by", "all", "HRUs", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L1356-L1411
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_qdgz1_qdgz2_v1
def calc_qdgz1_qdgz2_v1(self): """Seperate total direct flow into a small and a fast component. Required control parameters: |A1| |A2| Required flux sequence: |QDGZ| Calculated state sequences: |QDGZ1| |QDGZ2| Basic equation: :math:`QDGZ2 = \\frac{(QDGZ-A2)^2...
python
def calc_qdgz1_qdgz2_v1(self): """Seperate total direct flow into a small and a fast component. Required control parameters: |A1| |A2| Required flux sequence: |QDGZ| Calculated state sequences: |QDGZ1| |QDGZ2| Basic equation: :math:`QDGZ2 = \\frac{(QDGZ-A2)^2...
[ "def", "calc_qdgz1_qdgz2_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "sta", "=", "self", ".", "sequences", ".", "states", "....
Seperate total direct flow into a small and a fast component. Required control parameters: |A1| |A2| Required flux sequence: |QDGZ| Calculated state sequences: |QDGZ1| |QDGZ2| Basic equation: :math:`QDGZ2 = \\frac{(QDGZ-A2)^2}{QDGZ+A1-A2}` :math:`QDGZ1 = Q...
[ "Seperate", "total", "direct", "flow", "into", "a", "small", "and", "a", "fast", "component", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L1414-L1520
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_qbga_v1
def calc_qbga_v1(self): """Perform the runoff concentration calculation for base flow. The working equation is the analytical solution of the linear storage equation under the assumption of constant change in inflow during the simulation time step. Required derived parameter: |KB| Requi...
python
def calc_qbga_v1(self): """Perform the runoff concentration calculation for base flow. The working equation is the analytical solution of the linear storage equation under the assumption of constant change in inflow during the simulation time step. Required derived parameter: |KB| Requi...
[ "def", "calc_qbga_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "old", "=", "self", ".", "sequences", ".", "states", ".", "fastaccess_old", "new", "=", "self", ".", "sequences", ".", "states", ".", ...
Perform the runoff concentration calculation for base flow. The working equation is the analytical solution of the linear storage equation under the assumption of constant change in inflow during the simulation time step. Required derived parameter: |KB| Required flux sequence: |QBGZ|...
[ "Perform", "the", "runoff", "concentration", "calculation", "for", "base", "flow", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L1523-L1583
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_qiga1_v1
def calc_qiga1_v1(self): """Perform the runoff concentration calculation for the first interflow component. The working equation is the analytical solution of the linear storage equation under the assumption of constant change in inflow during the simulation time step. Required derived paramet...
python
def calc_qiga1_v1(self): """Perform the runoff concentration calculation for the first interflow component. The working equation is the analytical solution of the linear storage equation under the assumption of constant change in inflow during the simulation time step. Required derived paramet...
[ "def", "calc_qiga1_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "old", "=", "self", ".", "sequences", ".", "states", ".", "fastaccess_old", "new", "=", "self", ".", "sequences", ".", "states", ".",...
Perform the runoff concentration calculation for the first interflow component. The working equation is the analytical solution of the linear storage equation under the assumption of constant change in inflow during the simulation time step. Required derived parameter: |KI1| Required st...
[ "Perform", "the", "runoff", "concentration", "calculation", "for", "the", "first", "interflow", "component", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L1586-L1647
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_qiga2_v1
def calc_qiga2_v1(self): """Perform the runoff concentration calculation for the second interflow component. The working equation is the analytical solution of the linear storage equation under the assumption of constant change in inflow during the simulation time step. Required derived parame...
python
def calc_qiga2_v1(self): """Perform the runoff concentration calculation for the second interflow component. The working equation is the analytical solution of the linear storage equation under the assumption of constant change in inflow during the simulation time step. Required derived parame...
[ "def", "calc_qiga2_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "old", "=", "self", ".", "sequences", ".", "states", ".", "fastaccess_old", "new", "=", "self", ".", "sequences", ".", "states", ".",...
Perform the runoff concentration calculation for the second interflow component. The working equation is the analytical solution of the linear storage equation under the assumption of constant change in inflow during the simulation time step. Required derived parameter: |KI2| Required s...
[ "Perform", "the", "runoff", "concentration", "calculation", "for", "the", "second", "interflow", "component", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L1650-L1711
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_qdga1_v1
def calc_qdga1_v1(self): """Perform the runoff concentration calculation for "slow" direct runoff. The working equation is the analytical solution of the linear storage equation under the assumption of constant change in inflow during the simulation time step. Required derived parameter: |KD...
python
def calc_qdga1_v1(self): """Perform the runoff concentration calculation for "slow" direct runoff. The working equation is the analytical solution of the linear storage equation under the assumption of constant change in inflow during the simulation time step. Required derived parameter: |KD...
[ "def", "calc_qdga1_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "old", "=", "self", ".", "sequences", ".", "states", ".", "fastaccess_old", "new", "=", "self", ".", "sequences", ".", "states", ".",...
Perform the runoff concentration calculation for "slow" direct runoff. The working equation is the analytical solution of the linear storage equation under the assumption of constant change in inflow during the simulation time step. Required derived parameter: |KD1| Required state sequence:...
[ "Perform", "the", "runoff", "concentration", "calculation", "for", "slow", "direct", "runoff", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L1714-L1774
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_qdga2_v1
def calc_qdga2_v1(self): """Perform the runoff concentration calculation for "fast" direct runoff. The working equation is the analytical solution of the linear storage equation under the assumption of constant change in inflow during the simulation time step. Required derived parameter: |KD...
python
def calc_qdga2_v1(self): """Perform the runoff concentration calculation for "fast" direct runoff. The working equation is the analytical solution of the linear storage equation under the assumption of constant change in inflow during the simulation time step. Required derived parameter: |KD...
[ "def", "calc_qdga2_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "old", "=", "self", ".", "sequences", ".", "states", ".", "fastaccess_old", "new", "=", "self", ".", "sequences", ".", "states", ".",...
Perform the runoff concentration calculation for "fast" direct runoff. The working equation is the analytical solution of the linear storage equation under the assumption of constant change in inflow during the simulation time step. Required derived parameter: |KD2| Required state sequence:...
[ "Perform", "the", "runoff", "concentration", "calculation", "for", "fast", "direct", "runoff", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L1777-L1837
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
calc_q_v1
def calc_q_v1(self): """Calculate the final runoff. Note that, in case there are water areas, their |NKor| values are added and their |EvPo| values are subtracted from the "potential" runoff value, if possible. This hold true for |WASSER| only and is due to compatibility with the original LARSIM i...
python
def calc_q_v1(self): """Calculate the final runoff. Note that, in case there are water areas, their |NKor| values are added and their |EvPo| values are subtracted from the "potential" runoff value, if possible. This hold true for |WASSER| only and is due to compatibility with the original LARSIM i...
[ "def", "calc_q_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "sta", "=", "self", ".", "sequences", ".", "states", ".", "fast...
Calculate the final runoff. Note that, in case there are water areas, their |NKor| values are added and their |EvPo| values are subtracted from the "potential" runoff value, if possible. This hold true for |WASSER| only and is due to compatibility with the original LARSIM implementation. Using land ...
[ "Calculate", "the", "final", "runoff", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L1840-L2002
hydpy-dev/hydpy
hydpy/models/lland/lland_model.py
pass_q_v1
def pass_q_v1(self): """Update the outlet link sequence. Required derived parameter: |QFactor| Required flux sequences: |lland_fluxes.Q| Calculated flux sequence: |lland_outlets.Q| Basic equation: :math:`Q_{outlets} = QFactor \\cdot Q_{fluxes}` """ der = self.par...
python
def pass_q_v1(self): """Update the outlet link sequence. Required derived parameter: |QFactor| Required flux sequences: |lland_fluxes.Q| Calculated flux sequence: |lland_outlets.Q| Basic equation: :math:`Q_{outlets} = QFactor \\cdot Q_{fluxes}` """ der = self.par...
[ "def", "pass_q_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "out", "=", "self", ".", "sequences", ".", "outlets", ".", "fas...
Update the outlet link sequence. Required derived parameter: |QFactor| Required flux sequences: |lland_fluxes.Q| Calculated flux sequence: |lland_outlets.Q| Basic equation: :math:`Q_{outlets} = QFactor \\cdot Q_{fluxes}`
[ "Update", "the", "outlet", "link", "sequence", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lland/lland_model.py#L2005-L2023
hydpy-dev/hydpy
hydpy/models/hbranch/hbranch_model.py
calc_outputs_v1
def calc_outputs_v1(self): """Performs the actual interpolation or extrapolation. Required control parameters: |XPoints| |YPoints| Required derived parameter: |NmbPoints| |NmbBranches| Required flux sequence: |Input| Calculated flux sequence: |Outputs| Ex...
python
def calc_outputs_v1(self): """Performs the actual interpolation or extrapolation. Required control parameters: |XPoints| |YPoints| Required derived parameter: |NmbPoints| |NmbBranches| Required flux sequence: |Input| Calculated flux sequence: |Outputs| Ex...
[ "def", "calc_outputs_v1", "(", "self", ")", ":", "con", "=", "self", ".", "parameters", ".", "control", ".", "fastaccess", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".",...
Performs the actual interpolation or extrapolation. Required control parameters: |XPoints| |YPoints| Required derived parameter: |NmbPoints| |NmbBranches| Required flux sequence: |Input| Calculated flux sequence: |Outputs| Examples: As a simple examp...
[ "Performs", "the", "actual", "interpolation", "or", "extrapolation", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hbranch/hbranch_model.py#L11-L94
hydpy-dev/hydpy
hydpy/models/hbranch/hbranch_model.py
pick_input_v1
def pick_input_v1(self): """Updates |Input| based on |Total|.""" flu = self.sequences.fluxes.fastaccess inl = self.sequences.inlets.fastaccess flu.input = 0. for idx in range(inl.len_total): flu.input += inl.total[idx][0]
python
def pick_input_v1(self): """Updates |Input| based on |Total|.""" flu = self.sequences.fluxes.fastaccess inl = self.sequences.inlets.fastaccess flu.input = 0. for idx in range(inl.len_total): flu.input += inl.total[idx][0]
[ "def", "pick_input_v1", "(", "self", ")", ":", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "inl", "=", "self", ".", "sequences", ".", "inlets", ".", "fastaccess", "flu", ".", "input", "=", "0.", "for", "idx", "in", "range", ...
Updates |Input| based on |Total|.
[ "Updates", "|Input|", "based", "on", "|Total|", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hbranch/hbranch_model.py#L97-L103
hydpy-dev/hydpy
hydpy/models/hbranch/hbranch_model.py
pass_outputs_v1
def pass_outputs_v1(self): """Updates |Branched| based on |Outputs|.""" der = self.parameters.derived.fastaccess flu = self.sequences.fluxes.fastaccess out = self.sequences.outlets.fastaccess for bdx in range(der.nmbbranches): out.branched[bdx][0] += flu.outputs[bdx]
python
def pass_outputs_v1(self): """Updates |Branched| based on |Outputs|.""" der = self.parameters.derived.fastaccess flu = self.sequences.fluxes.fastaccess out = self.sequences.outlets.fastaccess for bdx in range(der.nmbbranches): out.branched[bdx][0] += flu.outputs[bdx]
[ "def", "pass_outputs_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "out", "=", "self", ".", "sequences", ".", "outlets", ".", ...
Updates |Branched| based on |Outputs|.
[ "Updates", "|Branched|", "based", "on", "|Outputs|", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hbranch/hbranch_model.py#L106-L112
hydpy-dev/hydpy
hydpy/models/hbranch/hbranch_model.py
Model.connect
def connect(self): """Connect the |LinkSequence| instances handled by the actual model to the |NodeSequence| instances handled by one inlet node and multiple oulet nodes. The HydPy-H-Branch model passes multiple output values to different outlet nodes. This requires additional ...
python
def connect(self): """Connect the |LinkSequence| instances handled by the actual model to the |NodeSequence| instances handled by one inlet node and multiple oulet nodes. The HydPy-H-Branch model passes multiple output values to different outlet nodes. This requires additional ...
[ "def", "connect", "(", "self", ")", ":", "nodes", "=", "self", ".", "element", ".", "inlets", "total", "=", "self", ".", "sequences", ".", "inlets", ".", "total", "if", "total", ".", "shape", "!=", "(", "len", "(", "nodes", ")", ",", ")", ":", "t...
Connect the |LinkSequence| instances handled by the actual model to the |NodeSequence| instances handled by one inlet node and multiple oulet nodes. The HydPy-H-Branch model passes multiple output values to different outlet nodes. This requires additional information regarding the ...
[ "Connect", "the", "|LinkSequence|", "instances", "handled", "by", "the", "actual", "model", "to", "the", "|NodeSequence|", "instances", "handled", "by", "one", "inlet", "node", "and", "multiple", "oulet", "nodes", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hbranch/hbranch_model.py#L125-L193
hydpy-dev/hydpy
hydpy/models/arma/arma_derived.py
Nmb.update
def update(self): """Determine the number of response functions. >>> from hydpy.models.arma import * >>> parameterstep('1d') >>> responses(((1., 2.), (1.,)), th_3=((1.,), (1., 2., 3.))) >>> derived.nmb.update() >>> derived.nmb nmb(2) Note that updating p...
python
def update(self): """Determine the number of response functions. >>> from hydpy.models.arma import * >>> parameterstep('1d') >>> responses(((1., 2.), (1.,)), th_3=((1.,), (1., 2., 3.))) >>> derived.nmb.update() >>> derived.nmb nmb(2) Note that updating p...
[ "def", "update", "(", "self", ")", ":", "pars", "=", "self", ".", "subpars", ".", "pars", "responses", "=", "pars", ".", "control", ".", "responses", "fluxes", "=", "pars", ".", "model", ".", "sequences", ".", "fluxes", "self", "(", "len", "(", "resp...
Determine the number of response functions. >>> from hydpy.models.arma import * >>> parameterstep('1d') >>> responses(((1., 2.), (1.,)), th_3=((1.,), (1., 2., 3.))) >>> derived.nmb.update() >>> derived.nmb nmb(2) Note that updating parameter `nmb` sets the shape...
[ "Determine", "the", "number", "of", "response", "functions", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_derived.py#L16-L45
hydpy-dev/hydpy
hydpy/models/arma/arma_derived.py
AR_Order.update
def update(self): """Determine the total number of AR coefficients. >>> from hydpy.models.arma import * >>> parameterstep('1d') >>> responses(((1., 2.), (1.,)), th_3=((1.,), (1., 2., 3.))) >>> derived.ar_order.update() >>> derived.ar_order ar_order(2, 1) ...
python
def update(self): """Determine the total number of AR coefficients. >>> from hydpy.models.arma import * >>> parameterstep('1d') >>> responses(((1., 2.), (1.,)), th_3=((1.,), (1., 2., 3.))) >>> derived.ar_order.update() >>> derived.ar_order ar_order(2, 1) ...
[ "def", "update", "(", "self", ")", ":", "responses", "=", "self", ".", "subpars", ".", "pars", ".", "control", ".", "responses", "self", ".", "shape", "=", "len", "(", "responses", ")", "self", "(", "responses", ".", "ar_orders", ")" ]
Determine the total number of AR coefficients. >>> from hydpy.models.arma import * >>> parameterstep('1d') >>> responses(((1., 2.), (1.,)), th_3=((1.,), (1., 2., 3.))) >>> derived.ar_order.update() >>> derived.ar_order ar_order(2, 1)
[ "Determine", "the", "total", "number", "of", "AR", "coefficients", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_derived.py#L94-L106
hydpy-dev/hydpy
hydpy/models/arma/arma_derived.py
AR_Coefs.update
def update(self): """Determine all AR coefficients. >>> from hydpy.models.arma import * >>> parameterstep('1d') >>> responses(((1., 2.), (1.,)), th_3=((1.,), (1., 2., 3.))) >>> derived.ar_coefs.update() >>> derived.ar_coefs ar_coefs([[1.0, 2.0], ...
python
def update(self): """Determine all AR coefficients. >>> from hydpy.models.arma import * >>> parameterstep('1d') >>> responses(((1., 2.), (1.,)), th_3=((1.,), (1., 2., 3.))) >>> derived.ar_coefs.update() >>> derived.ar_coefs ar_coefs([[1.0, 2.0], ...
[ "def", "update", "(", "self", ")", ":", "pars", "=", "self", ".", "subpars", ".", "pars", "coefs", "=", "pars", ".", "control", ".", "responses", ".", "ar_coefs", "self", ".", "shape", "=", "coefs", ".", "shape", "self", "(", "coefs", ")", "pars", ...
Determine all AR coefficients. >>> from hydpy.models.arma import * >>> parameterstep('1d') >>> responses(((1., 2.), (1.,)), th_3=((1.,), (1., 2., 3.))) >>> derived.ar_coefs.update() >>> derived.ar_coefs ar_coefs([[1.0, 2.0], [1.0, nan]]) Note t...
[ "Determine", "all", "AR", "coefficients", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_derived.py#L132-L154
hydpy-dev/hydpy
hydpy/models/arma/arma_derived.py
MA_Coefs.update
def update(self): """Determine all MA coefficients. >>> from hydpy.models.arma import * >>> parameterstep('1d') >>> responses(((1., 2.), (1.,)), th_3=((1.,), (1., 2., 3.))) >>> derived.ma_coefs.update() >>> derived.ma_coefs ma_coefs([[1.0, nan, nan], ...
python
def update(self): """Determine all MA coefficients. >>> from hydpy.models.arma import * >>> parameterstep('1d') >>> responses(((1., 2.), (1.,)), th_3=((1.,), (1., 2., 3.))) >>> derived.ma_coefs.update() >>> derived.ma_coefs ma_coefs([[1.0, nan, nan], ...
[ "def", "update", "(", "self", ")", ":", "pars", "=", "self", ".", "subpars", ".", "pars", "coefs", "=", "pars", ".", "control", ".", "responses", ".", "ma_coefs", "self", ".", "shape", "=", "coefs", ".", "shape", "self", "(", "coefs", ")", "pars", ...
Determine all MA coefficients. >>> from hydpy.models.arma import * >>> parameterstep('1d') >>> responses(((1., 2.), (1.,)), th_3=((1.,), (1., 2., 3.))) >>> derived.ma_coefs.update() >>> derived.ma_coefs ma_coefs([[1.0, nan, nan], [1.0, 2.0, 3.0]]) ...
[ "Determine", "all", "MA", "coefficients", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_derived.py#L161-L183
hydpy-dev/hydpy
hydpy/core/optiontools.py
_prepare_docstrings
def _prepare_docstrings(): """Assign docstrings to the corresponding attributes of class `Options` to make them available in the interactive mode of Python.""" if config.USEAUTODOC: source = inspect.getsource(Options) docstrings = source.split('"""')[3::2] attributes = [line.strip()...
python
def _prepare_docstrings(): """Assign docstrings to the corresponding attributes of class `Options` to make them available in the interactive mode of Python.""" if config.USEAUTODOC: source = inspect.getsource(Options) docstrings = source.split('"""')[3::2] attributes = [line.strip()...
[ "def", "_prepare_docstrings", "(", ")", ":", "if", "config", ".", "USEAUTODOC", ":", "source", "=", "inspect", ".", "getsource", "(", "Options", ")", "docstrings", "=", "source", ".", "split", "(", "'\"\"\"'", ")", "[", "3", ":", ":", "2", "]", "attrib...
Assign docstrings to the corresponding attributes of class `Options` to make them available in the interactive mode of Python.
[ "Assign", "docstrings", "to", "the", "corresponding", "attributes", "of", "class", "Options", "to", "make", "them", "available", "in", "the", "interactive", "mode", "of", "Python", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/optiontools.py#L211-L220
hydpy-dev/hydpy
hydpy/core/selectiontools.py
Selections.nodes
def nodes(self) -> devicetools.Nodes: """A |set| containing the |Node| objects of all handled |Selection| objects. >>> from hydpy import Selection, Selections >>> selections = Selections( ... Selection('sel1', ['node1', 'node2'], ['element1']), ... Selection('sel...
python
def nodes(self) -> devicetools.Nodes: """A |set| containing the |Node| objects of all handled |Selection| objects. >>> from hydpy import Selection, Selections >>> selections = Selections( ... Selection('sel1', ['node1', 'node2'], ['element1']), ... Selection('sel...
[ "def", "nodes", "(", "self", ")", "->", "devicetools", ".", "Nodes", ":", "nodes", "=", "devicetools", ".", "Nodes", "(", ")", "for", "selection", "in", "self", ":", "nodes", "+=", "selection", ".", "nodes", "return", "nodes" ]
A |set| containing the |Node| objects of all handled |Selection| objects. >>> from hydpy import Selection, Selections >>> selections = Selections( ... Selection('sel1', ['node1', 'node2'], ['element1']), ... Selection('sel2', ['node1', 'node3'], ['element2'])) >>...
[ "A", "|set|", "containing", "the", "|Node|", "objects", "of", "all", "handled", "|Selection|", "objects", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/selectiontools.py#L160-L174
hydpy-dev/hydpy
hydpy/core/selectiontools.py
Selections.elements
def elements(self) -> devicetools.Elements: """A |set| containing the |Node| objects of all handled |Selection| objects. >>> from hydpy import Selection, Selections >>> selections = Selections( ... Selection('sel1', ['node1'], ['element1']), ... Selection('sel2',...
python
def elements(self) -> devicetools.Elements: """A |set| containing the |Node| objects of all handled |Selection| objects. >>> from hydpy import Selection, Selections >>> selections = Selections( ... Selection('sel1', ['node1'], ['element1']), ... Selection('sel2',...
[ "def", "elements", "(", "self", ")", "->", "devicetools", ".", "Elements", ":", "elements", "=", "devicetools", ".", "Elements", "(", ")", "for", "selection", "in", "self", ":", "elements", "+=", "selection", ".", "elements", "return", "elements" ]
A |set| containing the |Node| objects of all handled |Selection| objects. >>> from hydpy import Selection, Selections >>> selections = Selections( ... Selection('sel1', ['node1'], ['element1']), ... Selection('sel2', ['node1'], ['element2', 'element3'])) >>> sele...
[ "A", "|set|", "containing", "the", "|Node|", "objects", "of", "all", "handled", "|Selection|", "objects", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/selectiontools.py#L177-L191
hydpy-dev/hydpy
hydpy/core/selectiontools.py
Selections.__getiterable
def __getiterable(value): # ToDo: refactor """Try to convert the given argument to a |list| of |Selection| objects and return it. """ if isinstance(value, Selection): return [value] try: for selection in value: if not isinstance(selectio...
python
def __getiterable(value): # ToDo: refactor """Try to convert the given argument to a |list| of |Selection| objects and return it. """ if isinstance(value, Selection): return [value] try: for selection in value: if not isinstance(selectio...
[ "def", "__getiterable", "(", "value", ")", ":", "# ToDo: refactor", "if", "isinstance", "(", "value", ",", "Selection", ")", ":", "return", "[", "value", "]", "try", ":", "for", "selection", "in", "value", ":", "if", "not", "isinstance", "(", "selection", ...
Try to convert the given argument to a |list| of |Selection| objects and return it.
[ "Try", "to", "convert", "the", "given", "argument", "to", "a", "|list|", "of", "|Selection|", "objects", "and", "return", "it", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/selectiontools.py#L237-L253
hydpy-dev/hydpy
hydpy/core/selectiontools.py
Selections.assignrepr
def assignrepr(self, prefix='') -> str: """Return a |repr| string with a prefixed assignment.""" with objecttools.repr_.preserve_strings(True): with hydpy.pub.options.ellipsis(2, optional=True): prefix += '%s(' % objecttools.classname(self) repr_ = objecttools...
python
def assignrepr(self, prefix='') -> str: """Return a |repr| string with a prefixed assignment.""" with objecttools.repr_.preserve_strings(True): with hydpy.pub.options.ellipsis(2, optional=True): prefix += '%s(' % objecttools.classname(self) repr_ = objecttools...
[ "def", "assignrepr", "(", "self", ",", "prefix", "=", "''", ")", "->", "str", ":", "with", "objecttools", ".", "repr_", ".", "preserve_strings", "(", "True", ")", ":", "with", "hydpy", ".", "pub", ".", "options", ".", "ellipsis", "(", "2", ",", "opti...
Return a |repr| string with a prefixed assignment.
[ "Return", "a", "|repr|", "string", "with", "a", "prefixed", "assignment", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/selectiontools.py#L303-L310
hydpy-dev/hydpy
hydpy/core/selectiontools.py
Selection.search_upstream
def search_upstream(self, device: devicetools.Device, name: str = 'upstream') -> 'Selection': """Return the network upstream of the given starting point, including the starting point itself. >>> from hydpy.core.examples import prepare_full_example_2 >>> hp, pub, ...
python
def search_upstream(self, device: devicetools.Device, name: str = 'upstream') -> 'Selection': """Return the network upstream of the given starting point, including the starting point itself. >>> from hydpy.core.examples import prepare_full_example_2 >>> hp, pub, ...
[ "def", "search_upstream", "(", "self", ",", "device", ":", "devicetools", ".", "Device", ",", "name", ":", "str", "=", "'upstream'", ")", "->", "'Selection'", ":", "try", ":", "selection", "=", "Selection", "(", "name", ")", "if", "isinstance", "(", "dev...
Return the network upstream of the given starting point, including the starting point itself. >>> from hydpy.core.examples import prepare_full_example_2 >>> hp, pub, _ = prepare_full_example_2() You can pass both |Node| and |Element| objects and, optionally, the name of the new...
[ "Return", "the", "network", "upstream", "of", "the", "given", "starting", "point", "including", "the", "starting", "point", "itself", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/selectiontools.py#L434-L517
hydpy-dev/hydpy
hydpy/core/selectiontools.py
Selection.select_upstream
def select_upstream(self, device: devicetools.Device) -> 'Selection': """Restrict the current selection to the network upstream of the given starting point, including the starting point itself. See the documentation on method |Selection.search_upstream| for additional information. ...
python
def select_upstream(self, device: devicetools.Device) -> 'Selection': """Restrict the current selection to the network upstream of the given starting point, including the starting point itself. See the documentation on method |Selection.search_upstream| for additional information. ...
[ "def", "select_upstream", "(", "self", ",", "device", ":", "devicetools", ".", "Device", ")", "->", "'Selection'", ":", "upstream", "=", "self", ".", "search_upstream", "(", "device", ")", "self", ".", "nodes", "=", "upstream", ".", "nodes", "self", ".", ...
Restrict the current selection to the network upstream of the given starting point, including the starting point itself. See the documentation on method |Selection.search_upstream| for additional information.
[ "Restrict", "the", "current", "selection", "to", "the", "network", "upstream", "of", "the", "given", "starting", "point", "including", "the", "starting", "point", "itself", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/selectiontools.py#L533-L543
hydpy-dev/hydpy
hydpy/core/selectiontools.py
Selection.search_modeltypes
def search_modeltypes(self, *models: ModelTypesArg, name: str = 'modeltypes') -> 'Selection': """Return a |Selection| object containing only the elements currently handling models of the given types. >>> from hydpy.core.examples import prepare_full_example_2 >>...
python
def search_modeltypes(self, *models: ModelTypesArg, name: str = 'modeltypes') -> 'Selection': """Return a |Selection| object containing only the elements currently handling models of the given types. >>> from hydpy.core.examples import prepare_full_example_2 >>...
[ "def", "search_modeltypes", "(", "self", ",", "*", "models", ":", "ModelTypesArg", ",", "name", ":", "str", "=", "'modeltypes'", ")", "->", "'Selection'", ":", "try", ":", "typelist", "=", "[", "]", "for", "model", "in", "models", ":", "if", "not", "is...
Return a |Selection| object containing only the elements currently handling models of the given types. >>> from hydpy.core.examples import prepare_full_example_2 >>> hp, pub, _ = prepare_full_example_2() You can pass both |Model| objects and names and, as a keyword argument, th...
[ "Return", "a", "|Selection|", "object", "containing", "only", "the", "elements", "currently", "handling", "models", "of", "the", "given", "types", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/selectiontools.py#L559-L635
hydpy-dev/hydpy
hydpy/core/selectiontools.py
Selection.select_modeltypes
def select_modeltypes(self, *models: ModelTypesArg) -> 'Selection': """Restrict the current |Selection| object to all elements containing the given model types (removes all nodes). See the documentation on method |Selection.search_modeltypes| for additional information. """ ...
python
def select_modeltypes(self, *models: ModelTypesArg) -> 'Selection': """Restrict the current |Selection| object to all elements containing the given model types (removes all nodes). See the documentation on method |Selection.search_modeltypes| for additional information. """ ...
[ "def", "select_modeltypes", "(", "self", ",", "*", "models", ":", "ModelTypesArg", ")", "->", "'Selection'", ":", "self", ".", "nodes", "=", "devicetools", ".", "Nodes", "(", ")", "self", ".", "elements", "=", "self", ".", "search_modeltypes", "(", "*", ...
Restrict the current |Selection| object to all elements containing the given model types (removes all nodes). See the documentation on method |Selection.search_modeltypes| for additional information.
[ "Restrict", "the", "current", "|Selection|", "object", "to", "all", "elements", "containing", "the", "given", "model", "types", "(", "removes", "all", "nodes", ")", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/selectiontools.py#L637-L646
hydpy-dev/hydpy
hydpy/core/selectiontools.py
Selection.search_nodenames
def search_nodenames(self, *substrings: str, name: str = 'nodenames') -> \ 'Selection': """Return a new selection containing all nodes of the current selection with a name containing at least one of the given substrings. >>> from hydpy.core.examples import prepare_full_example_2 ...
python
def search_nodenames(self, *substrings: str, name: str = 'nodenames') -> \ 'Selection': """Return a new selection containing all nodes of the current selection with a name containing at least one of the given substrings. >>> from hydpy.core.examples import prepare_full_example_2 ...
[ "def", "search_nodenames", "(", "self", ",", "*", "substrings", ":", "str", ",", "name", ":", "str", "=", "'nodenames'", ")", "->", "'Selection'", ":", "try", ":", "selection", "=", "Selection", "(", "name", ")", "for", "node", "in", "self", ".", "node...
Return a new selection containing all nodes of the current selection with a name containing at least one of the given substrings. >>> from hydpy.core.examples import prepare_full_example_2 >>> hp, pub, _ = prepare_full_example_2() Pass the (sub)strings as positional arguments and, opti...
[ "Return", "a", "new", "selection", "containing", "all", "nodes", "of", "the", "current", "selection", "with", "a", "name", "containing", "at", "least", "one", "of", "the", "given", "substrings", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/selectiontools.py#L659-L721
hydpy-dev/hydpy
hydpy/core/selectiontools.py
Selection.select_nodenames
def select_nodenames(self, *substrings: str) -> 'Selection': """Restrict the current selection to all nodes with a name containing at least one of the given substrings (does not affect any elements). See the documentation on method |Selection.search_nodenames| for additional in...
python
def select_nodenames(self, *substrings: str) -> 'Selection': """Restrict the current selection to all nodes with a name containing at least one of the given substrings (does not affect any elements). See the documentation on method |Selection.search_nodenames| for additional in...
[ "def", "select_nodenames", "(", "self", ",", "*", "substrings", ":", "str", ")", "->", "'Selection'", ":", "self", ".", "nodes", "=", "self", ".", "search_nodenames", "(", "*", "substrings", ")", ".", "nodes", "return", "self" ]
Restrict the current selection to all nodes with a name containing at least one of the given substrings (does not affect any elements). See the documentation on method |Selection.search_nodenames| for additional information.
[ "Restrict", "the", "current", "selection", "to", "all", "nodes", "with", "a", "name", "containing", "at", "least", "one", "of", "the", "given", "substrings", "(", "does", "not", "affect", "any", "elements", ")", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/selectiontools.py#L723-L732
hydpy-dev/hydpy
hydpy/core/selectiontools.py
Selection.deselect_nodenames
def deselect_nodenames(self, *substrings: str) -> 'Selection': """Restrict the current selection to all nodes with a name not containing at least one of the given substrings (does not affect any elements). See the documentation on method |Selection.search_nodenames| for addition...
python
def deselect_nodenames(self, *substrings: str) -> 'Selection': """Restrict the current selection to all nodes with a name not containing at least one of the given substrings (does not affect any elements). See the documentation on method |Selection.search_nodenames| for addition...
[ "def", "deselect_nodenames", "(", "self", ",", "*", "substrings", ":", "str", ")", "->", "'Selection'", ":", "self", ".", "nodes", "-=", "self", ".", "search_nodenames", "(", "*", "substrings", ")", ".", "nodes", "return", "self" ]
Restrict the current selection to all nodes with a name not containing at least one of the given substrings (does not affect any elements). See the documentation on method |Selection.search_nodenames| for additional information.
[ "Restrict", "the", "current", "selection", "to", "all", "nodes", "with", "a", "name", "not", "containing", "at", "least", "one", "of", "the", "given", "substrings", "(", "does", "not", "affect", "any", "elements", ")", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/selectiontools.py#L734-L743
hydpy-dev/hydpy
hydpy/core/selectiontools.py
Selection.search_elementnames
def search_elementnames(self, *substrings: str, name: str = 'elementnames') -> 'Selection': """Return a new selection containing all elements of the current selection with a name containing at least one of the given substrings. >>> from hydpy.core.examples import pre...
python
def search_elementnames(self, *substrings: str, name: str = 'elementnames') -> 'Selection': """Return a new selection containing all elements of the current selection with a name containing at least one of the given substrings. >>> from hydpy.core.examples import pre...
[ "def", "search_elementnames", "(", "self", ",", "*", "substrings", ":", "str", ",", "name", ":", "str", "=", "'elementnames'", ")", "->", "'Selection'", ":", "try", ":", "selection", "=", "Selection", "(", "name", ")", "for", "element", "in", "self", "."...
Return a new selection containing all elements of the current selection with a name containing at least one of the given substrings. >>> from hydpy.core.examples import prepare_full_example_2 >>> hp, pub, _ = prepare_full_example_2() Pass the (sub)strings as positional arguments and, o...
[ "Return", "a", "new", "selection", "containing", "all", "elements", "of", "the", "current", "selection", "with", "a", "name", "containing", "at", "least", "one", "of", "the", "given", "substrings", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/selectiontools.py#L745-L806
hydpy-dev/hydpy
hydpy/core/selectiontools.py
Selection.select_elementnames
def select_elementnames(self, *substrings: str) -> 'Selection': """Restrict the current selection to all elements with a name containing at least one of the given substrings (does not affect any nodes). See the documentation on method |Selection.search_elementnames| for addition...
python
def select_elementnames(self, *substrings: str) -> 'Selection': """Restrict the current selection to all elements with a name containing at least one of the given substrings (does not affect any nodes). See the documentation on method |Selection.search_elementnames| for addition...
[ "def", "select_elementnames", "(", "self", ",", "*", "substrings", ":", "str", ")", "->", "'Selection'", ":", "self", ".", "elements", "=", "self", ".", "search_elementnames", "(", "*", "substrings", ")", ".", "elements", "return", "self" ]
Restrict the current selection to all elements with a name containing at least one of the given substrings (does not affect any nodes). See the documentation on method |Selection.search_elementnames| for additional information.
[ "Restrict", "the", "current", "selection", "to", "all", "elements", "with", "a", "name", "containing", "at", "least", "one", "of", "the", "given", "substrings", "(", "does", "not", "affect", "any", "nodes", ")", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/selectiontools.py#L808-L817
hydpy-dev/hydpy
hydpy/core/selectiontools.py
Selection.deselect_elementnames
def deselect_elementnames(self, *substrings: str) -> 'Selection': """Restrict the current selection to all elements with a name not containing at least one of the given substrings. (does not affect any nodes). See the documentation on method |Selection.search_elementnames| for ...
python
def deselect_elementnames(self, *substrings: str) -> 'Selection': """Restrict the current selection to all elements with a name not containing at least one of the given substrings. (does not affect any nodes). See the documentation on method |Selection.search_elementnames| for ...
[ "def", "deselect_elementnames", "(", "self", ",", "*", "substrings", ":", "str", ")", "->", "'Selection'", ":", "self", ".", "elements", "-=", "self", ".", "search_elementnames", "(", "*", "substrings", ")", ".", "elements", "return", "self" ]
Restrict the current selection to all elements with a name not containing at least one of the given substrings. (does not affect any nodes). See the documentation on method |Selection.search_elementnames| for additional information.
[ "Restrict", "the", "current", "selection", "to", "all", "elements", "with", "a", "name", "not", "containing", "at", "least", "one", "of", "the", "given", "substrings", ".", "(", "does", "not", "affect", "any", "nodes", ")", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/selectiontools.py#L819-L828
hydpy-dev/hydpy
hydpy/core/selectiontools.py
Selection.copy
def copy(self, name: str) -> 'Selection': """Return a new |Selection| object with the given name and copies of the handles |Nodes| and |Elements| objects based on method |Devices.copy|.""" return type(self)(name, copy.copy(self.nodes), copy.copy(self.elements))
python
def copy(self, name: str) -> 'Selection': """Return a new |Selection| object with the given name and copies of the handles |Nodes| and |Elements| objects based on method |Devices.copy|.""" return type(self)(name, copy.copy(self.nodes), copy.copy(self.elements))
[ "def", "copy", "(", "self", ",", "name", ":", "str", ")", "->", "'Selection'", ":", "return", "type", "(", "self", ")", "(", "name", ",", "copy", ".", "copy", "(", "self", ".", "nodes", ")", ",", "copy", ".", "copy", "(", "self", ".", "elements",...
Return a new |Selection| object with the given name and copies of the handles |Nodes| and |Elements| objects based on method |Devices.copy|.
[ "Return", "a", "new", "|Selection|", "object", "with", "the", "given", "name", "and", "copies", "of", "the", "handles", "|Nodes|", "and", "|Elements|", "objects", "based", "on", "method", "|Devices", ".", "copy|", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/selectiontools.py#L830-L834
hydpy-dev/hydpy
hydpy/core/selectiontools.py
Selection.save_networkfile
def save_networkfile(self, filepath: Union[str, None] = None, write_nodes: bool = True) -> None: """Save the selection as a network file. >>> from hydpy.core.examples import prepare_full_example_2 >>> _, pub, TestIO = prepare_full_example_2() In most cases, one...
python
def save_networkfile(self, filepath: Union[str, None] = None, write_nodes: bool = True) -> None: """Save the selection as a network file. >>> from hydpy.core.examples import prepare_full_example_2 >>> _, pub, TestIO = prepare_full_example_2() In most cases, one...
[ "def", "save_networkfile", "(", "self", ",", "filepath", ":", "Union", "[", "str", ",", "None", "]", "=", "None", ",", "write_nodes", ":", "bool", "=", "True", ")", "->", "None", ":", "if", "filepath", "is", "None", ":", "filepath", "=", "self", ".",...
Save the selection as a network file. >>> from hydpy.core.examples import prepare_full_example_2 >>> _, pub, TestIO = prepare_full_example_2() In most cases, one should conveniently write network files via method |NetworkManager.save_files| of class |NetworkManager|. However, ...
[ "Save", "the", "selection", "as", "a", "network", "file", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/selectiontools.py#L836-L901
hydpy-dev/hydpy
hydpy/core/selectiontools.py
Selection.assignrepr
def assignrepr(self, prefix: str) -> str: """Return a |repr| string with a prefixed assignment.""" with objecttools.repr_.preserve_strings(True): with hydpy.pub.options.ellipsis(2, optional=True): with objecttools.assignrepr_tuple.always_bracketed(False): ...
python
def assignrepr(self, prefix: str) -> str: """Return a |repr| string with a prefixed assignment.""" with objecttools.repr_.preserve_strings(True): with hydpy.pub.options.ellipsis(2, optional=True): with objecttools.assignrepr_tuple.always_bracketed(False): ...
[ "def", "assignrepr", "(", "self", ",", "prefix", ":", "str", ")", "->", "str", ":", "with", "objecttools", ".", "repr_", ".", "preserve_strings", "(", "True", ")", ":", "with", "hydpy", ".", "pub", ".", "options", ".", "ellipsis", "(", "2", ",", "opt...
Return a |repr| string with a prefixed assignment.
[ "Return", "a", "|repr|", "string", "with", "a", "prefixed", "assignment", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/selectiontools.py#L957-L970
hydpy-dev/hydpy
hydpy/models/arma/arma_model.py
calc_qpin_v1
def calc_qpin_v1(self): """Calculate the input discharge portions of the different response functions. Required derived parameters: |Nmb| |MaxQ| |DiffQ| Required flux sequence: |QIn| Calculated flux sequences: |QPIn| Examples: Initialize an arma model w...
python
def calc_qpin_v1(self): """Calculate the input discharge portions of the different response functions. Required derived parameters: |Nmb| |MaxQ| |DiffQ| Required flux sequence: |QIn| Calculated flux sequences: |QPIn| Examples: Initialize an arma model w...
[ "def", "calc_qpin_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "for", "idx", "in", "range", "(", "der", ".", "nmb", "-", ...
Calculate the input discharge portions of the different response functions. Required derived parameters: |Nmb| |MaxQ| |DiffQ| Required flux sequence: |QIn| Calculated flux sequences: |QPIn| Examples: Initialize an arma model with three different response fu...
[ "Calculate", "the", "input", "discharge", "portions", "of", "the", "different", "response", "functions", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_model.py#L10-L95
hydpy-dev/hydpy
hydpy/models/arma/arma_model.py
calc_login_v1
def calc_login_v1(self): """Refresh the input log sequence for the different MA processes. Required derived parameters: |Nmb| |MA_Order| Required flux sequence: |QPIn| Updated log sequence: |LogIn| Example: Assume there are three response functions, involving one...
python
def calc_login_v1(self): """Refresh the input log sequence for the different MA processes. Required derived parameters: |Nmb| |MA_Order| Required flux sequence: |QPIn| Updated log sequence: |LogIn| Example: Assume there are three response functions, involving one...
[ "def", "calc_login_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "log", "=", "self", ".", "sequences", ".", "logs", ".", "fa...
Refresh the input log sequence for the different MA processes. Required derived parameters: |Nmb| |MA_Order| Required flux sequence: |QPIn| Updated log sequence: |LogIn| Example: Assume there are three response functions, involving one, two and three MA coeff...
[ "Refresh", "the", "input", "log", "sequence", "for", "the", "different", "MA", "processes", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_model.py#L98-L155
hydpy-dev/hydpy
hydpy/models/arma/arma_model.py
calc_qma_v1
def calc_qma_v1(self): """Calculate the discharge responses of the different MA processes. Required derived parameters: |Nmb| |MA_Order| |MA_Coefs| Required log sequence: |LogIn| Calculated flux sequence: |QMA| Examples: Assume there are three response func...
python
def calc_qma_v1(self): """Calculate the discharge responses of the different MA processes. Required derived parameters: |Nmb| |MA_Order| |MA_Coefs| Required log sequence: |LogIn| Calculated flux sequence: |QMA| Examples: Assume there are three response func...
[ "def", "calc_qma_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "log", "=", "self", ".", "sequences", ".", "logs", ".", "fast...
Calculate the discharge responses of the different MA processes. Required derived parameters: |Nmb| |MA_Order| |MA_Coefs| Required log sequence: |LogIn| Calculated flux sequence: |QMA| Examples: Assume there are three response functions, involving one, two and ...
[ "Calculate", "the", "discharge", "responses", "of", "the", "different", "MA", "processes", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_model.py#L158-L216
hydpy-dev/hydpy
hydpy/models/arma/arma_model.py
calc_qar_v1
def calc_qar_v1(self): """Calculate the discharge responses of the different AR processes. Required derived parameters: |Nmb| |AR_Order| |AR_Coefs| Required log sequence: |LogOut| Calculated flux sequence: |QAR| Examples: Assume there are four response func...
python
def calc_qar_v1(self): """Calculate the discharge responses of the different AR processes. Required derived parameters: |Nmb| |AR_Order| |AR_Coefs| Required log sequence: |LogOut| Calculated flux sequence: |QAR| Examples: Assume there are four response func...
[ "def", "calc_qar_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "log", "=", "self", ".", "sequences", ".", "logs", ".", "fast...
Calculate the discharge responses of the different AR processes. Required derived parameters: |Nmb| |AR_Order| |AR_Coefs| Required log sequence: |LogOut| Calculated flux sequence: |QAR| Examples: Assume there are four response functions, involving zero, one, tw...
[ "Calculate", "the", "discharge", "responses", "of", "the", "different", "AR", "processes", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_model.py#L219-L281
hydpy-dev/hydpy
hydpy/models/arma/arma_model.py
calc_qpout_v1
def calc_qpout_v1(self): """Calculate the ARMA results for the different response functions. Required derived parameter: |Nmb| Required flux sequences: |QMA| |QAR| Calculated flux sequence: |QPOut| Examples: Initialize an arma model with three different response ...
python
def calc_qpout_v1(self): """Calculate the ARMA results for the different response functions. Required derived parameter: |Nmb| Required flux sequences: |QMA| |QAR| Calculated flux sequence: |QPOut| Examples: Initialize an arma model with three different response ...
[ "def", "calc_qpout_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "for", "idx", "in", "range", "(", "der", ".", "nmb", ")", ...
Calculate the ARMA results for the different response functions. Required derived parameter: |Nmb| Required flux sequences: |QMA| |QAR| Calculated flux sequence: |QPOut| Examples: Initialize an arma model with three different response functions: >>> from hyd...
[ "Calculate", "the", "ARMA", "results", "for", "the", "different", "response", "functions", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_model.py#L284-L321
hydpy-dev/hydpy
hydpy/models/arma/arma_model.py
calc_logout_v1
def calc_logout_v1(self): """Refresh the log sequence for the different AR processes. Required derived parameters: |Nmb| |AR_Order| Required flux sequence: |QPOut| Updated log sequence: |LogOut| Example: Assume there are four response functions, involving zero, o...
python
def calc_logout_v1(self): """Refresh the log sequence for the different AR processes. Required derived parameters: |Nmb| |AR_Order| Required flux sequence: |QPOut| Updated log sequence: |LogOut| Example: Assume there are four response functions, involving zero, o...
[ "def", "calc_logout_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "log", "=", "self", ".", "sequences", ".", "logs", ".", "f...
Refresh the log sequence for the different AR processes. Required derived parameters: |Nmb| |AR_Order| Required flux sequence: |QPOut| Updated log sequence: |LogOut| Example: Assume there are four response functions, involving zero, one, two and three AR coef...
[ "Refresh", "the", "log", "sequence", "for", "the", "different", "AR", "processes", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_model.py#L324-L387
hydpy-dev/hydpy
hydpy/models/arma/arma_model.py
calc_qout_v1
def calc_qout_v1(self): """Sum up the results of the different response functions. Required derived parameter: |Nmb| Required flux sequences: |QPOut| Calculated flux sequence: |QOut| Examples: Initialize an arma model with three different response functions: >...
python
def calc_qout_v1(self): """Sum up the results of the different response functions. Required derived parameter: |Nmb| Required flux sequences: |QPOut| Calculated flux sequence: |QOut| Examples: Initialize an arma model with three different response functions: >...
[ "def", "calc_qout_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "flu", ".", "qout", "=", "0.", "for", "idx", "in", "range", ...
Sum up the results of the different response functions. Required derived parameter: |Nmb| Required flux sequences: |QPOut| Calculated flux sequence: |QOut| Examples: Initialize an arma model with three different response functions: >>> from hydpy.models.arma impor...
[ "Sum", "up", "the", "results", "of", "the", "different", "response", "functions", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_model.py#L390-L423
hydpy-dev/hydpy
hydpy/models/arma/arma_model.py
pick_q_v1
def pick_q_v1(self): """Update inflow.""" flu = self.sequences.fluxes.fastaccess inl = self.sequences.inlets.fastaccess flu.qin = 0. for idx in range(inl.len_q): flu.qin += inl.q[idx][0]
python
def pick_q_v1(self): """Update inflow.""" flu = self.sequences.fluxes.fastaccess inl = self.sequences.inlets.fastaccess flu.qin = 0. for idx in range(inl.len_q): flu.qin += inl.q[idx][0]
[ "def", "pick_q_v1", "(", "self", ")", ":", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "inl", "=", "self", ".", "sequences", ".", "inlets", ".", "fastaccess", "flu", ".", "qin", "=", "0.", "for", "idx", "in", "range", "(",...
Update inflow.
[ "Update", "inflow", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_model.py#L426-L432
hydpy-dev/hydpy
hydpy/models/hbranch/hbranch_derived.py
NmbBranches.update
def update(self): """Determine the number of branches""" con = self.subpars.pars.control self(con.ypoints.shape[0])
python
def update(self): """Determine the number of branches""" con = self.subpars.pars.control self(con.ypoints.shape[0])
[ "def", "update", "(", "self", ")", ":", "con", "=", "self", ".", "subpars", ".", "pars", ".", "control", "self", "(", "con", ".", "ypoints", ".", "shape", "[", "0", "]", ")" ]
Determine the number of branches
[ "Determine", "the", "number", "of", "branches" ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hbranch/hbranch_derived.py#L14-L17
hydpy-dev/hydpy
hydpy/models/lstream/lstream_derived.py
HV.update
def update(self): """Update value based on :math:`HV=BBV/BNV`. Required Parameters: |BBV| |BNV| Examples: >>> from hydpy.models.lstream import * >>> parameterstep('1d') >>> bbv(left=10., right=40.) >>> bnv(left=10., right=...
python
def update(self): """Update value based on :math:`HV=BBV/BNV`. Required Parameters: |BBV| |BNV| Examples: >>> from hydpy.models.lstream import * >>> parameterstep('1d') >>> bbv(left=10., right=40.) >>> bnv(left=10., right=...
[ "def", "update", "(", "self", ")", ":", "con", "=", "self", ".", "subpars", ".", "pars", ".", "control", "self", "(", "0.", ")", "for", "idx", "in", "range", "(", "2", ")", ":", "if", "(", "con", ".", "bbv", "[", "idx", "]", ">", "0.", ")", ...
Update value based on :math:`HV=BBV/BNV`. Required Parameters: |BBV| |BNV| Examples: >>> from hydpy.models.lstream import * >>> parameterstep('1d') >>> bbv(left=10., right=40.) >>> bnv(left=10., right=20.) >>> derived....
[ "Update", "value", "based", "on", ":", "math", ":", "HV", "=", "BBV", "/", "BNV", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lstream/lstream_derived.py#L14-L39
hydpy-dev/hydpy
hydpy/models/lstream/lstream_derived.py
QM.update
def update(self): """Update value based on the actual |calc_qg_v1| method. Required derived parameter: |H| Note that the value of parameter |lstream_derived.QM| is directly related to the value of parameter |HM| and indirectly related to all parameters values releva...
python
def update(self): """Update value based on the actual |calc_qg_v1| method. Required derived parameter: |H| Note that the value of parameter |lstream_derived.QM| is directly related to the value of parameter |HM| and indirectly related to all parameters values releva...
[ "def", "update", "(", "self", ")", ":", "mod", "=", "self", ".", "subpars", ".", "pars", ".", "model", "con", "=", "mod", ".", "parameters", ".", "control", "flu", "=", "mod", ".", "sequences", ".", "fluxes", "flu", ".", "h", "=", "con", ".", "hm...
Update value based on the actual |calc_qg_v1| method. Required derived parameter: |H| Note that the value of parameter |lstream_derived.QM| is directly related to the value of parameter |HM| and indirectly related to all parameters values relevant for method |calc_qg_v1|. H...
[ "Update", "value", "based", "on", "the", "actual", "|calc_qg_v1|", "method", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lstream/lstream_derived.py#L47-L66
hydpy-dev/hydpy
hydpy/models/hstream/hstream_derived.py
NmbSegments.update
def update(self): """Determines in how many segments the whole reach needs to be divided to approximate the desired lag time via integer rounding. Adjusts the shape of sequence |QJoints| additionally. Required control parameters: |Lag| Calculated derived parameters: ...
python
def update(self): """Determines in how many segments the whole reach needs to be divided to approximate the desired lag time via integer rounding. Adjusts the shape of sequence |QJoints| additionally. Required control parameters: |Lag| Calculated derived parameters: ...
[ "def", "update", "(", "self", ")", ":", "pars", "=", "self", ".", "subpars", ".", "pars", "self", "(", "int", "(", "round", "(", "pars", ".", "control", ".", "lag", ")", ")", ")", "pars", ".", "model", ".", "sequences", ".", "states", ".", "qjoin...
Determines in how many segments the whole reach needs to be divided to approximate the desired lag time via integer rounding. Adjusts the shape of sequence |QJoints| additionally. Required control parameters: |Lag| Calculated derived parameters: |NmbSegments| ...
[ "Determines", "in", "how", "many", "segments", "the", "whole", "reach", "needs", "to", "be", "divided", "to", "approximate", "the", "desired", "lag", "time", "via", "integer", "rounding", ".", "Adjusts", "the", "shape", "of", "sequence", "|QJoints|", "addition...
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hstream/hstream_derived.py#L16-L60
hydpy-dev/hydpy
hydpy/models/hstream/hstream_derived.py
C1.update
def update(self): """Update |C1| based on :math:`c_1 = \\frac{Damp}{1+Damp}`. Examples: The first examples show the calculated value of |C1| for the lowest possible value of |Lag|, the lowest possible value, and an intermediate value: >>> from hydpy.mod...
python
def update(self): """Update |C1| based on :math:`c_1 = \\frac{Damp}{1+Damp}`. Examples: The first examples show the calculated value of |C1| for the lowest possible value of |Lag|, the lowest possible value, and an intermediate value: >>> from hydpy.mod...
[ "def", "update", "(", "self", ")", ":", "damp", "=", "self", ".", "subpars", ".", "pars", ".", "control", ".", "damp", "self", "(", "numpy", ".", "clip", "(", "damp", "/", "(", "1.", "+", "damp", ")", ",", "0.", ",", ".5", ")", ")" ]
Update |C1| based on :math:`c_1 = \\frac{Damp}{1+Damp}`. Examples: The first examples show the calculated value of |C1| for the lowest possible value of |Lag|, the lowest possible value, and an intermediate value: >>> from hydpy.models.hstream import * ...
[ "Update", "|C1|", "based", "on", ":", "math", ":", "c_1", "=", "\\\\", "frac", "{", "Damp", "}", "{", "1", "+", "Damp", "}", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hstream/hstream_derived.py#L67-L102
hydpy-dev/hydpy
hydpy/models/hstream/hstream_derived.py
C2.update
def update(self): """Update |C2| based on :math:`c_2 = 1.-c_1-c_3`. Examples: The following examples show the calculated value of |C2| are clipped when to low or to high: >>> from hydpy.models.hstream import * >>> parameterstep('1d') >>> der...
python
def update(self): """Update |C2| based on :math:`c_2 = 1.-c_1-c_3`. Examples: The following examples show the calculated value of |C2| are clipped when to low or to high: >>> from hydpy.models.hstream import * >>> parameterstep('1d') >>> der...
[ "def", "update", "(", "self", ")", ":", "der", "=", "self", ".", "subpars", "self", "(", "numpy", ".", "clip", "(", "1.", "-", "der", ".", "c1", "-", "der", ".", "c3", ",", "0.", ",", "1.", ")", ")" ]
Update |C2| based on :math:`c_2 = 1.-c_1-c_3`. Examples: The following examples show the calculated value of |C2| are clipped when to low or to high: >>> from hydpy.models.hstream import * >>> parameterstep('1d') >>> derived.c1 = 0.6 >>>...
[ "Update", "|C2|", "based", "on", ":", "math", ":", "c_2", "=", "1", ".", "-", "c_1", "-", "c_3", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hstream/hstream_derived.py#L109-L134
TabViewer/gtabview
gtabview/__init__.py
view
def view(data, enc=None, start_pos=None, delimiter=None, hdr_rows=None, idx_cols=None, sheet_index=0, transpose=False, wait=None, recycle=None, detach=None, metavar=None, title=None): """View the supplied data in an interactive, graphical table widget. data: When a valid path or IO object, re...
python
def view(data, enc=None, start_pos=None, delimiter=None, hdr_rows=None, idx_cols=None, sheet_index=0, transpose=False, wait=None, recycle=None, detach=None, metavar=None, title=None): """View the supplied data in an interactive, graphical table widget. data: When a valid path or IO object, re...
[ "def", "view", "(", "data", ",", "enc", "=", "None", ",", "start_pos", "=", "None", ",", "delimiter", "=", "None", ",", "hdr_rows", "=", "None", ",", "idx_cols", "=", "None", ",", "sheet_index", "=", "0", ",", "transpose", "=", "False", ",", "wait", ...
View the supplied data in an interactive, graphical table widget. data: When a valid path or IO object, read it as a tabular text file. When a valid URI, a Blaze object is constructed and visualized. Any other supported datatype is visualized directly and incrementally *without copyin...
[ "View", "the", "supplied", "data", "in", "an", "interactive", "graphical", "table", "widget", "." ]
train
https://github.com/TabViewer/gtabview/blob/14ba391f0b225a1bf32d52b640a47b580f8b1b28/gtabview/__init__.py#L120-L211
hydpy-dev/hydpy
hydpy/core/devicetools.py
gather_registries
def gather_registries() -> Tuple[Dict, Mapping, Mapping]: """Get and clear the current |Node| and |Element| registries. Function |gather_registries| is thought to be used by class |Tester| only. """ id2devices = copy.copy(_id2devices) registry = copy.copy(_registry) selection = copy.copy(_selec...
python
def gather_registries() -> Tuple[Dict, Mapping, Mapping]: """Get and clear the current |Node| and |Element| registries. Function |gather_registries| is thought to be used by class |Tester| only. """ id2devices = copy.copy(_id2devices) registry = copy.copy(_registry) selection = copy.copy(_selec...
[ "def", "gather_registries", "(", ")", "->", "Tuple", "[", "Dict", ",", "Mapping", ",", "Mapping", "]", ":", "id2devices", "=", "copy", ".", "copy", "(", "_id2devices", ")", "registry", "=", "copy", ".", "copy", "(", "_registry", ")", "selection", "=", ...
Get and clear the current |Node| and |Element| registries. Function |gather_registries| is thought to be used by class |Tester| only.
[ "Get", "and", "clear", "the", "current", "|Node|", "and", "|Element|", "registries", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L2287-L2299
hydpy-dev/hydpy
hydpy/core/devicetools.py
reset_registries
def reset_registries(dicts: Tuple[Dict, Mapping, Mapping]): """Reset the current |Node| and |Element| registries. Function |reset_registries| is thought to be used by class |Tester| only. """ dict_ = globals() dict_['_id2devices'] = dicts[0] dict_['_registry'] = dicts[1] dict_['_selection']...
python
def reset_registries(dicts: Tuple[Dict, Mapping, Mapping]): """Reset the current |Node| and |Element| registries. Function |reset_registries| is thought to be used by class |Tester| only. """ dict_ = globals() dict_['_id2devices'] = dicts[0] dict_['_registry'] = dicts[1] dict_['_selection']...
[ "def", "reset_registries", "(", "dicts", ":", "Tuple", "[", "Dict", ",", "Mapping", ",", "Mapping", "]", ")", ":", "dict_", "=", "globals", "(", ")", "dict_", "[", "'_id2devices'", "]", "=", "dicts", "[", "0", "]", "dict_", "[", "'_registry'", "]", "...
Reset the current |Node| and |Element| registries. Function |reset_registries| is thought to be used by class |Tester| only.
[ "Reset", "the", "current", "|Node|", "and", "|Element|", "registries", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L2302-L2310
hydpy-dev/hydpy
hydpy/core/devicetools.py
_get_pandasindex
def _get_pandasindex(): """ >>> from hydpy import pub >>> pub.timegrids = '2004.01.01', '2005.01.01', '1d' >>> from hydpy.core.devicetools import _get_pandasindex >>> _get_pandasindex() # doctest: +ELLIPSIS DatetimeIndex(['2004-01-01 12:00:00', '2004-01-02 12:00:00', ... ...
python
def _get_pandasindex(): """ >>> from hydpy import pub >>> pub.timegrids = '2004.01.01', '2005.01.01', '1d' >>> from hydpy.core.devicetools import _get_pandasindex >>> _get_pandasindex() # doctest: +ELLIPSIS DatetimeIndex(['2004-01-01 12:00:00', '2004-01-02 12:00:00', ... ...
[ "def", "_get_pandasindex", "(", ")", ":", "tg", "=", "hydpy", ".", "pub", ".", "timegrids", ".", "init", "shift", "=", "tg", ".", "stepsize", "/", "2", "index", "=", "pandas", ".", "date_range", "(", "(", "tg", ".", "firstdate", "+", "shift", ")", ...
>>> from hydpy import pub >>> pub.timegrids = '2004.01.01', '2005.01.01', '1d' >>> from hydpy.core.devicetools import _get_pandasindex >>> _get_pandasindex() # doctest: +ELLIPSIS DatetimeIndex(['2004-01-01 12:00:00', '2004-01-02 12:00:00', ... '2004-12-30 12:00:00', '2004-12-31 ...
[ ">>>", "from", "hydpy", "import", "pub", ">>>", "pub", ".", "timegrids", "=", "2004", ".", "01", ".", "01", "2005", ".", "01", ".", "01", "1d", ">>>", "from", "hydpy", ".", "core", ".", "devicetools", "import", "_get_pandasindex", ">>>", "_get_pandasinde...
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L2313-L2330
hydpy-dev/hydpy
hydpy/core/devicetools.py
Keywords.startswith
def startswith(self, name: str) -> List[str]: """Return a list of all keywords starting with the given string. >>> from hydpy.core.devicetools import Keywords >>> keywords = Keywords('first_keyword', 'second_keyword', ... 'keyword_3', 'keyword_4', ... ...
python
def startswith(self, name: str) -> List[str]: """Return a list of all keywords starting with the given string. >>> from hydpy.core.devicetools import Keywords >>> keywords = Keywords('first_keyword', 'second_keyword', ... 'keyword_3', 'keyword_4', ... ...
[ "def", "startswith", "(", "self", ",", "name", ":", "str", ")", "->", "List", "[", "str", "]", ":", "return", "sorted", "(", "keyword", "for", "keyword", "in", "self", "if", "keyword", ".", "startswith", "(", "name", ")", ")" ]
Return a list of all keywords starting with the given string. >>> from hydpy.core.devicetools import Keywords >>> keywords = Keywords('first_keyword', 'second_keyword', ... 'keyword_3', 'keyword_4', ... 'keyboard') >>> keywords.startswith(...
[ "Return", "a", "list", "of", "all", "keywords", "starting", "with", "the", "given", "string", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L122-L132
hydpy-dev/hydpy
hydpy/core/devicetools.py
Keywords.endswith
def endswith(self, name: str) -> List[str]: """Return a list of all keywords ending with the given string. >>> from hydpy.core.devicetools import Keywords >>> keywords = Keywords('first_keyword', 'second_keyword', ... 'keyword_3', 'keyword_4', ... ...
python
def endswith(self, name: str) -> List[str]: """Return a list of all keywords ending with the given string. >>> from hydpy.core.devicetools import Keywords >>> keywords = Keywords('first_keyword', 'second_keyword', ... 'keyword_3', 'keyword_4', ... ...
[ "def", "endswith", "(", "self", ",", "name", ":", "str", ")", "->", "List", "[", "str", "]", ":", "return", "sorted", "(", "keyword", "for", "keyword", "in", "self", "if", "keyword", ".", "endswith", "(", "name", ")", ")" ]
Return a list of all keywords ending with the given string. >>> from hydpy.core.devicetools import Keywords >>> keywords = Keywords('first_keyword', 'second_keyword', ... 'keyword_3', 'keyword_4', ... 'keyboard') >>> keywords.endswith('key...
[ "Return", "a", "list", "of", "all", "keywords", "ending", "with", "the", "given", "string", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L134-L144
hydpy-dev/hydpy
hydpy/core/devicetools.py
Keywords.contains
def contains(self, name: str) -> List[str]: """Return a list of all keywords containing the given string. >>> from hydpy.core.devicetools import Keywords >>> keywords = Keywords('first_keyword', 'second_keyword', ... 'keyword_3', 'keyword_4', ... ...
python
def contains(self, name: str) -> List[str]: """Return a list of all keywords containing the given string. >>> from hydpy.core.devicetools import Keywords >>> keywords = Keywords('first_keyword', 'second_keyword', ... 'keyword_3', 'keyword_4', ... ...
[ "def", "contains", "(", "self", ",", "name", ":", "str", ")", "->", "List", "[", "str", "]", ":", "return", "sorted", "(", "keyword", "for", "keyword", "in", "self", "if", "name", "in", "keyword", ")" ]
Return a list of all keywords containing the given string. >>> from hydpy.core.devicetools import Keywords >>> keywords = Keywords('first_keyword', 'second_keyword', ... 'keyword_3', 'keyword_4', ... 'keyboard') >>> keywords.contains('keyw...
[ "Return", "a", "list", "of", "all", "keywords", "containing", "the", "given", "string", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L146-L156
hydpy-dev/hydpy
hydpy/core/devicetools.py
Keywords.update
def update(self, *names: Any) -> None: """Before updating, the given names are checked to be valid variable identifiers. >>> from hydpy.core.devicetools import Keywords >>> keywords = Keywords('first_keyword', 'second_keyword', ... 'keyword_3', 'keyword_4', ...
python
def update(self, *names: Any) -> None: """Before updating, the given names are checked to be valid variable identifiers. >>> from hydpy.core.devicetools import Keywords >>> keywords = Keywords('first_keyword', 'second_keyword', ... 'keyword_3', 'keyword_4', ...
[ "def", "update", "(", "self", ",", "*", "names", ":", "Any", ")", "->", "None", ":", "_names", "=", "[", "str", "(", "name", ")", "for", "name", "in", "names", "]", "self", ".", "_check_keywords", "(", "_names", ")", "super", "(", ")", ".", "upda...
Before updating, the given names are checked to be valid variable identifiers. >>> from hydpy.core.devicetools import Keywords >>> keywords = Keywords('first_keyword', 'second_keyword', ... 'keyword_3', 'keyword_4', ... 'keyboard') ...
[ "Before", "updating", "the", "given", "names", "are", "checked", "to", "be", "valid", "variable", "identifiers", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L167-L198
hydpy-dev/hydpy
hydpy/core/devicetools.py
Keywords.add
def add(self, name: Any) -> None: """Before adding a new name, it is checked to be valid variable identifiers. >>> from hydpy.core.devicetools import Keywords >>> keywords = Keywords('first_keyword', 'second_keyword', ... 'keyword_3', 'keyword_4', ......
python
def add(self, name: Any) -> None: """Before adding a new name, it is checked to be valid variable identifiers. >>> from hydpy.core.devicetools import Keywords >>> keywords = Keywords('first_keyword', 'second_keyword', ... 'keyword_3', 'keyword_4', ......
[ "def", "add", "(", "self", ",", "name", ":", "Any", ")", "->", "None", ":", "self", ".", "_check_keywords", "(", "[", "str", "(", "name", ")", "]", ")", "super", "(", ")", ".", "add", "(", "str", "(", "name", ")", ")" ]
Before adding a new name, it is checked to be valid variable identifiers. >>> from hydpy.core.devicetools import Keywords >>> keywords = Keywords('first_keyword', 'second_keyword', ... 'keyword_3', 'keyword_4', ... 'keyboard') >>> ...
[ "Before", "adding", "a", "new", "name", "it", "is", "checked", "to", "be", "valid", "variable", "identifiers", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L200-L227
hydpy-dev/hydpy
hydpy/core/devicetools.py
Devices.add_device
def add_device(self, device: Union[DeviceType, str]) -> None: """Add the given |Node| or |Element| object to the actual |Nodes| or |Elements| object. You can pass either a string or a device: >>> from hydpy import Nodes >>> nodes = Nodes() >>> nodes.add_device('old_node...
python
def add_device(self, device: Union[DeviceType, str]) -> None: """Add the given |Node| or |Element| object to the actual |Nodes| or |Elements| object. You can pass either a string or a device: >>> from hydpy import Nodes >>> nodes = Nodes() >>> nodes.add_device('old_node...
[ "def", "add_device", "(", "self", ",", "device", ":", "Union", "[", "DeviceType", ",", "str", "]", ")", "->", "None", ":", "try", ":", "if", "self", ".", "mutable", ":", "_device", "=", "self", ".", "get_contentclass", "(", ")", "(", "device", ")", ...
Add the given |Node| or |Element| object to the actual |Nodes| or |Elements| object. You can pass either a string or a device: >>> from hydpy import Nodes >>> nodes = Nodes() >>> nodes.add_device('old_node') >>> nodes Nodes("old_node") >>> nodes.add_devi...
[ "Add", "the", "given", "|Node|", "or", "|Element|", "object", "to", "the", "actual", "|Nodes|", "or", "|Elements|", "object", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L404-L442
hydpy-dev/hydpy
hydpy/core/devicetools.py
Devices.remove_device
def remove_device(self, device: Union[DeviceType, str]) -> None: """Remove the given |Node| or |Element| object from the actual |Nodes| or |Elements| object. You can pass either a string or a device: >>> from hydpy import Node, Nodes >>> nodes = Nodes('node_x', 'node_y') ...
python
def remove_device(self, device: Union[DeviceType, str]) -> None: """Remove the given |Node| or |Element| object from the actual |Nodes| or |Elements| object. You can pass either a string or a device: >>> from hydpy import Node, Nodes >>> nodes = Nodes('node_x', 'node_y') ...
[ "def", "remove_device", "(", "self", ",", "device", ":", "Union", "[", "DeviceType", ",", "str", "]", ")", "->", "None", ":", "try", ":", "if", "self", ".", "mutable", ":", "_device", "=", "self", ".", "get_contentclass", "(", ")", "(", "device", ")"...
Remove the given |Node| or |Element| object from the actual |Nodes| or |Elements| object. You can pass either a string or a device: >>> from hydpy import Node, Nodes >>> nodes = Nodes('node_x', 'node_y') >>> node_x, node_y = nodes >>> nodes.remove_device(Node('node_y'))...
[ "Remove", "the", "given", "|Node|", "or", "|Element|", "object", "from", "the", "actual", "|Nodes|", "or", "|Elements|", "object", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L444-L494
hydpy-dev/hydpy
hydpy/core/devicetools.py
Devices.keywords
def keywords(self) -> Set[str]: """A set of all keywords of all handled devices. In addition to attribute access via device names, |Nodes| and |Elements| objects allow for attribute access via keywords, allowing for an efficient search of certain groups of devices. Let us use th...
python
def keywords(self) -> Set[str]: """A set of all keywords of all handled devices. In addition to attribute access via device names, |Nodes| and |Elements| objects allow for attribute access via keywords, allowing for an efficient search of certain groups of devices. Let us use th...
[ "def", "keywords", "(", "self", ")", "->", "Set", "[", "str", "]", ":", "return", "set", "(", "keyword", "for", "device", "in", "self", "for", "keyword", "in", "device", ".", "keywords", "if", "keyword", "not", "in", "self", ".", "_shadowed_keywords", ...
A set of all keywords of all handled devices. In addition to attribute access via device names, |Nodes| and |Elements| objects allow for attribute access via keywords, allowing for an efficient search of certain groups of devices. Let us use the example from above, where the nodes `na` ...
[ "A", "set", "of", "all", "keywords", "of", "all", "handled", "devices", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L520-L575
hydpy-dev/hydpy
hydpy/core/devicetools.py
Devices.copy
def copy(self: DevicesTypeBound) -> DevicesTypeBound: """Return a shallow copy of the actual |Nodes| or |Elements| object. Method |Devices.copy| returns a semi-flat copy of |Nodes| or |Elements| objects, due to their devices being not copyable: >>> from hydpy import Nodes >>> o...
python
def copy(self: DevicesTypeBound) -> DevicesTypeBound: """Return a shallow copy of the actual |Nodes| or |Elements| object. Method |Devices.copy| returns a semi-flat copy of |Nodes| or |Elements| objects, due to their devices being not copyable: >>> from hydpy import Nodes >>> o...
[ "def", "copy", "(", "self", ":", "DevicesTypeBound", ")", "->", "DevicesTypeBound", ":", "new", "=", "type", "(", "self", ")", "(", ")", "vars", "(", "new", ")", ".", "update", "(", "vars", "(", "self", ")", ")", "vars", "(", "new", ")", "[", "'_...
Return a shallow copy of the actual |Nodes| or |Elements| object. Method |Devices.copy| returns a semi-flat copy of |Nodes| or |Elements| objects, due to their devices being not copyable: >>> from hydpy import Nodes >>> old = Nodes('x', 'y') >>> import copy >>> new = co...
[ "Return", "a", "shallow", "copy", "of", "the", "actual", "|Nodes|", "or", "|Elements|", "object", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L589-L632
hydpy-dev/hydpy
hydpy/core/devicetools.py
Nodes.prepare_allseries
def prepare_allseries(self, ramflag: bool = True) -> None: """Call methods |Node.prepare_simseries| and |Node.prepare_obsseries|.""" self.prepare_simseries(ramflag) self.prepare_obsseries(ramflag)
python
def prepare_allseries(self, ramflag: bool = True) -> None: """Call methods |Node.prepare_simseries| and |Node.prepare_obsseries|.""" self.prepare_simseries(ramflag) self.prepare_obsseries(ramflag)
[ "def", "prepare_allseries", "(", "self", ",", "ramflag", ":", "bool", "=", "True", ")", "->", "None", ":", "self", ".", "prepare_simseries", "(", "ramflag", ")", "self", ".", "prepare_obsseries", "(", "ramflag", ")" ]
Call methods |Node.prepare_simseries| and |Node.prepare_obsseries|.
[ "Call", "methods", "|Node", ".", "prepare_simseries|", "and", "|Node", ".", "prepare_obsseries|", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L814-L818
hydpy-dev/hydpy
hydpy/core/devicetools.py
Nodes.prepare_simseries
def prepare_simseries(self, ramflag: bool = True) -> None: """Call method |Node.prepare_simseries| of all handled |Node| objects.""" for node in printtools.progressbar(self): node.prepare_simseries(ramflag)
python
def prepare_simseries(self, ramflag: bool = True) -> None: """Call method |Node.prepare_simseries| of all handled |Node| objects.""" for node in printtools.progressbar(self): node.prepare_simseries(ramflag)
[ "def", "prepare_simseries", "(", "self", ",", "ramflag", ":", "bool", "=", "True", ")", "->", "None", ":", "for", "node", "in", "printtools", ".", "progressbar", "(", "self", ")", ":", "node", ".", "prepare_simseries", "(", "ramflag", ")" ]
Call method |Node.prepare_simseries| of all handled |Node| objects.
[ "Call", "method", "|Node", ".", "prepare_simseries|", "of", "all", "handled", "|Node|", "objects", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L821-L825
hydpy-dev/hydpy
hydpy/core/devicetools.py
Nodes.prepare_obsseries
def prepare_obsseries(self, ramflag: bool = True) -> None: """Call method |Node.prepare_obsseries| of all handled |Node| objects.""" for node in printtools.progressbar(self): node.prepare_obsseries(ramflag)
python
def prepare_obsseries(self, ramflag: bool = True) -> None: """Call method |Node.prepare_obsseries| of all handled |Node| objects.""" for node in printtools.progressbar(self): node.prepare_obsseries(ramflag)
[ "def", "prepare_obsseries", "(", "self", ",", "ramflag", ":", "bool", "=", "True", ")", "->", "None", ":", "for", "node", "in", "printtools", ".", "progressbar", "(", "self", ")", ":", "node", ".", "prepare_obsseries", "(", "ramflag", ")" ]
Call method |Node.prepare_obsseries| of all handled |Node| objects.
[ "Call", "method", "|Node", ".", "prepare_obsseries|", "of", "all", "handled", "|Node|", "objects", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L828-L832
hydpy-dev/hydpy
hydpy/core/devicetools.py
Elements.init_models
def init_models(self) -> None: """Call method |Element.init_model| of all handle |Element| objects. We show, based the `LahnH` example project, that method |Element.init_model| prepares the |Model| objects of all elements, including building the required connections and updating the ...
python
def init_models(self) -> None: """Call method |Element.init_model| of all handle |Element| objects. We show, based the `LahnH` example project, that method |Element.init_model| prepares the |Model| objects of all elements, including building the required connections and updating the ...
[ "def", "init_models", "(", "self", ")", "->", "None", ":", "try", ":", "for", "element", "in", "printtools", ".", "progressbar", "(", "self", ")", ":", "element", ".", "init_model", "(", "clear_registry", "=", "False", ")", "finally", ":", "hydpy", ".", ...
Call method |Element.init_model| of all handle |Element| objects. We show, based the `LahnH` example project, that method |Element.init_model| prepares the |Model| objects of all elements, including building the required connections and updating the derived parameters: >>> from...
[ "Call", "method", "|Element", ".", "init_model|", "of", "all", "handle", "|Element|", "objects", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L907-L973
hydpy-dev/hydpy
hydpy/core/devicetools.py
Elements.save_controls
def save_controls(self, parameterstep: 'timetools.PeriodConstrArg' = None, simulationstep: 'timetools.PeriodConstrArg' = None, auxfiler: 'Optional[auxfiletools.Auxfiler]' = None): """Save the control parameters of the |Model| object handled by each |Element| o...
python
def save_controls(self, parameterstep: 'timetools.PeriodConstrArg' = None, simulationstep: 'timetools.PeriodConstrArg' = None, auxfiler: 'Optional[auxfiletools.Auxfiler]' = None): """Save the control parameters of the |Model| object handled by each |Element| o...
[ "def", "save_controls", "(", "self", ",", "parameterstep", ":", "'timetools.PeriodConstrArg'", "=", "None", ",", "simulationstep", ":", "'timetools.PeriodConstrArg'", "=", "None", ",", "auxfiler", ":", "'Optional[auxfiletools.Auxfiler]'", "=", "None", ")", ":", "if", ...
Save the control parameters of the |Model| object handled by each |Element| object and eventually the ones handled by the given |Auxfiler| object.
[ "Save", "the", "control", "parameters", "of", "the", "|Model|", "object", "handled", "by", "each", "|Element|", "object", "and", "eventually", "the", "ones", "handled", "by", "the", "given", "|Auxfiler|", "object", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L976-L988
hydpy-dev/hydpy
hydpy/core/devicetools.py
Elements.load_conditions
def load_conditions(self) -> None: """Save the initial conditions of the |Model| object handled by each |Element| object.""" for element in printtools.progressbar(self): element.model.sequences.load_conditions()
python
def load_conditions(self) -> None: """Save the initial conditions of the |Model| object handled by each |Element| object.""" for element in printtools.progressbar(self): element.model.sequences.load_conditions()
[ "def", "load_conditions", "(", "self", ")", "->", "None", ":", "for", "element", "in", "printtools", ".", "progressbar", "(", "self", ")", ":", "element", ".", "model", ".", "sequences", ".", "load_conditions", "(", ")" ]
Save the initial conditions of the |Model| object handled by each |Element| object.
[ "Save", "the", "initial", "conditions", "of", "the", "|Model|", "object", "handled", "by", "each", "|Element|", "object", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L991-L995
hydpy-dev/hydpy
hydpy/core/devicetools.py
Elements.save_conditions
def save_conditions(self) -> None: """Save the calculated conditions of the |Model| object handled by each |Element| object.""" for element in printtools.progressbar(self): element.model.sequences.save_conditions()
python
def save_conditions(self) -> None: """Save the calculated conditions of the |Model| object handled by each |Element| object.""" for element in printtools.progressbar(self): element.model.sequences.save_conditions()
[ "def", "save_conditions", "(", "self", ")", "->", "None", ":", "for", "element", "in", "printtools", ".", "progressbar", "(", "self", ")", ":", "element", ".", "model", ".", "sequences", ".", "save_conditions", "(", ")" ]
Save the calculated conditions of the |Model| object handled by each |Element| object.
[ "Save", "the", "calculated", "conditions", "of", "the", "|Model|", "object", "handled", "by", "each", "|Element|", "object", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L998-L1002
hydpy-dev/hydpy
hydpy/core/devicetools.py
Elements.conditions
def conditions(self) -> \ Dict[str, Dict[str, Dict[str, Union[float, numpy.ndarray]]]]: """A nested dictionary containing the values of all |ConditionSequence| objects of all currently handled models. See the documentation on property |HydPy.conditions| for further informati...
python
def conditions(self) -> \ Dict[str, Dict[str, Dict[str, Union[float, numpy.ndarray]]]]: """A nested dictionary containing the values of all |ConditionSequence| objects of all currently handled models. See the documentation on property |HydPy.conditions| for further informati...
[ "def", "conditions", "(", "self", ")", "->", "Dict", "[", "str", ",", "Dict", "[", "str", ",", "Dict", "[", "str", ",", "Union", "[", "float", ",", "numpy", ".", "ndarray", "]", "]", "]", "]", ":", "return", "{", "element", ".", "name", ":", "e...
A nested dictionary containing the values of all |ConditionSequence| objects of all currently handled models. See the documentation on property |HydPy.conditions| for further information.
[ "A", "nested", "dictionary", "containing", "the", "values", "of", "all", "|ConditionSequence|", "objects", "of", "all", "currently", "handled", "models", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1017-L1026
hydpy-dev/hydpy
hydpy/core/devicetools.py
Elements.prepare_allseries
def prepare_allseries(self, ramflag: bool = True) -> None: """Call method |Element.prepare_allseries| of all handled |Element| objects.""" for element in printtools.progressbar(self): element.prepare_allseries(ramflag)
python
def prepare_allseries(self, ramflag: bool = True) -> None: """Call method |Element.prepare_allseries| of all handled |Element| objects.""" for element in printtools.progressbar(self): element.prepare_allseries(ramflag)
[ "def", "prepare_allseries", "(", "self", ",", "ramflag", ":", "bool", "=", "True", ")", "->", "None", ":", "for", "element", "in", "printtools", ".", "progressbar", "(", "self", ")", ":", "element", ".", "prepare_allseries", "(", "ramflag", ")" ]
Call method |Element.prepare_allseries| of all handled |Element| objects.
[ "Call", "method", "|Element", ".", "prepare_allseries|", "of", "all", "handled", "|Element|", "objects", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1039-L1043
hydpy-dev/hydpy
hydpy/core/devicetools.py
Elements.prepare_inputseries
def prepare_inputseries(self, ramflag: bool = True) -> None: """Call method |Element.prepare_inputseries| of all handled |Element| objects.""" for element in printtools.progressbar(self): element.prepare_inputseries(ramflag)
python
def prepare_inputseries(self, ramflag: bool = True) -> None: """Call method |Element.prepare_inputseries| of all handled |Element| objects.""" for element in printtools.progressbar(self): element.prepare_inputseries(ramflag)
[ "def", "prepare_inputseries", "(", "self", ",", "ramflag", ":", "bool", "=", "True", ")", "->", "None", ":", "for", "element", "in", "printtools", ".", "progressbar", "(", "self", ")", ":", "element", ".", "prepare_inputseries", "(", "ramflag", ")" ]
Call method |Element.prepare_inputseries| of all handled |Element| objects.
[ "Call", "method", "|Element", ".", "prepare_inputseries|", "of", "all", "handled", "|Element|", "objects", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1046-L1050
hydpy-dev/hydpy
hydpy/core/devicetools.py
Elements.prepare_fluxseries
def prepare_fluxseries(self, ramflag: bool = True) -> None: """Call method |Element.prepare_fluxseries| of all handled |Element| objects.""" for element in printtools.progressbar(self): element.prepare_fluxseries(ramflag)
python
def prepare_fluxseries(self, ramflag: bool = True) -> None: """Call method |Element.prepare_fluxseries| of all handled |Element| objects.""" for element in printtools.progressbar(self): element.prepare_fluxseries(ramflag)
[ "def", "prepare_fluxseries", "(", "self", ",", "ramflag", ":", "bool", "=", "True", ")", "->", "None", ":", "for", "element", "in", "printtools", ".", "progressbar", "(", "self", ")", ":", "element", ".", "prepare_fluxseries", "(", "ramflag", ")" ]
Call method |Element.prepare_fluxseries| of all handled |Element| objects.
[ "Call", "method", "|Element", ".", "prepare_fluxseries|", "of", "all", "handled", "|Element|", "objects", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1053-L1057
hydpy-dev/hydpy
hydpy/core/devicetools.py
Elements.prepare_stateseries
def prepare_stateseries(self, ramflag: bool = True) -> None: """Call method |Element.prepare_stateseries| of all handled |Element| objects.""" for element in printtools.progressbar(self): element.prepare_stateseries(ramflag)
python
def prepare_stateseries(self, ramflag: bool = True) -> None: """Call method |Element.prepare_stateseries| of all handled |Element| objects.""" for element in printtools.progressbar(self): element.prepare_stateseries(ramflag)
[ "def", "prepare_stateseries", "(", "self", ",", "ramflag", ":", "bool", "=", "True", ")", "->", "None", ":", "for", "element", "in", "printtools", ".", "progressbar", "(", "self", ")", ":", "element", ".", "prepare_stateseries", "(", "ramflag", ")" ]
Call method |Element.prepare_stateseries| of all handled |Element| objects.
[ "Call", "method", "|Element", ".", "prepare_stateseries|", "of", "all", "handled", "|Element|", "objects", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1060-L1064
hydpy-dev/hydpy
hydpy/core/devicetools.py
Device.extract_new
def extract_new(cls) -> DevicesTypeUnbound: """Gather all "new" |Node| or |Element| objects. See the main documentation on module |devicetools| for further information. """ devices = cls.get_handlerclass()(*_selection[cls]) _selection[cls].clear() return devices
python
def extract_new(cls) -> DevicesTypeUnbound: """Gather all "new" |Node| or |Element| objects. See the main documentation on module |devicetools| for further information. """ devices = cls.get_handlerclass()(*_selection[cls]) _selection[cls].clear() return devices
[ "def", "extract_new", "(", "cls", ")", "->", "DevicesTypeUnbound", ":", "devices", "=", "cls", ".", "get_handlerclass", "(", ")", "(", "*", "_selection", "[", "cls", "]", ")", "_selection", "[", "cls", "]", ".", "clear", "(", ")", "return", "devices" ]
Gather all "new" |Node| or |Element| objects. See the main documentation on module |devicetools| for further information.
[ "Gather", "all", "new", "|Node|", "or", "|Element|", "objects", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1172-L1180
hydpy-dev/hydpy
hydpy/core/devicetools.py
Node.get_double
def get_double(self, group: str) -> pointerutils.Double: """Return the |Double| object appropriate for the given |Element| input or output group and the actual |Node.deploymode|. Method |Node.get_double| should be of interest for framework developers only (and eventually for model devel...
python
def get_double(self, group: str) -> pointerutils.Double: """Return the |Double| object appropriate for the given |Element| input or output group and the actual |Node.deploymode|. Method |Node.get_double| should be of interest for framework developers only (and eventually for model devel...
[ "def", "get_double", "(", "self", ",", "group", ":", "str", ")", "->", "pointerutils", ".", "Double", ":", "if", "group", "in", "(", "'inlets'", ",", "'receivers'", ")", ":", "if", "self", ".", "deploymode", "!=", "'obs'", ":", "return", "self", ".", ...
Return the |Double| object appropriate for the given |Element| input or output group and the actual |Node.deploymode|. Method |Node.get_double| should be of interest for framework developers only (and eventually for model developers). Let |Node| object `node1` handle different simulati...
[ "Return", "the", "|Double|", "object", "appropriate", "for", "the", "given", "|Element|", "input", "or", "output", "group", "and", "the", "actual", "|Node", ".", "deploymode|", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1483-L1558
hydpy-dev/hydpy
hydpy/core/devicetools.py
Node.plot_simseries
def plot_simseries(self, **kwargs: Any) -> None: """Plot the |IOSequence.series| of the |Sim| sequence object. See method |Node.plot_allseries| for further information. """ self.__plot_series([self.sequences.sim], kwargs)
python
def plot_simseries(self, **kwargs: Any) -> None: """Plot the |IOSequence.series| of the |Sim| sequence object. See method |Node.plot_allseries| for further information. """ self.__plot_series([self.sequences.sim], kwargs)
[ "def", "plot_simseries", "(", "self", ",", "*", "*", "kwargs", ":", "Any", ")", "->", "None", ":", "self", ".", "__plot_series", "(", "[", "self", ".", "sequences", ".", "sim", "]", ",", "kwargs", ")" ]
Plot the |IOSequence.series| of the |Sim| sequence object. See method |Node.plot_allseries| for further information.
[ "Plot", "the", "|IOSequence", ".", "series|", "of", "the", "|Sim|", "sequence", "object", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1668-L1673
hydpy-dev/hydpy
hydpy/core/devicetools.py
Node.plot_obsseries
def plot_obsseries(self, **kwargs: Any) -> None: """Plot the |IOSequence.series| of the |Obs| sequence object. See method |Node.plot_allseries| for further information. """ self.__plot_series([self.sequences.obs], kwargs)
python
def plot_obsseries(self, **kwargs: Any) -> None: """Plot the |IOSequence.series| of the |Obs| sequence object. See method |Node.plot_allseries| for further information. """ self.__plot_series([self.sequences.obs], kwargs)
[ "def", "plot_obsseries", "(", "self", ",", "*", "*", "kwargs", ":", "Any", ")", "->", "None", ":", "self", ".", "__plot_series", "(", "[", "self", ".", "sequences", ".", "obs", "]", ",", "kwargs", ")" ]
Plot the |IOSequence.series| of the |Obs| sequence object. See method |Node.plot_allseries| for further information.
[ "Plot", "the", "|IOSequence", ".", "series|", "of", "the", "|Obs|", "sequence", "object", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1675-L1680
hydpy-dev/hydpy
hydpy/core/devicetools.py
Node.assignrepr
def assignrepr(self, prefix: str = '') -> str: """Return a |repr| string with a prefixed assignment.""" lines = ['%sNode("%s", variable="%s",' % (prefix, self.name, self.variable)] if self.keywords: subprefix = '%skeywords=' % (' '*(len(prefix)+5)) with o...
python
def assignrepr(self, prefix: str = '') -> str: """Return a |repr| string with a prefixed assignment.""" lines = ['%sNode("%s", variable="%s",' % (prefix, self.name, self.variable)] if self.keywords: subprefix = '%skeywords=' % (' '*(len(prefix)+5)) with o...
[ "def", "assignrepr", "(", "self", ",", "prefix", ":", "str", "=", "''", ")", "->", "str", ":", "lines", "=", "[", "'%sNode(\"%s\", variable=\"%s\",'", "%", "(", "prefix", ",", "self", ".", "name", ",", "self", ".", "variable", ")", "]", "if", "self", ...
Return a |repr| string with a prefixed assignment.
[ "Return", "a", "|repr|", "string", "with", "a", "prefixed", "assignment", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1703-L1715
hydpy-dev/hydpy
hydpy/core/devicetools.py
Element.model
def model(self) -> 'modeltools.Model': """The |Model| object handled by the actual |Element| object. Directly after their initialisation, elements do not know which model they require: >>> from hydpy import Element >>> hland = Element('hland', outlets='outlet') >>> hlan...
python
def model(self) -> 'modeltools.Model': """The |Model| object handled by the actual |Element| object. Directly after their initialisation, elements do not know which model they require: >>> from hydpy import Element >>> hland = Element('hland', outlets='outlet') >>> hlan...
[ "def", "model", "(", "self", ")", "->", "'modeltools.Model'", ":", "model", "=", "vars", "(", "self", ")", ".", "get", "(", "'model'", ")", "if", "model", ":", "return", "model", "raise", "AttributeError", "(", "f'The model object of element `{self.name}` has '"...
The |Model| object handled by the actual |Element| object. Directly after their initialisation, elements do not know which model they require: >>> from hydpy import Element >>> hland = Element('hland', outlets='outlet') >>> hland.model Traceback (most recent call last):...
[ "The", "|Model|", "object", "handled", "by", "the", "actual", "|Element|", "object", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1921-L1992
hydpy-dev/hydpy
hydpy/core/devicetools.py
Element.init_model
def init_model(self, clear_registry: bool = True) -> None: """Load the control file of the actual |Element| object, initialise its |Model| object, build the required connections via (an eventually overridden version of) method |Model.connect| of class |Model|, and update its derived par...
python
def init_model(self, clear_registry: bool = True) -> None: """Load the control file of the actual |Element| object, initialise its |Model| object, build the required connections via (an eventually overridden version of) method |Model.connect| of class |Model|, and update its derived par...
[ "def", "init_model", "(", "self", ",", "clear_registry", ":", "bool", "=", "True", ")", "->", "None", ":", "try", ":", "with", "hydpy", ".", "pub", ".", "options", ".", "warnsimulationstep", "(", "False", ")", ":", "info", "=", "hydpy", ".", "pub", "...
Load the control file of the actual |Element| object, initialise its |Model| object, build the required connections via (an eventually overridden version of) method |Model.connect| of class |Model|, and update its derived parameter values via calling (an eventually overridden version) o...
[ "Load", "the", "control", "file", "of", "the", "actual", "|Element|", "object", "initialise", "its", "|Model|", "object", "build", "the", "required", "connections", "via", "(", "an", "eventually", "overridden", "version", "of", ")", "method", "|Model", ".", "c...
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L2004-L2033
hydpy-dev/hydpy
hydpy/core/devicetools.py
Element.variables
def variables(self) -> Set[str]: """A set of all different |Node.variable| values of the |Node| objects directly connected to the actual |Element| object. Suppose there is an element connected to five nodes, which (partly) represent different variables: >>> from hydpy import El...
python
def variables(self) -> Set[str]: """A set of all different |Node.variable| values of the |Node| objects directly connected to the actual |Element| object. Suppose there is an element connected to five nodes, which (partly) represent different variables: >>> from hydpy import El...
[ "def", "variables", "(", "self", ")", "->", "Set", "[", "str", "]", ":", "variables", ":", "Set", "[", "str", "]", "=", "set", "(", ")", "for", "connection", "in", "self", ".", "__connections", ":", "variables", ".", "update", "(", "connection", ".",...
A set of all different |Node.variable| values of the |Node| objects directly connected to the actual |Element| object. Suppose there is an element connected to five nodes, which (partly) represent different variables: >>> from hydpy import Element, Node >>> element = Element('T...
[ "A", "set", "of", "all", "different", "|Node", ".", "variable|", "values", "of", "the", "|Node|", "objects", "directly", "connected", "to", "the", "actual", "|Element|", "object", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L2036-L2059
hydpy-dev/hydpy
hydpy/core/devicetools.py
Element.prepare_allseries
def prepare_allseries(self, ramflag: bool = True) -> None: """Prepare the |IOSequence.series| objects of all `input`, `flux` and `state` sequences of the model handled by this element. Call this method before a simulation run, if you need access to (nearly) all simulated series of the h...
python
def prepare_allseries(self, ramflag: bool = True) -> None: """Prepare the |IOSequence.series| objects of all `input`, `flux` and `state` sequences of the model handled by this element. Call this method before a simulation run, if you need access to (nearly) all simulated series of the h...
[ "def", "prepare_allseries", "(", "self", ",", "ramflag", ":", "bool", "=", "True", ")", "->", "None", ":", "self", ".", "prepare_inputseries", "(", "ramflag", ")", "self", ".", "prepare_fluxseries", "(", "ramflag", ")", "self", ".", "prepare_stateseries", "(...
Prepare the |IOSequence.series| objects of all `input`, `flux` and `state` sequences of the model handled by this element. Call this method before a simulation run, if you need access to (nearly) all simulated series of the handled model after the simulation run is finished. By...
[ "Prepare", "the", "|IOSequence", ".", "series|", "objects", "of", "all", "input", "flux", "and", "state", "sequences", "of", "the", "model", "handled", "by", "this", "element", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L2071-L2085
hydpy-dev/hydpy
hydpy/core/devicetools.py
Element.plot_inputseries
def plot_inputseries( self, names: Optional[Iterable[str]] = None, average: bool = False, **kwargs: Any) \ -> None: """Plot (the selected) |InputSequence| |IOSequence.series| values. We demonstrate the functionalities of method |Element.plot_inputseries| base...
python
def plot_inputseries( self, names: Optional[Iterable[str]] = None, average: bool = False, **kwargs: Any) \ -> None: """Plot (the selected) |InputSequence| |IOSequence.series| values. We demonstrate the functionalities of method |Element.plot_inputseries| base...
[ "def", "plot_inputseries", "(", "self", ",", "names", ":", "Optional", "[", "Iterable", "[", "str", "]", "]", "=", "None", ",", "average", ":", "bool", "=", "False", ",", "*", "*", "kwargs", ":", "Any", ")", "->", "None", ":", "self", ".", "__plot"...
Plot (the selected) |InputSequence| |IOSequence.series| values. We demonstrate the functionalities of method |Element.plot_inputseries| based on the `Lahn` example project: >>> from hydpy.core.examples import prepare_full_example_2 >>> hp, _, _ = prepare_full_example_2(lastdate='1997-0...
[ "Plot", "(", "the", "selected", ")", "|InputSequence|", "|IOSequence", ".", "series|", "values", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L2154-L2229
hydpy-dev/hydpy
hydpy/core/devicetools.py
Element.plot_fluxseries
def plot_fluxseries( self, names: Optional[Iterable[str]] = None, average: bool = False, **kwargs: Any) \ -> None: """Plot the `flux` series of the handled model. See the documentation on method |Element.plot_inputseries| for additional information. "...
python
def plot_fluxseries( self, names: Optional[Iterable[str]] = None, average: bool = False, **kwargs: Any) \ -> None: """Plot the `flux` series of the handled model. See the documentation on method |Element.plot_inputseries| for additional information. "...
[ "def", "plot_fluxseries", "(", "self", ",", "names", ":", "Optional", "[", "Iterable", "[", "str", "]", "]", "=", "None", ",", "average", ":", "bool", "=", "False", ",", "*", "*", "kwargs", ":", "Any", ")", "->", "None", ":", "self", ".", "__plot",...
Plot the `flux` series of the handled model. See the documentation on method |Element.plot_inputseries| for additional information.
[ "Plot", "the", "flux", "series", "of", "the", "handled", "model", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L2231-L2240
hydpy-dev/hydpy
hydpy/core/devicetools.py
Element.plot_stateseries
def plot_stateseries( self, names: Optional[Iterable[str]] = None, average: bool = False, **kwargs: Any) \ -> None: """Plot the `state` series of the handled model. See the documentation on method |Element.plot_inputseries| for additional information. ...
python
def plot_stateseries( self, names: Optional[Iterable[str]] = None, average: bool = False, **kwargs: Any) \ -> None: """Plot the `state` series of the handled model. See the documentation on method |Element.plot_inputseries| for additional information. ...
[ "def", "plot_stateseries", "(", "self", ",", "names", ":", "Optional", "[", "Iterable", "[", "str", "]", "]", "=", "None", ",", "average", ":", "bool", "=", "False", ",", "*", "*", "kwargs", ":", "Any", ")", "->", "None", ":", "self", ".", "__plot"...
Plot the `state` series of the handled model. See the documentation on method |Element.plot_inputseries| for additional information.
[ "Plot", "the", "state", "series", "of", "the", "handled", "model", "." ]
train
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L2242-L2251