partition
stringclasses
3 values
func_name
stringlengths
1
134
docstring
stringlengths
1
46.9k
path
stringlengths
4
223
original_string
stringlengths
75
104k
code
stringlengths
75
104k
docstring_tokens
listlengths
1
1.97k
repo
stringlengths
7
55
language
stringclasses
1 value
url
stringlengths
87
315
code_tokens
listlengths
19
28.4k
sha
stringlengths
40
40
train
Selection.copy
Return a new |Selection| object with the given name and copies of the handles |Nodes| and |Elements| objects based on method |Devices.copy|.
hydpy/core/selectiontools.py
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 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))
[ "Return", "a", "new", "|Selection|", "object", "with", "the", "given", "name", "and", "copies", "of", "the", "handles", "|Nodes|", "and", "|Elements|", "objects", "based", "on", "method", "|Devices", ".", "copy|", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/selectiontools.py#L830-L834
[ "def", "copy", "(", "self", ",", "name", ":", "str", ")", "->", "'Selection'", ":", "return", "type", "(", "self", ")", "(", "name", ",", "copy", ".", "copy", "(", "self", ".", "nodes", ")", ",", "copy", ".", "copy", "(", "self", ".", "elements",...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Selection.save_networkfile
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, ...
hydpy/core/selectiontools.py
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: """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...
[ "Save", "the", "selection", "as", "a", "network", "file", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/selectiontools.py#L836-L901
[ "def", "save_networkfile", "(", "self", ",", "filepath", ":", "Union", "[", "str", ",", "None", "]", "=", "None", ",", "write_nodes", ":", "bool", "=", "True", ")", "->", "None", ":", "if", "filepath", "is", "None", ":", "filepath", "=", "self", ".",...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Selection.assignrepr
Return a |repr| string with a prefixed assignment.
hydpy/core/selectiontools.py
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: """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): ...
[ "Return", "a", "|repr|", "string", "with", "a", "prefixed", "assignment", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/selectiontools.py#L957-L970
[ "def", "assignrepr", "(", "self", ",", "prefix", ":", "str", ")", "->", "str", ":", "with", "objecttools", ".", "repr_", ".", "preserve_strings", "(", "True", ")", ":", "with", "hydpy", ".", "pub", ".", "options", ".", "ellipsis", "(", "2", ",", "opt...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_qpin_v1
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...
hydpy/models/arma/arma_model.py
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): """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...
[ "Calculate", "the", "input", "discharge", "portions", "of", "the", "different", "response", "functions", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_model.py#L10-L95
[ "def", "calc_qpin_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "for", "idx", "in", "range", "(", "der", ".", "nmb", "-", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_login_v1
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...
hydpy/models/arma/arma_model.py
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): """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...
[ "Refresh", "the", "input", "log", "sequence", "for", "the", "different", "MA", "processes", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_model.py#L98-L155
[ "def", "calc_login_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "log", "=", "self", ".", "sequences", ".", "logs", ".", "fa...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_qma_v1
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 ...
hydpy/models/arma/arma_model.py
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): """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...
[ "Calculate", "the", "discharge", "responses", "of", "the", "different", "MA", "processes", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_model.py#L158-L216
[ "def", "calc_qma_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "log", "=", "self", ".", "sequences", ".", "logs", ".", "fast...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_qar_v1
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...
hydpy/models/arma/arma_model.py
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): """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...
[ "Calculate", "the", "discharge", "responses", "of", "the", "different", "AR", "processes", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_model.py#L219-L281
[ "def", "calc_qar_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "log", "=", "self", ".", "sequences", ".", "logs", ".", "fast...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_qpout_v1
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...
hydpy/models/arma/arma_model.py
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): """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 ...
[ "Calculate", "the", "ARMA", "results", "for", "the", "different", "response", "functions", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_model.py#L284-L321
[ "def", "calc_qpout_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "for", "idx", "in", "range", "(", "der", ".", "nmb", ")", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_logout_v1
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...
hydpy/models/arma/arma_model.py
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): """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...
[ "Refresh", "the", "log", "sequence", "for", "the", "different", "AR", "processes", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_model.py#L324-L387
[ "def", "calc_logout_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "log", "=", "self", ".", "sequences", ".", "logs", ".", "f...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
calc_qout_v1
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...
hydpy/models/arma/arma_model.py
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): """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: >...
[ "Sum", "up", "the", "results", "of", "the", "different", "response", "functions", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_model.py#L390-L423
[ "def", "calc_qout_v1", "(", "self", ")", ":", "der", "=", "self", ".", "parameters", ".", "derived", ".", "fastaccess", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "flu", ".", "qout", "=", "0.", "for", "idx", "in", "range", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
pick_q_v1
Update inflow.
hydpy/models/arma/arma_model.py
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): """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]
[ "Update", "inflow", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/arma/arma_model.py#L426-L432
[ "def", "pick_q_v1", "(", "self", ")", ":", "flu", "=", "self", ".", "sequences", ".", "fluxes", ".", "fastaccess", "inl", "=", "self", ".", "sequences", ".", "inlets", ".", "fastaccess", "flu", ".", "qin", "=", "0.", "for", "idx", "in", "range", "(",...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
NmbBranches.update
Determine the number of branches
hydpy/models/hbranch/hbranch_derived.py
def update(self): """Determine the number of branches""" con = self.subpars.pars.control self(con.ypoints.shape[0])
def update(self): """Determine the number of branches""" con = self.subpars.pars.control self(con.ypoints.shape[0])
[ "Determine", "the", "number", "of", "branches" ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hbranch/hbranch_derived.py#L14-L17
[ "def", "update", "(", "self", ")", ":", "con", "=", "self", ".", "subpars", ".", "pars", ".", "control", "self", "(", "con", ".", "ypoints", ".", "shape", "[", "0", "]", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
HV.update
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....
hydpy/models/lstream/lstream_derived.py
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): """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=...
[ "Update", "value", "based", "on", ":", "math", ":", "HV", "=", "BBV", "/", "BNV", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lstream/lstream_derived.py#L14-L39
[ "def", "update", "(", "self", ")", ":", "con", "=", "self", ".", "subpars", ".", "pars", ".", "control", "self", "(", "0.", ")", "for", "idx", "in", "range", "(", "2", ")", ":", "if", "(", "con", ".", "bbv", "[", "idx", "]", ">", "0.", ")", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
QM.update
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...
hydpy/models/lstream/lstream_derived.py
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): """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...
[ "Update", "value", "based", "on", "the", "actual", "|calc_qg_v1|", "method", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/lstream/lstream_derived.py#L47-L66
[ "def", "update", "(", "self", ")", ":", "mod", "=", "self", ".", "subpars", ".", "pars", ".", "model", "con", "=", "mod", ".", "parameters", ".", "control", "flu", "=", "mod", ".", "sequences", ".", "fluxes", "flu", ".", "h", "=", "con", ".", "hm...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
NmbSegments.update
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| ...
hydpy/models/hstream/hstream_derived.py
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): """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: ...
[ "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...
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hstream/hstream_derived.py#L16-L60
[ "def", "update", "(", "self", ")", ":", "pars", "=", "self", ".", "subpars", ".", "pars", "self", "(", "int", "(", "round", "(", "pars", ".", "control", ".", "lag", ")", ")", ")", "pars", ".", "model", ".", "sequences", ".", "states", ".", "qjoin...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
C1.update
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 * ...
hydpy/models/hstream/hstream_derived.py
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): """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...
[ "Update", "|C1|", "based", "on", ":", "math", ":", "c_1", "=", "\\\\", "frac", "{", "Damp", "}", "{", "1", "+", "Damp", "}", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hstream/hstream_derived.py#L67-L102
[ "def", "update", "(", "self", ")", ":", "damp", "=", "self", ".", "subpars", ".", "pars", ".", "control", ".", "damp", "self", "(", "numpy", ".", "clip", "(", "damp", "/", "(", "1.", "+", "damp", ")", ",", "0.", ",", ".5", ")", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
C2.update
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 >>>...
hydpy/models/hstream/hstream_derived.py
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): """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...
[ "Update", "|C2|", "based", "on", ":", "math", ":", "c_2", "=", "1", ".", "-", "c_1", "-", "c_3", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/models/hstream/hstream_derived.py#L109-L134
[ "def", "update", "(", "self", ")", ":", "der", "=", "self", ".", "subpars", "self", "(", "numpy", ".", "clip", "(", "1.", "-", "der", ".", "c1", "-", "der", ".", "c3", ",", "0.", ",", "1.", ")", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
view
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...
gtabview/__init__.py
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=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...
[ "View", "the", "supplied", "data", "in", "an", "interactive", "graphical", "table", "widget", "." ]
TabViewer/gtabview
python
https://github.com/TabViewer/gtabview/blob/14ba391f0b225a1bf32d52b640a47b580f8b1b28/gtabview/__init__.py#L120-L211
[ "def", "view", "(", "data", ",", "enc", "=", "None", ",", "start_pos", "=", "None", ",", "delimiter", "=", "None", ",", "hdr_rows", "=", "None", ",", "idx_cols", "=", "None", ",", "sheet_index", "=", "0", ",", "transpose", "=", "False", ",", "wait", ...
14ba391f0b225a1bf32d52b640a47b580f8b1b28
train
gather_registries
Get and clear the current |Node| and |Element| registries. Function |gather_registries| is thought to be used by class |Tester| only.
hydpy/core/devicetools.py
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]: """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...
[ "Get", "and", "clear", "the", "current", "|Node|", "and", "|Element|", "registries", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L2287-L2299
[ "def", "gather_registries", "(", ")", "->", "Tuple", "[", "Dict", ",", "Mapping", ",", "Mapping", "]", ":", "id2devices", "=", "copy", ".", "copy", "(", "_id2devices", ")", "registry", "=", "copy", ".", "copy", "(", "_registry", ")", "selection", "=", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
reset_registries
Reset the current |Node| and |Element| registries. Function |reset_registries| is thought to be used by class |Tester| only.
hydpy/core/devicetools.py
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]): """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']...
[ "Reset", "the", "current", "|Node|", "and", "|Element|", "registries", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L2302-L2310
[ "def", "reset_registries", "(", "dicts", ":", "Tuple", "[", "Dict", ",", "Mapping", ",", "Mapping", "]", ")", ":", "dict_", "=", "globals", "(", ")", "dict_", "[", "'_id2devices'", "]", "=", "dicts", "[", "0", "]", "dict_", "[", "'_registry'", "]", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
_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', ... '2004-12-30 12:00:00', '2004-12-31 ...
hydpy/core/devicetools.py
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(): """ >>> 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', ... ...
[ ">>>", "from", "hydpy", "import", "pub", ">>>", "pub", ".", "timegrids", "=", "2004", ".", "01", ".", "01", "2005", ".", "01", ".", "01", "1d", ">>>", "from", "hydpy", ".", "core", ".", "devicetools", "import", "_get_pandasindex", ">>>", "_get_pandasinde...
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L2313-L2330
[ "def", "_get_pandasindex", "(", ")", ":", "tg", "=", "hydpy", ".", "pub", ".", "timegrids", ".", "init", "shift", "=", "tg", ".", "stepsize", "/", "2", "index", "=", "pandas", ".", "date_range", "(", "(", "tg", ".", "firstdate", "+", "shift", ")", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Keywords.startswith
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(...
hydpy/core/devicetools.py
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 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', ... ...
[ "Return", "a", "list", "of", "all", "keywords", "starting", "with", "the", "given", "string", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L122-L132
[ "def", "startswith", "(", "self", ",", "name", ":", "str", ")", "->", "List", "[", "str", "]", ":", "return", "sorted", "(", "keyword", "for", "keyword", "in", "self", "if", "keyword", ".", "startswith", "(", "name", ")", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Keywords.endswith
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...
hydpy/core/devicetools.py
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 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', ... ...
[ "Return", "a", "list", "of", "all", "keywords", "ending", "with", "the", "given", "string", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L134-L144
[ "def", "endswith", "(", "self", ",", "name", ":", "str", ")", "->", "List", "[", "str", "]", ":", "return", "sorted", "(", "keyword", "for", "keyword", "in", "self", "if", "keyword", ".", "endswith", "(", "name", ")", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Keywords.contains
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...
hydpy/core/devicetools.py
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 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', ... ...
[ "Return", "a", "list", "of", "all", "keywords", "containing", "the", "given", "string", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L146-L156
[ "def", "contains", "(", "self", ",", "name", ":", "str", ")", "->", "List", "[", "str", "]", ":", "return", "sorted", "(", "keyword", "for", "keyword", "in", "self", "if", "name", "in", "keyword", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Keywords.update
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') ...
hydpy/core/devicetools.py
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: """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', ...
[ "Before", "updating", "the", "given", "names", "are", "checked", "to", "be", "valid", "variable", "identifiers", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L167-L198
[ "def", "update", "(", "self", ",", "*", "names", ":", "Any", ")", "->", "None", ":", "_names", "=", "[", "str", "(", "name", ")", "for", "name", "in", "names", "]", "self", ".", "_check_keywords", "(", "_names", ")", "super", "(", ")", ".", "upda...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Keywords.add
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') >>> ...
hydpy/core/devicetools.py
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: """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', ......
[ "Before", "adding", "a", "new", "name", "it", "is", "checked", "to", "be", "valid", "variable", "identifiers", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L200-L227
[ "def", "add", "(", "self", ",", "name", ":", "Any", ")", "->", "None", ":", "self", ".", "_check_keywords", "(", "[", "str", "(", "name", ")", "]", ")", "super", "(", ")", ".", "add", "(", "str", "(", "name", ")", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Devices.add_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...
hydpy/core/devicetools.py
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: """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...
[ "Add", "the", "given", "|Node|", "or", "|Element|", "object", "to", "the", "actual", "|Nodes|", "or", "|Elements|", "object", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L404-L442
[ "def", "add_device", "(", "self", ",", "device", ":", "Union", "[", "DeviceType", ",", "str", "]", ")", "->", "None", ":", "try", ":", "if", "self", ".", "mutable", ":", "_device", "=", "self", ".", "get_contentclass", "(", ")", "(", "device", ")", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Devices.remove_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'))...
hydpy/core/devicetools.py
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: """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') ...
[ "Remove", "the", "given", "|Node|", "or", "|Element|", "object", "from", "the", "actual", "|Nodes|", "or", "|Elements|", "object", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L444-L494
[ "def", "remove_device", "(", "self", ",", "device", ":", "Union", "[", "DeviceType", ",", "str", "]", ")", "->", "None", ":", "try", ":", "if", "self", ".", "mutable", ":", "_device", "=", "self", ".", "get_contentclass", "(", ")", "(", "device", ")"...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Devices.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` ...
hydpy/core/devicetools.py
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]: """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...
[ "A", "set", "of", "all", "keywords", "of", "all", "handled", "devices", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L520-L575
[ "def", "keywords", "(", "self", ")", "->", "Set", "[", "str", "]", ":", "return", "set", "(", "keyword", "for", "device", "in", "self", "for", "keyword", "in", "device", ".", "keywords", "if", "keyword", "not", "in", "self", ".", "_shadowed_keywords", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Devices.copy
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...
hydpy/core/devicetools.py
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: """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...
[ "Return", "a", "shallow", "copy", "of", "the", "actual", "|Nodes|", "or", "|Elements|", "object", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L589-L632
[ "def", "copy", "(", "self", ":", "DevicesTypeBound", ")", "->", "DevicesTypeBound", ":", "new", "=", "type", "(", "self", ")", "(", ")", "vars", "(", "new", ")", ".", "update", "(", "vars", "(", "self", ")", ")", "vars", "(", "new", ")", "[", "'_...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Nodes.prepare_allseries
Call methods |Node.prepare_simseries| and |Node.prepare_obsseries|.
hydpy/core/devicetools.py
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: """Call methods |Node.prepare_simseries| and |Node.prepare_obsseries|.""" self.prepare_simseries(ramflag) self.prepare_obsseries(ramflag)
[ "Call", "methods", "|Node", ".", "prepare_simseries|", "and", "|Node", ".", "prepare_obsseries|", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L814-L818
[ "def", "prepare_allseries", "(", "self", ",", "ramflag", ":", "bool", "=", "True", ")", "->", "None", ":", "self", ".", "prepare_simseries", "(", "ramflag", ")", "self", ".", "prepare_obsseries", "(", "ramflag", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Nodes.prepare_simseries
Call method |Node.prepare_simseries| of all handled |Node| objects.
hydpy/core/devicetools.py
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: """Call method |Node.prepare_simseries| of all handled |Node| objects.""" for node in printtools.progressbar(self): node.prepare_simseries(ramflag)
[ "Call", "method", "|Node", ".", "prepare_simseries|", "of", "all", "handled", "|Node|", "objects", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L821-L825
[ "def", "prepare_simseries", "(", "self", ",", "ramflag", ":", "bool", "=", "True", ")", "->", "None", ":", "for", "node", "in", "printtools", ".", "progressbar", "(", "self", ")", ":", "node", ".", "prepare_simseries", "(", "ramflag", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Nodes.prepare_obsseries
Call method |Node.prepare_obsseries| of all handled |Node| objects.
hydpy/core/devicetools.py
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: """Call method |Node.prepare_obsseries| of all handled |Node| objects.""" for node in printtools.progressbar(self): node.prepare_obsseries(ramflag)
[ "Call", "method", "|Node", ".", "prepare_obsseries|", "of", "all", "handled", "|Node|", "objects", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L828-L832
[ "def", "prepare_obsseries", "(", "self", ",", "ramflag", ":", "bool", "=", "True", ")", "->", "None", ":", "for", "node", "in", "printtools", ".", "progressbar", "(", "self", ")", ":", "node", ".", "prepare_obsseries", "(", "ramflag", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Elements.init_models
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...
hydpy/core/devicetools.py
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: """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 ...
[ "Call", "method", "|Element", ".", "init_model|", "of", "all", "handle", "|Element|", "objects", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L907-L973
[ "def", "init_models", "(", "self", ")", "->", "None", ":", "try", ":", "for", "element", "in", "printtools", ".", "progressbar", "(", "self", ")", ":", "element", ".", "init_model", "(", "clear_registry", "=", "False", ")", "finally", ":", "hydpy", ".", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Elements.save_controls
Save the control parameters of the |Model| object handled by each |Element| object and eventually the ones handled by the given |Auxfiler| object.
hydpy/core/devicetools.py
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): """Save the control parameters of the |Model| object handled by each |Element| o...
[ "Save", "the", "control", "parameters", "of", "the", "|Model|", "object", "handled", "by", "each", "|Element|", "object", "and", "eventually", "the", "ones", "handled", "by", "the", "given", "|Auxfiler|", "object", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L976-L988
[ "def", "save_controls", "(", "self", ",", "parameterstep", ":", "'timetools.PeriodConstrArg'", "=", "None", ",", "simulationstep", ":", "'timetools.PeriodConstrArg'", "=", "None", ",", "auxfiler", ":", "'Optional[auxfiletools.Auxfiler]'", "=", "None", ")", ":", "if", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Elements.load_conditions
Save the initial conditions of the |Model| object handled by each |Element| object.
hydpy/core/devicetools.py
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: """Save the initial conditions of the |Model| object handled by each |Element| object.""" for element in printtools.progressbar(self): element.model.sequences.load_conditions()
[ "Save", "the", "initial", "conditions", "of", "the", "|Model|", "object", "handled", "by", "each", "|Element|", "object", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L991-L995
[ "def", "load_conditions", "(", "self", ")", "->", "None", ":", "for", "element", "in", "printtools", ".", "progressbar", "(", "self", ")", ":", "element", ".", "model", ".", "sequences", ".", "load_conditions", "(", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Elements.save_conditions
Save the calculated conditions of the |Model| object handled by each |Element| object.
hydpy/core/devicetools.py
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: """Save the calculated conditions of the |Model| object handled by each |Element| object.""" for element in printtools.progressbar(self): element.model.sequences.save_conditions()
[ "Save", "the", "calculated", "conditions", "of", "the", "|Model|", "object", "handled", "by", "each", "|Element|", "object", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L998-L1002
[ "def", "save_conditions", "(", "self", ")", "->", "None", ":", "for", "element", "in", "printtools", ".", "progressbar", "(", "self", ")", ":", "element", ".", "model", ".", "sequences", ".", "save_conditions", "(", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Elements.conditions
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.
hydpy/core/devicetools.py
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]]]]: """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...
[ "A", "nested", "dictionary", "containing", "the", "values", "of", "all", "|ConditionSequence|", "objects", "of", "all", "currently", "handled", "models", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1017-L1026
[ "def", "conditions", "(", "self", ")", "->", "Dict", "[", "str", ",", "Dict", "[", "str", ",", "Dict", "[", "str", ",", "Union", "[", "float", ",", "numpy", ".", "ndarray", "]", "]", "]", "]", ":", "return", "{", "element", ".", "name", ":", "e...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Elements.prepare_allseries
Call method |Element.prepare_allseries| of all handled |Element| objects.
hydpy/core/devicetools.py
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: """Call method |Element.prepare_allseries| of all handled |Element| objects.""" for element in printtools.progressbar(self): element.prepare_allseries(ramflag)
[ "Call", "method", "|Element", ".", "prepare_allseries|", "of", "all", "handled", "|Element|", "objects", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1039-L1043
[ "def", "prepare_allseries", "(", "self", ",", "ramflag", ":", "bool", "=", "True", ")", "->", "None", ":", "for", "element", "in", "printtools", ".", "progressbar", "(", "self", ")", ":", "element", ".", "prepare_allseries", "(", "ramflag", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Elements.prepare_inputseries
Call method |Element.prepare_inputseries| of all handled |Element| objects.
hydpy/core/devicetools.py
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: """Call method |Element.prepare_inputseries| of all handled |Element| objects.""" for element in printtools.progressbar(self): element.prepare_inputseries(ramflag)
[ "Call", "method", "|Element", ".", "prepare_inputseries|", "of", "all", "handled", "|Element|", "objects", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1046-L1050
[ "def", "prepare_inputseries", "(", "self", ",", "ramflag", ":", "bool", "=", "True", ")", "->", "None", ":", "for", "element", "in", "printtools", ".", "progressbar", "(", "self", ")", ":", "element", ".", "prepare_inputseries", "(", "ramflag", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Elements.prepare_fluxseries
Call method |Element.prepare_fluxseries| of all handled |Element| objects.
hydpy/core/devicetools.py
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: """Call method |Element.prepare_fluxseries| of all handled |Element| objects.""" for element in printtools.progressbar(self): element.prepare_fluxseries(ramflag)
[ "Call", "method", "|Element", ".", "prepare_fluxseries|", "of", "all", "handled", "|Element|", "objects", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1053-L1057
[ "def", "prepare_fluxseries", "(", "self", ",", "ramflag", ":", "bool", "=", "True", ")", "->", "None", ":", "for", "element", "in", "printtools", ".", "progressbar", "(", "self", ")", ":", "element", ".", "prepare_fluxseries", "(", "ramflag", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Elements.prepare_stateseries
Call method |Element.prepare_stateseries| of all handled |Element| objects.
hydpy/core/devicetools.py
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: """Call method |Element.prepare_stateseries| of all handled |Element| objects.""" for element in printtools.progressbar(self): element.prepare_stateseries(ramflag)
[ "Call", "method", "|Element", ".", "prepare_stateseries|", "of", "all", "handled", "|Element|", "objects", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1060-L1064
[ "def", "prepare_stateseries", "(", "self", ",", "ramflag", ":", "bool", "=", "True", ")", "->", "None", ":", "for", "element", "in", "printtools", ".", "progressbar", "(", "self", ")", ":", "element", ".", "prepare_stateseries", "(", "ramflag", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Device.extract_new
Gather all "new" |Node| or |Element| objects. See the main documentation on module |devicetools| for further information.
hydpy/core/devicetools.py
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: """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
[ "Gather", "all", "new", "|Node|", "or", "|Element|", "objects", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1172-L1180
[ "def", "extract_new", "(", "cls", ")", "->", "DevicesTypeUnbound", ":", "devices", "=", "cls", ".", "get_handlerclass", "(", ")", "(", "*", "_selection", "[", "cls", "]", ")", "_selection", "[", "cls", "]", ".", "clear", "(", ")", "return", "devices" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Node.get_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 developers). Let |Node| object `node1` handle different simulati...
hydpy/core/devicetools.py
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: """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...
[ "Return", "the", "|Double|", "object", "appropriate", "for", "the", "given", "|Element|", "input", "or", "output", "group", "and", "the", "actual", "|Node", ".", "deploymode|", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1483-L1558
[ "def", "get_double", "(", "self", ",", "group", ":", "str", ")", "->", "pointerutils", ".", "Double", ":", "if", "group", "in", "(", "'inlets'", ",", "'receivers'", ")", ":", "if", "self", ".", "deploymode", "!=", "'obs'", ":", "return", "self", ".", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Node.plot_simseries
Plot the |IOSequence.series| of the |Sim| sequence object. See method |Node.plot_allseries| for further information.
hydpy/core/devicetools.py
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: """Plot the |IOSequence.series| of the |Sim| sequence object. See method |Node.plot_allseries| for further information. """ self.__plot_series([self.sequences.sim], kwargs)
[ "Plot", "the", "|IOSequence", ".", "series|", "of", "the", "|Sim|", "sequence", "object", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1668-L1673
[ "def", "plot_simseries", "(", "self", ",", "*", "*", "kwargs", ":", "Any", ")", "->", "None", ":", "self", ".", "__plot_series", "(", "[", "self", ".", "sequences", ".", "sim", "]", ",", "kwargs", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Node.plot_obsseries
Plot the |IOSequence.series| of the |Obs| sequence object. See method |Node.plot_allseries| for further information.
hydpy/core/devicetools.py
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: """Plot the |IOSequence.series| of the |Obs| sequence object. See method |Node.plot_allseries| for further information. """ self.__plot_series([self.sequences.obs], kwargs)
[ "Plot", "the", "|IOSequence", ".", "series|", "of", "the", "|Obs|", "sequence", "object", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1675-L1680
[ "def", "plot_obsseries", "(", "self", ",", "*", "*", "kwargs", ":", "Any", ")", "->", "None", ":", "self", ".", "__plot_series", "(", "[", "self", ".", "sequences", ".", "obs", "]", ",", "kwargs", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Node.assignrepr
Return a |repr| string with a prefixed assignment.
hydpy/core/devicetools.py
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: """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...
[ "Return", "a", "|repr|", "string", "with", "a", "prefixed", "assignment", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1703-L1715
[ "def", "assignrepr", "(", "self", ",", "prefix", ":", "str", "=", "''", ")", "->", "str", ":", "lines", "=", "[", "'%sNode(\"%s\", variable=\"%s\",'", "%", "(", "prefix", ",", "self", ".", "name", ",", "self", ".", "variable", ")", "]", "if", "self", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Element.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') >>> hland.model Traceback (most recent call last):...
hydpy/core/devicetools.py
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': """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...
[ "The", "|Model|", "object", "handled", "by", "the", "actual", "|Element|", "object", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L1921-L1992
[ "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 '"...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Element.init_model
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...
hydpy/core/devicetools.py
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: """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...
[ "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...
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L2004-L2033
[ "def", "init_model", "(", "self", ",", "clear_registry", ":", "bool", "=", "True", ")", "->", "None", ":", "try", ":", "with", "hydpy", ".", "pub", ".", "options", ".", "warnsimulationstep", "(", "False", ")", ":", "info", "=", "hydpy", ".", "pub", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Element.variables
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...
hydpy/core/devicetools.py
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]: """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...
[ "A", "set", "of", "all", "different", "|Node", ".", "variable|", "values", "of", "the", "|Node|", "objects", "directly", "connected", "to", "the", "actual", "|Element|", "object", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L2036-L2059
[ "def", "variables", "(", "self", ")", "->", "Set", "[", "str", "]", ":", "variables", ":", "Set", "[", "str", "]", "=", "set", "(", ")", "for", "connection", "in", "self", ".", "__connections", ":", "variables", ".", "update", "(", "connection", ".",...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Element.prepare_allseries
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...
hydpy/core/devicetools.py
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: """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...
[ "Prepare", "the", "|IOSequence", ".", "series|", "objects", "of", "all", "input", "flux", "and", "state", "sequences", "of", "the", "model", "handled", "by", "this", "element", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L2071-L2085
[ "def", "prepare_allseries", "(", "self", ",", "ramflag", ":", "bool", "=", "True", ")", "->", "None", ":", "self", ".", "prepare_inputseries", "(", "ramflag", ")", "self", ".", "prepare_fluxseries", "(", "ramflag", ")", "self", ".", "prepare_stateseries", "(...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Element.plot_inputseries
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...
hydpy/core/devicetools.py
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: """Plot (the selected) |InputSequence| |IOSequence.series| values. We demonstrate the functionalities of method |Element.plot_inputseries| base...
[ "Plot", "(", "the", "selected", ")", "|InputSequence|", "|IOSequence", ".", "series|", "values", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L2154-L2229
[ "def", "plot_inputseries", "(", "self", ",", "names", ":", "Optional", "[", "Iterable", "[", "str", "]", "]", "=", "None", ",", "average", ":", "bool", "=", "False", ",", "*", "*", "kwargs", ":", "Any", ")", "->", "None", ":", "self", ".", "__plot"...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Element.plot_fluxseries
Plot the `flux` series of the handled model. See the documentation on method |Element.plot_inputseries| for additional information.
hydpy/core/devicetools.py
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: """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", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L2231-L2240
[ "def", "plot_fluxseries", "(", "self", ",", "names", ":", "Optional", "[", "Iterable", "[", "str", "]", "]", "=", "None", ",", "average", ":", "bool", "=", "False", ",", "*", "*", "kwargs", ":", "Any", ")", "->", "None", ":", "self", ".", "__plot",...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Element.plot_stateseries
Plot the `state` series of the handled model. See the documentation on method |Element.plot_inputseries| for additional information.
hydpy/core/devicetools.py
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: """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", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L2242-L2251
[ "def", "plot_stateseries", "(", "self", ",", "names", ":", "Optional", "[", "Iterable", "[", "str", "]", "]", "=", "None", ",", "average", ":", "bool", "=", "False", ",", "*", "*", "kwargs", ":", "Any", ")", "->", "None", ":", "self", ".", "__plot"...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Element.assignrepr
Return a |repr| string with a prefixed assignment.
hydpy/core/devicetools.py
def assignrepr(self, prefix: str) -> str: """Return a |repr| string with a prefixed assignment.""" with objecttools.repr_.preserve_strings(True): with objecttools.assignrepr_tuple.always_bracketed(False): blanks = ' ' * (len(prefix) + 8) lines = ['%sElement("%...
def assignrepr(self, prefix: str) -> str: """Return a |repr| string with a prefixed assignment.""" with objecttools.repr_.preserve_strings(True): with objecttools.assignrepr_tuple.always_bracketed(False): blanks = ' ' * (len(prefix) + 8) lines = ['%sElement("%...
[ "Return", "a", "|repr|", "string", "with", "a", "prefixed", "assignment", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/devicetools.py#L2253-L2276
[ "def", "assignrepr", "(", "self", ",", "prefix", ":", "str", ")", "->", "str", ":", "with", "objecttools", ".", "repr_", ".", "preserve_strings", "(", "True", ")", ":", "with", "objecttools", ".", "assignrepr_tuple", ".", "always_bracketed", "(", "False", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Model._init_methods
Convert all pure Python calculation functions of the model class to methods and assign them to the model instance.
hydpy/core/modeltools.py
def _init_methods(self): """Convert all pure Python calculation functions of the model class to methods and assign them to the model instance. """ for name_group in self._METHOD_GROUPS: functions = getattr(self, name_group, ()) uniques = {} for func in...
def _init_methods(self): """Convert all pure Python calculation functions of the model class to methods and assign them to the model instance. """ for name_group in self._METHOD_GROUPS: functions = getattr(self, name_group, ()) uniques = {} for func in...
[ "Convert", "all", "pure", "Python", "calculation", "functions", "of", "the", "model", "class", "to", "methods", "and", "assign", "them", "to", "the", "model", "instance", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/modeltools.py#L47-L65
[ "def", "_init_methods", "(", "self", ")", ":", "for", "name_group", "in", "self", ".", "_METHOD_GROUPS", ":", "functions", "=", "getattr", "(", "self", ",", "name_group", ",", "(", ")", ")", "uniques", "=", "{", "}", "for", "func", "in", "functions", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Model.name
Name of the model type. For base models, |Model.name| corresponds to the package name: >>> from hydpy import prepare_model >>> hland = prepare_model('hland') >>> hland.name 'hland' For application models, |Model.name| corresponds the module name: >>> hland_v1 ...
hydpy/core/modeltools.py
def name(self): """Name of the model type. For base models, |Model.name| corresponds to the package name: >>> from hydpy import prepare_model >>> hland = prepare_model('hland') >>> hland.name 'hland' For application models, |Model.name| corresponds the module n...
def name(self): """Name of the model type. For base models, |Model.name| corresponds to the package name: >>> from hydpy import prepare_model >>> hland = prepare_model('hland') >>> hland.name 'hland' For application models, |Model.name| corresponds the module n...
[ "Name", "of", "the", "model", "type", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/modeltools.py#L68-L97
[ "def", "name", "(", "self", ")", ":", "name", "=", "self", ".", "__name", "if", "name", ":", "return", "name", "subs", "=", "self", ".", "__module__", ".", "split", "(", "'.'", ")", "if", "len", "(", "subs", ")", "==", "2", ":", "type", "(", "s...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
Model.connect
Connect the link sequences of the actual model.
hydpy/core/modeltools.py
def connect(self): """Connect the link sequences of the actual model.""" try: for group in ('inlets', 'receivers', 'outlets', 'senders'): self._connect_subgroup(group) except BaseException: objecttools.augment_excmessage( 'While trying to b...
def connect(self): """Connect the link sequences of the actual model.""" try: for group in ('inlets', 'receivers', 'outlets', 'senders'): self._connect_subgroup(group) except BaseException: objecttools.augment_excmessage( 'While trying to b...
[ "Connect", "the", "link", "sequences", "of", "the", "actual", "model", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/modeltools.py#L99-L108
[ "def", "connect", "(", "self", ")", ":", "try", ":", "for", "group", "in", "(", "'inlets'", ",", "'receivers'", ",", "'outlets'", ",", "'senders'", ")", ":", "self", ".", "_connect_subgroup", "(", "group", ")", "except", "BaseException", ":", "objecttools"...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
ModelELS.calculate_single_terms
Apply all methods stored in the hidden attribute `PART_ODE_METHODS`. >>> from hydpy.models.test_v1 import * >>> parameterstep() >>> k(0.25) >>> states.s = 1.0 >>> model.calculate_single_terms() >>> fluxes.q q(0.25)
hydpy/core/modeltools.py
def calculate_single_terms(self): """Apply all methods stored in the hidden attribute `PART_ODE_METHODS`. >>> from hydpy.models.test_v1 import * >>> parameterstep() >>> k(0.25) >>> states.s = 1.0 >>> model.calculate_single_terms() >>> fluxes.q q(0...
def calculate_single_terms(self): """Apply all methods stored in the hidden attribute `PART_ODE_METHODS`. >>> from hydpy.models.test_v1 import * >>> parameterstep() >>> k(0.25) >>> states.s = 1.0 >>> model.calculate_single_terms() >>> fluxes.q q(0...
[ "Apply", "all", "methods", "stored", "in", "the", "hidden", "attribute", "PART_ODE_METHODS", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/modeltools.py#L515-L529
[ "def", "calculate_single_terms", "(", "self", ")", ":", "self", ".", "numvars", ".", "nmb_calls", "=", "self", ".", "numvars", ".", "nmb_calls", "+", "1", "for", "method", "in", "self", ".", "PART_ODE_METHODS", ":", "method", "(", "self", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
ModelELS.get_sum_fluxes
Get the sum of the fluxes calculated so far. >>> from hydpy.models.test_v1 import * >>> parameterstep() >>> fluxes.q = 0.0 >>> fluxes.fastaccess._q_sum = 1.0 >>> model.get_sum_fluxes() >>> fluxes.q q(1.0)
hydpy/core/modeltools.py
def get_sum_fluxes(self): """Get the sum of the fluxes calculated so far. >>> from hydpy.models.test_v1 import * >>> parameterstep() >>> fluxes.q = 0.0 >>> fluxes.fastaccess._q_sum = 1.0 >>> model.get_sum_fluxes() >>> fluxes.q q(1.0) """ f...
def get_sum_fluxes(self): """Get the sum of the fluxes calculated so far. >>> from hydpy.models.test_v1 import * >>> parameterstep() >>> fluxes.q = 0.0 >>> fluxes.fastaccess._q_sum = 1.0 >>> model.get_sum_fluxes() >>> fluxes.q q(1.0) """ f...
[ "Get", "the", "sum", "of", "the", "fluxes", "calculated", "so", "far", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/modeltools.py#L611-L624
[ "def", "get_sum_fluxes", "(", "self", ")", ":", "fluxes", "=", "self", ".", "sequences", ".", "fluxes", "for", "flux", "in", "fluxes", ".", "numerics", ":", "flux", "(", "getattr", "(", "fluxes", ".", "fastaccess", ",", "'_%s_sum'", "%", "flux", ".", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
ModelELS.integrate_fluxes
Perform a dot multiplication between the fluxes and the A coefficients associated with the different stages of the actual method. >>> from hydpy.models.test_v1 import * >>> parameterstep() >>> model.numvars.idx_method = 2 >>> model.numvars.idx_stage = 1 >>> model...
hydpy/core/modeltools.py
def integrate_fluxes(self): """Perform a dot multiplication between the fluxes and the A coefficients associated with the different stages of the actual method. >>> from hydpy.models.test_v1 import * >>> parameterstep() >>> model.numvars.idx_method = 2 >>> model....
def integrate_fluxes(self): """Perform a dot multiplication between the fluxes and the A coefficients associated with the different stages of the actual method. >>> from hydpy.models.test_v1 import * >>> parameterstep() >>> model.numvars.idx_method = 2 >>> model....
[ "Perform", "a", "dot", "multiplication", "between", "the", "fluxes", "and", "the", "A", "coefficients", "associated", "with", "the", "different", "stages", "of", "the", "actual", "method", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/modeltools.py#L664-L691
[ "def", "integrate_fluxes", "(", "self", ")", ":", "fluxes", "=", "self", ".", "sequences", ".", "fluxes", "for", "flux", "in", "fluxes", ".", "numerics", ":", "points", "=", "getattr", "(", "fluxes", ".", "fastaccess", ",", "'_%s_points'", "%", "flux", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
ModelELS.reset_sum_fluxes
Set the sum of the fluxes calculated so far to zero. >>> from hydpy.models.test_v1 import * >>> parameterstep() >>> fluxes.fastaccess._q_sum = 5. >>> model.reset_sum_fluxes() >>> fluxes.fastaccess._q_sum 0.0
hydpy/core/modeltools.py
def reset_sum_fluxes(self): """Set the sum of the fluxes calculated so far to zero. >>> from hydpy.models.test_v1 import * >>> parameterstep() >>> fluxes.fastaccess._q_sum = 5. >>> model.reset_sum_fluxes() >>> fluxes.fastaccess._q_sum 0.0 """ flux...
def reset_sum_fluxes(self): """Set the sum of the fluxes calculated so far to zero. >>> from hydpy.models.test_v1 import * >>> parameterstep() >>> fluxes.fastaccess._q_sum = 5. >>> model.reset_sum_fluxes() >>> fluxes.fastaccess._q_sum 0.0 """ flux...
[ "Set", "the", "sum", "of", "the", "fluxes", "calculated", "so", "far", "to", "zero", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/modeltools.py#L693-L708
[ "def", "reset_sum_fluxes", "(", "self", ")", ":", "fluxes", "=", "self", ".", "sequences", ".", "fluxes", "for", "flux", "in", "fluxes", ".", "numerics", ":", "if", "flux", ".", "NDIM", "==", "0", ":", "setattr", "(", "fluxes", ".", "fastaccess", ",", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
ModelELS.addup_fluxes
Add up the sum of the fluxes calculated so far. >>> from hydpy.models.test_v1 import * >>> parameterstep() >>> fluxes.fastaccess._q_sum = 1.0 >>> fluxes.q(2.0) >>> model.addup_fluxes() >>> fluxes.fastaccess._q_sum 3.0
hydpy/core/modeltools.py
def addup_fluxes(self): """Add up the sum of the fluxes calculated so far. >>> from hydpy.models.test_v1 import * >>> parameterstep() >>> fluxes.fastaccess._q_sum = 1.0 >>> fluxes.q(2.0) >>> model.addup_fluxes() >>> fluxes.fastaccess._q_sum 3.0 ""...
def addup_fluxes(self): """Add up the sum of the fluxes calculated so far. >>> from hydpy.models.test_v1 import * >>> parameterstep() >>> fluxes.fastaccess._q_sum = 1.0 >>> fluxes.q(2.0) >>> model.addup_fluxes() >>> fluxes.fastaccess._q_sum 3.0 ""...
[ "Add", "up", "the", "sum", "of", "the", "fluxes", "calculated", "so", "far", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/modeltools.py#L710-L726
[ "def", "addup_fluxes", "(", "self", ")", ":", "fluxes", "=", "self", ".", "sequences", ".", "fluxes", "for", "flux", "in", "fluxes", ".", "numerics", ":", "sum_", "=", "getattr", "(", "fluxes", ".", "fastaccess", ",", "'_%s_sum'", "%", "flux", ".", "na...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
ModelELS.calculate_error
Estimate the numerical error based on the fluxes calculated by the current and the last method. >>> from hydpy.models.test_v1 import * >>> parameterstep() >>> model.numvars.idx_method = 2 >>> results = numpy.asarray(fluxes.fastaccess._q_results) >>> results[:4] = 0., 3.,...
hydpy/core/modeltools.py
def calculate_error(self): """Estimate the numerical error based on the fluxes calculated by the current and the last method. >>> from hydpy.models.test_v1 import * >>> parameterstep() >>> model.numvars.idx_method = 2 >>> results = numpy.asarray(fluxes.fastaccess._q_resu...
def calculate_error(self): """Estimate the numerical error based on the fluxes calculated by the current and the last method. >>> from hydpy.models.test_v1 import * >>> parameterstep() >>> model.numvars.idx_method = 2 >>> results = numpy.asarray(fluxes.fastaccess._q_resu...
[ "Estimate", "the", "numerical", "error", "based", "on", "the", "fluxes", "calculated", "by", "the", "current", "and", "the", "last", "method", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/modeltools.py#L728-L749
[ "def", "calculate_error", "(", "self", ")", ":", "self", ".", "numvars", ".", "error", "=", "0.", "fluxes", "=", "self", ".", "sequences", ".", "fluxes", "for", "flux", "in", "fluxes", ".", "numerics", ":", "results", "=", "getattr", "(", "fluxes", "."...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
ModelELS.extrapolate_error
Estimate the numerical error to be expected when applying all methods available based on the results of the current and the last method. Note that this expolation strategy cannot be applied on the first method. If the current method is the first one, `-999.9` is returned. >>> ...
hydpy/core/modeltools.py
def extrapolate_error(self): """Estimate the numerical error to be expected when applying all methods available based on the results of the current and the last method. Note that this expolation strategy cannot be applied on the first method. If the current method is the first ...
def extrapolate_error(self): """Estimate the numerical error to be expected when applying all methods available based on the results of the current and the last method. Note that this expolation strategy cannot be applied on the first method. If the current method is the first ...
[ "Estimate", "the", "numerical", "error", "to", "be", "expected", "when", "applying", "all", "methods", "available", "based", "on", "the", "results", "of", "the", "current", "and", "the", "last", "method", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/modeltools.py#L751-L780
[ "def", "extrapolate_error", "(", "self", ")", ":", "if", "self", ".", "numvars", ".", "idx_method", ">", "2", ":", "self", ".", "numvars", ".", "extrapolated_error", "=", "modelutils", ".", "exp", "(", "modelutils", ".", "log", "(", "self", ".", "numvars...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
run_simulation
Perform a HydPy workflow in agreement with the given XML configuration file available in the directory of the given project. ToDo Function |run_simulation| is a "script function" and is normally used as explained in the main documentation on module |xmltools|.
hydpy/auxs/xmltools.py
def run_simulation(projectname: str, xmlfile: str): """Perform a HydPy workflow in agreement with the given XML configuration file available in the directory of the given project. ToDo Function |run_simulation| is a "script function" and is normally used as explained in the main documentation on module...
def run_simulation(projectname: str, xmlfile: str): """Perform a HydPy workflow in agreement with the given XML configuration file available in the directory of the given project. ToDo Function |run_simulation| is a "script function" and is normally used as explained in the main documentation on module...
[ "Perform", "a", "HydPy", "workflow", "in", "agreement", "with", "the", "given", "XML", "configuration", "file", "available", "in", "the", "directory", "of", "the", "given", "project", ".", "ToDo" ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L188-L222
[ "def", "run_simulation", "(", "projectname", ":", "str", ",", "xmlfile", ":", "str", ")", ":", "write", "=", "commandtools", ".", "print_textandtime", "hydpy", ".", "pub", ".", "options", ".", "printprogress", "=", "False", "write", "(", "f'Start HydPy project...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XMLInterface.validate_xml
Raise an error if the actual XML does not agree with one of the available schema files. # ToDo: should it be accompanied by a script function? The first example relies on a distorted version of the configuration file `single_run.xml`: >>> from hydpy.core.examples import prepar...
hydpy/auxs/xmltools.py
def validate_xml(self) -> None: """Raise an error if the actual XML does not agree with one of the available schema files. # ToDo: should it be accompanied by a script function? The first example relies on a distorted version of the configuration file `single_run.xml`: ...
def validate_xml(self) -> None: """Raise an error if the actual XML does not agree with one of the available schema files. # ToDo: should it be accompanied by a script function? The first example relies on a distorted version of the configuration file `single_run.xml`: ...
[ "Raise", "an", "error", "if", "the", "actual", "XML", "does", "not", "agree", "with", "one", "of", "the", "available", "schema", "files", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L315-L427
[ "def", "validate_xml", "(", "self", ")", "->", "None", ":", "try", ":", "filenames", "=", "(", "'HydPyConfigSingleRun.xsd'", ",", "'HydPyConfigMultipleRuns.xsd'", ")", "for", "name", "in", "filenames", ":", "if", "name", "in", "self", ".", "root", ".", "tag"...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XMLInterface.update_options
Update the |Options| object available in module |pub| with the values defined in the `options` XML element. >>> from hydpy.auxs.xmltools import XMLInterface >>> from hydpy import data, pub >>> interface = XMLInterface('single_run.xml', data.get_path('LahnH')) >>> pub.options.pri...
hydpy/auxs/xmltools.py
def update_options(self) -> None: """Update the |Options| object available in module |pub| with the values defined in the `options` XML element. >>> from hydpy.auxs.xmltools import XMLInterface >>> from hydpy import data, pub >>> interface = XMLInterface('single_run.xml', data.g...
def update_options(self) -> None: """Update the |Options| object available in module |pub| with the values defined in the `options` XML element. >>> from hydpy.auxs.xmltools import XMLInterface >>> from hydpy import data, pub >>> interface = XMLInterface('single_run.xml', data.g...
[ "Update", "the", "|Options|", "object", "available", "in", "module", "|pub|", "with", "the", "values", "defined", "in", "the", "options", "XML", "element", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L429-L478
[ "def", "update_options", "(", "self", ")", "->", "None", ":", "options", "=", "hydpy", ".", "pub", ".", "options", "for", "option", "in", "self", ".", "find", "(", "'options'", ")", ":", "value", "=", "option", ".", "text", "if", "value", "in", "(", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XMLInterface.update_timegrids
Update the |Timegrids| object available in module |pub| with the values defined in the `timegrid` XML element. Usually, one would prefer to define `firstdate`, `lastdate`, and `stepsize` elements as in the XML configuration file of the `LahnH` example project: >>> from hydpy.co...
hydpy/auxs/xmltools.py
def update_timegrids(self) -> None: """Update the |Timegrids| object available in module |pub| with the values defined in the `timegrid` XML element. Usually, one would prefer to define `firstdate`, `lastdate`, and `stepsize` elements as in the XML configuration file of the `Lah...
def update_timegrids(self) -> None: """Update the |Timegrids| object available in module |pub| with the values defined in the `timegrid` XML element. Usually, one would prefer to define `firstdate`, `lastdate`, and `stepsize` elements as in the XML configuration file of the `Lah...
[ "Update", "the", "|Timegrids|", "object", "available", "in", "module", "|pub|", "with", "the", "values", "defined", "in", "the", "timegrid", "XML", "element", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L480-L533
[ "def", "update_timegrids", "(", "self", ")", "->", "None", ":", "timegrid_xml", "=", "self", ".", "find", "(", "'timegrid'", ")", "try", ":", "timegrid", "=", "timetools", ".", "Timegrid", "(", "*", "(", "timegrid_xml", "[", "idx", "]", ".", "text", "f...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XMLInterface.elements
Yield all |Element| objects returned by |XMLInterface.selections| and |XMLInterface.devices| without duplicates. >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> from hydpy import HydPy, TestIO, XMLInterface >>> hp = HydPy('LahnH') ...
hydpy/auxs/xmltools.py
def elements(self) -> Iterator[devicetools.Element]: """Yield all |Element| objects returned by |XMLInterface.selections| and |XMLInterface.devices| without duplicates. >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> from hydpy import...
def elements(self) -> Iterator[devicetools.Element]: """Yield all |Element| objects returned by |XMLInterface.selections| and |XMLInterface.devices| without duplicates. >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> from hydpy import...
[ "Yield", "all", "|Element|", "objects", "returned", "by", "|XMLInterface", ".", "selections|", "and", "|XMLInterface", ".", "devices|", "without", "duplicates", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L598-L626
[ "def", "elements", "(", "self", ")", "->", "Iterator", "[", "devicetools", ".", "Element", "]", ":", "selections", "=", "copy", ".", "copy", "(", "self", ".", "selections", ")", "selections", "+=", "self", ".", "devices", "elements", "=", "set", "(", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XMLInterface.fullselection
A |Selection| object containing all |Element| and |Node| objects defined by |XMLInterface.selections| and |XMLInterface.devices|. >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> from hydpy import HydPy, TestIO, XMLInterface >>> hp = H...
hydpy/auxs/xmltools.py
def fullselection(self) -> selectiontools.Selection: """A |Selection| object containing all |Element| and |Node| objects defined by |XMLInterface.selections| and |XMLInterface.devices|. >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> ...
def fullselection(self) -> selectiontools.Selection: """A |Selection| object containing all |Element| and |Node| objects defined by |XMLInterface.selections| and |XMLInterface.devices|. >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> ...
[ "A", "|Selection|", "object", "containing", "all", "|Element|", "and", "|Node|", "objects", "defined", "by", "|XMLInterface", ".", "selections|", "and", "|XMLInterface", ".", "devices|", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L629-L652
[ "def", "fullselection", "(", "self", ")", "->", "selectiontools", ".", "Selection", ":", "fullselection", "=", "selectiontools", ".", "Selection", "(", "'fullselection'", ")", "for", "selection", "in", "self", ".", "selections", ":", "fullselection", "+=", "sele...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XMLConditions.load_conditions
Load the condition files of the |Model| objects of all |Element| objects returned by |XMLInterface.elements|: >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> from hydpy import HydPy, TestIO, XMLInterface >>> hp = HydPy('LahnH') ...
hydpy/auxs/xmltools.py
def load_conditions(self) -> None: """Load the condition files of the |Model| objects of all |Element| objects returned by |XMLInterface.elements|: >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> from hydpy import HydPy, TestIO, XMLIn...
def load_conditions(self) -> None: """Load the condition files of the |Model| objects of all |Element| objects returned by |XMLInterface.elements|: >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> from hydpy import HydPy, TestIO, XMLIn...
[ "Load", "the", "condition", "files", "of", "the", "|Model|", "objects", "of", "all", "|Element|", "objects", "returned", "by", "|XMLInterface", ".", "elements|", ":" ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L700-L724
[ "def", "load_conditions", "(", "self", ")", "->", "None", ":", "hydpy", ".", "pub", ".", "conditionmanager", ".", "currentdir", "=", "strip", "(", "self", ".", "find", "(", "'inputdir'", ")", ".", "text", ")", "for", "element", "in", "self", ".", "mast...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XMLConditions.save_conditions
Save the condition files of the |Model| objects of all |Element| objects returned by |XMLInterface.elements|: >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> import os >>> from hydpy import HydPy, TestIO, XMLInterface, pub >>>...
hydpy/auxs/xmltools.py
def save_conditions(self) -> None: """Save the condition files of the |Model| objects of all |Element| objects returned by |XMLInterface.elements|: >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> import os >>> from hydpy impor...
def save_conditions(self) -> None: """Save the condition files of the |Model| objects of all |Element| objects returned by |XMLInterface.elements|: >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> import os >>> from hydpy impor...
[ "Save", "the", "condition", "files", "of", "the", "|Model|", "objects", "of", "all", "|Element|", "objects", "returned", "by", "|XMLInterface", ".", "elements|", ":" ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L726-L756
[ "def", "save_conditions", "(", "self", ")", "->", "None", ":", "hydpy", ".", "pub", ".", "conditionmanager", ".", "currentdir", "=", "strip", "(", "self", ".", "find", "(", "'outputdir'", ")", ".", "text", ")", "for", "element", "in", "self", ".", "mas...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XMLSeries.prepare_series
Call |XMLSubseries.prepare_series| of all |XMLSubseries| objects with the same memory |set| object. >>> from hydpy.auxs.xmltools import XMLInterface, XMLSubseries >>> from hydpy import data >>> interface = XMLInterface('single_run.xml', data.get_path('LahnH')) >>> series_io = in...
hydpy/auxs/xmltools.py
def prepare_series(self) -> None: # noinspection PyUnresolvedReferences """Call |XMLSubseries.prepare_series| of all |XMLSubseries| objects with the same memory |set| object. >>> from hydpy.auxs.xmltools import XMLInterface, XMLSubseries >>> from hydpy import data >>> in...
def prepare_series(self) -> None: # noinspection PyUnresolvedReferences """Call |XMLSubseries.prepare_series| of all |XMLSubseries| objects with the same memory |set| object. >>> from hydpy.auxs.xmltools import XMLInterface, XMLSubseries >>> from hydpy import data >>> in...
[ "Call", "|XMLSubseries", ".", "prepare_series|", "of", "all", "|XMLSubseries|", "objects", "with", "the", "same", "memory", "|set|", "object", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L796-L820
[ "def", "prepare_series", "(", "self", ")", "->", "None", ":", "# noinspection PyUnresolvedReferences", "memory", "=", "set", "(", ")", "for", "output", "in", "itertools", ".", "chain", "(", "self", ".", "readers", ",", "self", ".", "writers", ")", ":", "ou...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XMLSelector.selections
The |Selections| object defined for the respective `reader` or `writer` element of the actual XML file. ToDo If the `reader` or `writer` element does not define a special selections element, the general |XMLInterface.selections| element of |XMLInterface| is used. >>> from hydpy...
hydpy/auxs/xmltools.py
def selections(self) -> selectiontools.Selections: """The |Selections| object defined for the respective `reader` or `writer` element of the actual XML file. ToDo If the `reader` or `writer` element does not define a special selections element, the general |XMLInterface.selections| elem...
def selections(self) -> selectiontools.Selections: """The |Selections| object defined for the respective `reader` or `writer` element of the actual XML file. ToDo If the `reader` or `writer` element does not define a special selections element, the general |XMLInterface.selections| elem...
[ "The", "|Selections|", "object", "defined", "for", "the", "respective", "reader", "or", "writer", "element", "of", "the", "actual", "XML", "file", ".", "ToDo" ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L842-L872
[ "def", "selections", "(", "self", ")", "->", "selectiontools", ".", "Selections", ":", "selections", "=", "self", ".", "find", "(", "'selections'", ")", "master", "=", "self", "while", "selections", "is", "None", ":", "master", "=", "master", ".", "master"...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XMLSelector.devices
The additional devices defined for the respective `reader` or `writer` element contained within a |Selection| object. ToDo If the `reader` or `writer` element does not define its own additional devices, |XMLInterface.devices| of |XMLInterface| is used. >>> from hydpy.core.examples impo...
hydpy/auxs/xmltools.py
def devices(self) -> selectiontools.Selection: """The additional devices defined for the respective `reader` or `writer` element contained within a |Selection| object. ToDo If the `reader` or `writer` element does not define its own additional devices, |XMLInterface.devices| of |XMLInte...
def devices(self) -> selectiontools.Selection: """The additional devices defined for the respective `reader` or `writer` element contained within a |Selection| object. ToDo If the `reader` or `writer` element does not define its own additional devices, |XMLInterface.devices| of |XMLInte...
[ "The", "additional", "devices", "defined", "for", "the", "respective", "reader", "or", "writer", "element", "contained", "within", "a", "|Selection|", "object", ".", "ToDo" ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L875-L904
[ "def", "devices", "(", "self", ")", "->", "selectiontools", ".", "Selection", ":", "devices", "=", "self", ".", "find", "(", "'devices'", ")", "master", "=", "self", "while", "devices", "is", "None", ":", "master", "=", "master", ".", "master", "devices"...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XMLSubseries.prepare_sequencemanager
Configure the |SequenceManager| object available in module |pub| following the definitions of the actual XML `reader` or `writer` element when available; if not use those of the XML `series_io` element. Compare the following results with `single_run.xml` to see that the first `w...
hydpy/auxs/xmltools.py
def prepare_sequencemanager(self) -> None: """Configure the |SequenceManager| object available in module |pub| following the definitions of the actual XML `reader` or `writer` element when available; if not use those of the XML `series_io` element. Compare the following results ...
def prepare_sequencemanager(self) -> None: """Configure the |SequenceManager| object available in module |pub| following the definitions of the actual XML `reader` or `writer` element when available; if not use those of the XML `series_io` element. Compare the following results ...
[ "Configure", "the", "|SequenceManager|", "object", "available", "in", "module", "|pub|", "following", "the", "definitions", "of", "the", "actual", "XML", "reader", "or", "writer", "element", "when", "available", ";", "if", "not", "use", "those", "of", "the", "...
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L973-L1041
[ "def", "prepare_sequencemanager", "(", "self", ")", "->", "None", ":", "for", "config", ",", "convert", "in", "(", "(", "'filetype'", ",", "lambda", "x", ":", "x", ")", ",", "(", "'aggregation'", ",", "lambda", "x", ":", "x", ")", ",", "(", "'overwri...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XMLSubseries.model2subs2seqs
A nested |collections.defaultdict| containing the model specific information provided by the XML `sequences` element. >>> from hydpy.auxs.xmltools import XMLInterface >>> from hydpy import data >>> interface = XMLInterface('single_run.xml', data.get_path('LahnH')) >>> series_io ...
hydpy/auxs/xmltools.py
def model2subs2seqs(self) -> Dict[str, Dict[str, List[str]]]: """A nested |collections.defaultdict| containing the model specific information provided by the XML `sequences` element. >>> from hydpy.auxs.xmltools import XMLInterface >>> from hydpy import data >>> interface = XMLI...
def model2subs2seqs(self) -> Dict[str, Dict[str, List[str]]]: """A nested |collections.defaultdict| containing the model specific information provided by the XML `sequences` element. >>> from hydpy.auxs.xmltools import XMLInterface >>> from hydpy import data >>> interface = XMLI...
[ "A", "nested", "|collections", ".", "defaultdict|", "containing", "the", "model", "specific", "information", "provided", "by", "the", "XML", "sequences", "element", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L1044-L1071
[ "def", "model2subs2seqs", "(", "self", ")", "->", "Dict", "[", "str", ",", "Dict", "[", "str", ",", "List", "[", "str", "]", "]", "]", ":", "model2subs2seqs", "=", "collections", ".", "defaultdict", "(", "lambda", ":", "collections", ".", "defaultdict", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XMLSubseries.subs2seqs
A |collections.defaultdict| containing the node-specific information provided by XML `sequences` element. >>> from hydpy.auxs.xmltools import XMLInterface >>> from hydpy import data >>> interface = XMLInterface('single_run.xml', data.get_path('LahnH')) >>> series_io = interface....
hydpy/auxs/xmltools.py
def subs2seqs(self) -> Dict[str, List[str]]: """A |collections.defaultdict| containing the node-specific information provided by XML `sequences` element. >>> from hydpy.auxs.xmltools import XMLInterface >>> from hydpy import data >>> interface = XMLInterface('single_run.xml', da...
def subs2seqs(self) -> Dict[str, List[str]]: """A |collections.defaultdict| containing the node-specific information provided by XML `sequences` element. >>> from hydpy.auxs.xmltools import XMLInterface >>> from hydpy import data >>> interface = XMLInterface('single_run.xml', da...
[ "A", "|collections", ".", "defaultdict|", "containing", "the", "node", "-", "specific", "information", "provided", "by", "XML", "sequences", "element", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L1074-L1092
[ "def", "subs2seqs", "(", "self", ")", "->", "Dict", "[", "str", ",", "List", "[", "str", "]", "]", ":", "subs2seqs", "=", "collections", ".", "defaultdict", "(", "list", ")", "nodes", "=", "find", "(", "self", ".", "find", "(", "'sequences'", ")", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XMLSubseries.prepare_series
Call |IOSequence.activate_ram| of all sequences selected by the given output element of the actual XML file. Use the memory argument to pass in already prepared sequences; newly prepared sequences will be added. >>> from hydpy.core.examples import prepare_full_example_1 >>> pre...
hydpy/auxs/xmltools.py
def prepare_series(self, memory: set) -> None: """Call |IOSequence.activate_ram| of all sequences selected by the given output element of the actual XML file. Use the memory argument to pass in already prepared sequences; newly prepared sequences will be added. >>> from hydpy.c...
def prepare_series(self, memory: set) -> None: """Call |IOSequence.activate_ram| of all sequences selected by the given output element of the actual XML file. Use the memory argument to pass in already prepared sequences; newly prepared sequences will be added. >>> from hydpy.c...
[ "Call", "|IOSequence", ".", "activate_ram|", "of", "all", "sequences", "selected", "by", "the", "given", "output", "element", "of", "the", "actual", "XML", "file", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L1114-L1153
[ "def", "prepare_series", "(", "self", ",", "memory", ":", "set", ")", "->", "None", ":", "for", "sequence", "in", "self", ".", "_iterate_sequences", "(", ")", ":", "if", "sequence", "not", "in", "memory", ":", "memory", ".", "add", "(", "sequence", ")"...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XMLSubseries.load_series
Load time series data as defined by the actual XML `reader` element. >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> from hydpy import HydPy, TestIO, XMLInterface >>> hp = HydPy('LahnH') >>> with TestIO(): ... hp.p...
hydpy/auxs/xmltools.py
def load_series(self) -> None: """Load time series data as defined by the actual XML `reader` element. >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> from hydpy import HydPy, TestIO, XMLInterface >>> hp = HydPy('LahnH') ...
def load_series(self) -> None: """Load time series data as defined by the actual XML `reader` element. >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> from hydpy import HydPy, TestIO, XMLInterface >>> hp = HydPy('LahnH') ...
[ "Load", "time", "series", "data", "as", "defined", "by", "the", "actual", "XML", "reader", "element", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L1155-L1187
[ "def", "load_series", "(", "self", ")", "->", "None", ":", "kwargs", "=", "{", "}", "for", "keyword", "in", "(", "'flattennetcdf'", ",", "'isolatenetcdf'", ",", "'timeaxisnetcdf'", ")", ":", "argument", "=", "getattr", "(", "hydpy", ".", "pub", ".", "opt...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XMLSubseries.save_series
Save time series data as defined by the actual XML `writer` element. >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> from hydpy import HydPy, TestIO, XMLInterface >>> hp = HydPy('LahnH') >>> with TestIO(): ... hp.p...
hydpy/auxs/xmltools.py
def save_series(self) -> None: """Save time series data as defined by the actual XML `writer` element. >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> from hydpy import HydPy, TestIO, XMLInterface >>> hp = HydPy('LahnH') ...
def save_series(self) -> None: """Save time series data as defined by the actual XML `writer` element. >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> from hydpy import HydPy, TestIO, XMLInterface >>> hp = HydPy('LahnH') ...
[ "Save", "time", "series", "data", "as", "defined", "by", "the", "actual", "XML", "writer", "element", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L1189-L1231
[ "def", "save_series", "(", "self", ")", "->", "None", ":", "hydpy", ".", "pub", ".", "sequencemanager", ".", "open_netcdf_writer", "(", "flatten", "=", "hydpy", ".", "pub", ".", "options", ".", "flattennetcdf", ",", "isolate", "=", "hydpy", ".", "pub", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XMLVar.item
ToDo >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> from hydpy import HydPy, TestIO, XMLInterface, pub >>> hp = HydPy('LahnH') >>> pub.timegrids = '1996-01-01', '1996-01-06', '1d' >>> with TestIO(): ... hp.prepare...
hydpy/auxs/xmltools.py
def item(self): """ ToDo >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> from hydpy import HydPy, TestIO, XMLInterface, pub >>> hp = HydPy('LahnH') >>> pub.timegrids = '1996-01-01', '1996-01-06', '1d' >>> with TestIO()...
def item(self): """ ToDo >>> from hydpy.core.examples import prepare_full_example_1 >>> prepare_full_example_1() >>> from hydpy import HydPy, TestIO, XMLInterface, pub >>> hp = HydPy('LahnH') >>> pub.timegrids = '1996-01-01', '1996-01-06', '1d' >>> with TestIO()...
[ "ToDo" ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L1396-L1516
[ "def", "item", "(", "self", ")", ":", "target", "=", "f'{self.master.name}.{self.name}'", "if", "self", ".", "master", ".", "name", "==", "'nodes'", ":", "master", "=", "self", ".", "master", ".", "name", "itemgroup", "=", "self", ".", "master", ".", "ma...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XSDWriter.write_xsd
Write the complete base schema file `HydPyConfigBase.xsd` based on the template file `HydPyConfigBase.xsdt`. Method |XSDWriter.write_xsd| adds model specific information to the general information of template file `HydPyConfigBase.xsdt` regarding reading and writing of time series data ...
hydpy/auxs/xmltools.py
def write_xsd(cls) -> None: """Write the complete base schema file `HydPyConfigBase.xsd` based on the template file `HydPyConfigBase.xsdt`. Method |XSDWriter.write_xsd| adds model specific information to the general information of template file `HydPyConfigBase.xsdt` regarding r...
def write_xsd(cls) -> None: """Write the complete base schema file `HydPyConfigBase.xsd` based on the template file `HydPyConfigBase.xsdt`. Method |XSDWriter.write_xsd| adds model specific information to the general information of template file `HydPyConfigBase.xsdt` regarding r...
[ "Write", "the", "complete", "base", "schema", "file", "HydPyConfigBase", ".", "xsd", "based", "on", "the", "template", "file", "HydPyConfigBase", ".", "xsdt", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L1556-L1591
[ "def", "write_xsd", "(", "cls", ")", "->", "None", ":", "with", "open", "(", "cls", ".", "filepath_source", ")", "as", "file_", ":", "template", "=", "file_", ".", "read", "(", ")", "template", "=", "template", ".", "replace", "(", "'<!--include model se...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XSDWriter.get_modelnames
Return a sorted |list| containing all application model names. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_modelnames()) # doctest: +ELLIPSIS [...'dam_v001', 'dam_v002', 'dam_v003', 'dam_v004', 'dam_v005',...]
hydpy/auxs/xmltools.py
def get_modelnames() -> List[str]: """Return a sorted |list| containing all application model names. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_modelnames()) # doctest: +ELLIPSIS [...'dam_v001', 'dam_v002', 'dam_v003', 'dam_v004', 'dam_v005',...] ""...
def get_modelnames() -> List[str]: """Return a sorted |list| containing all application model names. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_modelnames()) # doctest: +ELLIPSIS [...'dam_v001', 'dam_v002', 'dam_v003', 'dam_v004', 'dam_v005',...] ""...
[ "Return", "a", "sorted", "|list|", "containing", "all", "application", "model", "names", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L1594-L1603
[ "def", "get_modelnames", "(", ")", "->", "List", "[", "str", "]", ":", "return", "sorted", "(", "str", "(", "fn", ".", "split", "(", "'.'", ")", "[", "0", "]", ")", "for", "fn", "in", "os", ".", "listdir", "(", "models", ".", "__path__", "[", "...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XSDWriter.get_insertion
Return the complete string to be inserted into the string of the template file. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_insertion()) # doctest: +ELLIPSIS <element name="arma_v1" substitutionGroup="hpcb:sequenceGroup" ...
hydpy/auxs/xmltools.py
def get_insertion(cls) -> str: """Return the complete string to be inserted into the string of the template file. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_insertion()) # doctest: +ELLIPSIS <element name="arma_v1" substit...
def get_insertion(cls) -> str: """Return the complete string to be inserted into the string of the template file. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_insertion()) # doctest: +ELLIPSIS <element name="arma_v1" substit...
[ "Return", "the", "complete", "string", "to", "be", "inserted", "into", "the", "string", "of", "the", "template", "file", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L1606-L1658
[ "def", "get_insertion", "(", "cls", ")", "->", "str", ":", "indent", "=", "1", "blanks", "=", "' '", "*", "(", "indent", "+", "4", ")", "subs", "=", "[", "]", "for", "name", "in", "cls", ".", "get_modelnames", "(", ")", ":", "subs", ".", "extend"...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XSDWriter.get_modelinsertion
Return the insertion string required for the given application model. >>> from hydpy.auxs.xmltools import XSDWriter >>> from hydpy import prepare_model >>> model = prepare_model('hland_v1') >>> print(XSDWriter.get_modelinsertion(model, 1)) # doctest: +ELLIPSIS <element nam...
hydpy/auxs/xmltools.py
def get_modelinsertion(cls, model, indent) -> str: """Return the insertion string required for the given application model. >>> from hydpy.auxs.xmltools import XSDWriter >>> from hydpy import prepare_model >>> model = prepare_model('hland_v1') >>> print(XSDWriter.get_modelinsert...
def get_modelinsertion(cls, model, indent) -> str: """Return the insertion string required for the given application model. >>> from hydpy.auxs.xmltools import XSDWriter >>> from hydpy import prepare_model >>> model = prepare_model('hland_v1') >>> print(XSDWriter.get_modelinsert...
[ "Return", "the", "insertion", "string", "required", "for", "the", "given", "application", "model", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L1661-L1692
[ "def", "get_modelinsertion", "(", "cls", ",", "model", ",", "indent", ")", "->", "str", ":", "texts", "=", "[", "]", "for", "name", "in", "(", "'inputs'", ",", "'fluxes'", ",", "'states'", ")", ":", "subsequences", "=", "getattr", "(", "model", ".", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XSDWriter.get_subsequencesinsertion
Return the insertion string required for the given group of sequences. >>> from hydpy.auxs.xmltools import XSDWriter >>> from hydpy import prepare_model >>> model = prepare_model('hland_v1') >>> print(XSDWriter.get_subsequencesinsertion( ... model.sequences.fluxes, 1...
hydpy/auxs/xmltools.py
def get_subsequencesinsertion(cls, subsequences, indent) -> str: """Return the insertion string required for the given group of sequences. >>> from hydpy.auxs.xmltools import XSDWriter >>> from hydpy import prepare_model >>> model = prepare_model('hland_v1') >>> print(XS...
def get_subsequencesinsertion(cls, subsequences, indent) -> str: """Return the insertion string required for the given group of sequences. >>> from hydpy.auxs.xmltools import XSDWriter >>> from hydpy import prepare_model >>> model = prepare_model('hland_v1') >>> print(XS...
[ "Return", "the", "insertion", "string", "required", "for", "the", "given", "group", "of", "sequences", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L1695-L1733
[ "def", "get_subsequencesinsertion", "(", "cls", ",", "subsequences", ",", "indent", ")", "->", "str", ":", "blanks", "=", "' '", "*", "(", "indent", "*", "4", ")", "lines", "=", "[", "f'{blanks}<element name=\"{subsequences.name}\"'", ",", "f'{blanks} minO...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XSDWriter.get_exchangeinsertion
Return the complete string related to the definition of exchange items to be inserted into the string of the template file. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_exchangeinsertion()) # doctest: +ELLIPSIS <complexType name="arma_v1_mathitemType"> ...
hydpy/auxs/xmltools.py
def get_exchangeinsertion(cls): """Return the complete string related to the definition of exchange items to be inserted into the string of the template file. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_exchangeinsertion()) # doctest: +ELLIPSIS <...
def get_exchangeinsertion(cls): """Return the complete string related to the definition of exchange items to be inserted into the string of the template file. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_exchangeinsertion()) # doctest: +ELLIPSIS <...
[ "Return", "the", "complete", "string", "related", "to", "the", "definition", "of", "exchange", "items", "to", "be", "inserted", "into", "the", "string", "of", "the", "template", "file", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L1753-L1775
[ "def", "get_exchangeinsertion", "(", "cls", ")", ":", "indent", "=", "1", "subs", "=", "[", "cls", ".", "get_mathitemsinsertion", "(", "indent", ")", "]", "for", "groupname", "in", "(", "'setitems'", ",", "'additems'", ",", "'getitems'", ")", ":", "subs", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XSDWriter.get_mathitemsinsertion
Return a string defining a model specific XML type extending `ItemType`. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_mathitemsinsertion(1)) # doctest: +ELLIPSIS <complexType name="arma_v1_mathitemType"> <complexContent> ...
hydpy/auxs/xmltools.py
def get_mathitemsinsertion(cls, indent) -> str: """Return a string defining a model specific XML type extending `ItemType`. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_mathitemsinsertion(1)) # doctest: +ELLIPSIS <complexType name="arma_v1_mathite...
def get_mathitemsinsertion(cls, indent) -> str: """Return a string defining a model specific XML type extending `ItemType`. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_mathitemsinsertion(1)) # doctest: +ELLIPSIS <complexType name="arma_v1_mathite...
[ "Return", "a", "string", "defining", "a", "model", "specific", "XML", "type", "extending", "ItemType", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L1778-L1819
[ "def", "get_mathitemsinsertion", "(", "cls", ",", "indent", ")", "->", "str", ":", "blanks", "=", "' '", "*", "(", "indent", "*", "4", ")", "subs", "=", "[", "]", "for", "modelname", "in", "cls", ".", "get_modelnames", "(", ")", ":", "model", "=", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XSDWriter.get_itemsinsertion
Return a string defining the XML element for the given exchange item group. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_itemsinsertion( ... 'setitems', 1)) # doctest: +ELLIPSIS <element name="setitems"> <complexType> ...
hydpy/auxs/xmltools.py
def get_itemsinsertion(cls, itemgroup, indent) -> str: """Return a string defining the XML element for the given exchange item group. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_itemsinsertion( ... 'setitems', 1)) # doctest: +ELLIPSIS ...
def get_itemsinsertion(cls, itemgroup, indent) -> str: """Return a string defining the XML element for the given exchange item group. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_itemsinsertion( ... 'setitems', 1)) # doctest: +ELLIPSIS ...
[ "Return", "a", "string", "defining", "the", "XML", "element", "for", "the", "given", "exchange", "item", "group", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L1826-L1884
[ "def", "get_itemsinsertion", "(", "cls", ",", "itemgroup", ",", "indent", ")", "->", "str", ":", "blanks", "=", "' '", "*", "(", "indent", "*", "4", ")", "subs", "=", "[", "]", "subs", ".", "extend", "(", "[", "f'{blanks}<element name=\"{itemgroup}\">'", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XSDWriter.get_itemtypesinsertion
Return a string defining the required types for the given exchange item group. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_itemtypesinsertion( ... 'setitems', 1)) # doctest: +ELLIPSIS <complexType name="arma_v1_setitemsType"> ... ...
hydpy/auxs/xmltools.py
def get_itemtypesinsertion(cls, itemgroup, indent) -> str: """Return a string defining the required types for the given exchange item group. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_itemtypesinsertion( ... 'setitems', 1)) # doctest: +ELLIPSIS ...
def get_itemtypesinsertion(cls, itemgroup, indent) -> str: """Return a string defining the required types for the given exchange item group. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_itemtypesinsertion( ... 'setitems', 1)) # doctest: +ELLIPSIS ...
[ "Return", "a", "string", "defining", "the", "required", "types", "for", "the", "given", "exchange", "item", "group", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L1887-L1907
[ "def", "get_itemtypesinsertion", "(", "cls", ",", "itemgroup", ",", "indent", ")", "->", "str", ":", "subs", "=", "[", "]", "for", "modelname", "in", "cls", ".", "get_modelnames", "(", ")", ":", "subs", ".", "append", "(", "cls", ".", "get_itemtypeinsert...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XSDWriter.get_itemtypeinsertion
Return a string defining the required types for the given combination of an exchange item group and an application model. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_itemtypeinsertion( ... 'setitems', 'hland_v1', 1)) # doctest: +ELLIPSIS <com...
hydpy/auxs/xmltools.py
def get_itemtypeinsertion(cls, itemgroup, modelname, indent) -> str: """Return a string defining the required types for the given combination of an exchange item group and an application model. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_itemtypeinsertion( ...
def get_itemtypeinsertion(cls, itemgroup, modelname, indent) -> str: """Return a string defining the required types for the given combination of an exchange item group and an application model. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_itemtypeinsertion( ...
[ "Return", "a", "string", "defining", "the", "required", "types", "for", "the", "given", "combination", "of", "an", "exchange", "item", "group", "and", "an", "application", "model", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L1910-L1944
[ "def", "get_itemtypeinsertion", "(", "cls", ",", "itemgroup", ",", "modelname", ",", "indent", ")", "->", "str", ":", "blanks", "=", "' '", "*", "(", "indent", "*", "4", ")", "type_", "=", "cls", ".", "_get_itemstype", "(", "modelname", ",", "itemgroup",...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XSDWriter.get_nodesitemtypeinsertion
Return a string defining the required types for the given combination of an exchange item group and |Node| objects. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_nodesitemtypeinsertion( ... 'setitems', 1)) # doctest: +ELLIPSIS <complexType name...
hydpy/auxs/xmltools.py
def get_nodesitemtypeinsertion(cls, itemgroup, indent) -> str: """Return a string defining the required types for the given combination of an exchange item group and |Node| objects. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_nodesitemtypeinsertion( ......
def get_nodesitemtypeinsertion(cls, itemgroup, indent) -> str: """Return a string defining the required types for the given combination of an exchange item group and |Node| objects. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_nodesitemtypeinsertion( ......
[ "Return", "a", "string", "defining", "the", "required", "types", "for", "the", "given", "combination", "of", "an", "exchange", "item", "group", "and", "|Node|", "objects", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L1947-L1999
[ "def", "get_nodesitemtypeinsertion", "(", "cls", ",", "itemgroup", ",", "indent", ")", "->", "str", ":", "blanks", "=", "' '", "*", "(", "indent", "*", "4", ")", "subs", "=", "[", "f'{blanks}<complexType name=\"nodes_{itemgroup}Type\">'", ",", "f'{blanks} <sequ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XSDWriter.get_subgroupsiteminsertion
Return a string defining the required types for the given combination of an exchange item group and an application model. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_subgroupsiteminsertion( ... 'setitems', 'hland_v1', 1)) # doctest: +ELLIPSIS ...
hydpy/auxs/xmltools.py
def get_subgroupsiteminsertion(cls, itemgroup, modelname, indent) -> str: """Return a string defining the required types for the given combination of an exchange item group and an application model. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_subgroupsiteminser...
def get_subgroupsiteminsertion(cls, itemgroup, modelname, indent) -> str: """Return a string defining the required types for the given combination of an exchange item group and an application model. >>> from hydpy.auxs.xmltools import XSDWriter >>> print(XSDWriter.get_subgroupsiteminser...
[ "Return", "a", "string", "defining", "the", "required", "types", "for", "the", "given", "combination", "of", "an", "exchange", "item", "group", "and", "an", "application", "model", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L2002-L2028
[ "def", "get_subgroupsiteminsertion", "(", "cls", ",", "itemgroup", ",", "modelname", ",", "indent", ")", "->", "str", ":", "subs", "=", "[", "]", "model", "=", "importtools", ".", "prepare_model", "(", "modelname", ")", "for", "subvars", "in", "cls", ".", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
XSDWriter.get_subgroupiteminsertion
Return a string defining the required types for the given combination of an exchange item group and a specific variable subgroup of an application model or class |Node|. Note that for `setitems` and `getitems` `setitemType` and `getitemType` are referenced, respectively, and for all oth...
hydpy/auxs/xmltools.py
def get_subgroupiteminsertion( cls, itemgroup, model, subgroup, indent) -> str: """Return a string defining the required types for the given combination of an exchange item group and a specific variable subgroup of an application model or class |Node|. Note that for `setitem...
def get_subgroupiteminsertion( cls, itemgroup, model, subgroup, indent) -> str: """Return a string defining the required types for the given combination of an exchange item group and a specific variable subgroup of an application model or class |Node|. Note that for `setitem...
[ "Return", "a", "string", "defining", "the", "required", "types", "for", "the", "given", "combination", "of", "an", "exchange", "item", "group", "and", "a", "specific", "variable", "subgroup", "of", "an", "application", "model", "or", "class", "|Node|", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/auxs/xmltools.py#L2039-L2143
[ "def", "get_subgroupiteminsertion", "(", "cls", ",", "itemgroup", ",", "model", ",", "subgroup", ",", "indent", ")", "->", "str", ":", "blanks1", "=", "' '", "*", "(", "indent", "*", "4", ")", "blanks2", "=", "' '", "*", "(", "(", "indent", "+", "5",...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
BaseMask.array2mask
Create a new mask object based on the given |numpy.ndarray| and return it.
hydpy/core/masktools.py
def array2mask(cls, array=None, **kwargs): """Create a new mask object based on the given |numpy.ndarray| and return it.""" kwargs['dtype'] = bool if array is None: return numpy.ndarray.__new__(cls, 0, **kwargs) return numpy.asarray(array, **kwargs).view(cls)
def array2mask(cls, array=None, **kwargs): """Create a new mask object based on the given |numpy.ndarray| and return it.""" kwargs['dtype'] = bool if array is None: return numpy.ndarray.__new__(cls, 0, **kwargs) return numpy.asarray(array, **kwargs).view(cls)
[ "Create", "a", "new", "mask", "object", "based", "on", "the", "given", "|numpy", ".", "ndarray|", "and", "return", "it", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/masktools.py#L37-L43
[ "def", "array2mask", "(", "cls", ",", "array", "=", "None", ",", "*", "*", "kwargs", ")", ":", "kwargs", "[", "'dtype'", "]", "=", "bool", "if", "array", "is", "None", ":", "return", "numpy", ".", "ndarray", ".", "__new__", "(", "cls", ",", "0", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
DefaultMask.new
Return a new |DefaultMask| object associated with the given |Variable| object.
hydpy/core/masktools.py
def new(cls, variable, **kwargs): """Return a new |DefaultMask| object associated with the given |Variable| object.""" return cls.array2mask(numpy.full(variable.shape, True))
def new(cls, variable, **kwargs): """Return a new |DefaultMask| object associated with the given |Variable| object.""" return cls.array2mask(numpy.full(variable.shape, True))
[ "Return", "a", "new", "|DefaultMask|", "object", "associated", "with", "the", "given", "|Variable|", "object", "." ]
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/masktools.py#L149-L152
[ "def", "new", "(", "cls", ",", "variable", ",", "*", "*", "kwargs", ")", ":", "return", "cls", ".", "array2mask", "(", "numpy", ".", "full", "(", "variable", ".", "shape", ",", "True", ")", ")" ]
1bc6a82cf30786521d86b36e27900c6717d3348d
train
IndexMask.new
Return a new |IndexMask| object of the same shape as the parameter referenced by |property| |IndexMask.refindices|. Entries are only |True|, if the integer values of the respective entries of the referenced parameter are contained in the |IndexMask| class attribute tuple `RELEVANT_VALUES...
hydpy/core/masktools.py
def new(cls, variable, **kwargs): """Return a new |IndexMask| object of the same shape as the parameter referenced by |property| |IndexMask.refindices|. Entries are only |True|, if the integer values of the respective entries of the referenced parameter are contained in the |Inde...
def new(cls, variable, **kwargs): """Return a new |IndexMask| object of the same shape as the parameter referenced by |property| |IndexMask.refindices|. Entries are only |True|, if the integer values of the respective entries of the referenced parameter are contained in the |Inde...
[ "Return", "a", "new", "|IndexMask|", "object", "of", "the", "same", "shape", "as", "the", "parameter", "referenced", "by", "|property|", "|IndexMask", ".", "refindices|", ".", "Entries", "are", "only", "|True|", "if", "the", "integer", "values", "of", "the", ...
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/masktools.py#L169-L186
[ "def", "new", "(", "cls", ",", "variable", ",", "*", "*", "kwargs", ")", ":", "indices", "=", "cls", ".", "get_refindices", "(", "variable", ")", "if", "numpy", ".", "min", "(", "getattr", "(", "indices", ",", "'values'", ",", "0", ")", ")", "<", ...
1bc6a82cf30786521d86b36e27900c6717d3348d
train
IndexMask.relevantindices
A |list| of all currently relevant indices, calculated as an intercection of the (constant) class attribute `RELEVANT_VALUES` and the (variable) property |IndexMask.refindices|.
hydpy/core/masktools.py
def relevantindices(self) -> List[int]: """A |list| of all currently relevant indices, calculated as an intercection of the (constant) class attribute `RELEVANT_VALUES` and the (variable) property |IndexMask.refindices|.""" return [idx for idx in numpy.unique(self.refindices.values) ...
def relevantindices(self) -> List[int]: """A |list| of all currently relevant indices, calculated as an intercection of the (constant) class attribute `RELEVANT_VALUES` and the (variable) property |IndexMask.refindices|.""" return [idx for idx in numpy.unique(self.refindices.values) ...
[ "A", "|list|", "of", "all", "currently", "relevant", "indices", "calculated", "as", "an", "intercection", "of", "the", "(", "constant", ")", "class", "attribute", "RELEVANT_VALUES", "and", "the", "(", "variable", ")", "property", "|IndexMask", ".", "refindices|"...
hydpy-dev/hydpy
python
https://github.com/hydpy-dev/hydpy/blob/1bc6a82cf30786521d86b36e27900c6717d3348d/hydpy/core/masktools.py#L220-L225
[ "def", "relevantindices", "(", "self", ")", "->", "List", "[", "int", "]", ":", "return", "[", "idx", "for", "idx", "in", "numpy", ".", "unique", "(", "self", ".", "refindices", ".", "values", ")", "if", "idx", "in", "self", ".", "RELEVANT_VALUES", "...
1bc6a82cf30786521d86b36e27900c6717d3348d