Quick definition of an optional parameter variable #24
Loading…
Reference in a new issue
No description provided.
Delete branch "optional_parameter_in_variable"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
cf5cf58d73
to2c70cf4a84
The tests concerning this feature are:
and are passing.
We should consider the fact that in the
src/rougail/tiramisureflector.py
file all the calls of thepopulate_calculation()
function should be framed by the same exception management procedure.@ -82,0 +85,4 @@
class VariableCalculationDependencyError(Exception):
"""When an 'optional=true' attribute is set, and
the target variable doesn't exists.
"""
This comment should be more generic, maybe in future we will use it for a new attribute.
@ -352,0 +351,4 @@
if self.optional:
msg = f'the dependent variable was not found "{self.optional}" for variable "{self.path}"'
raise VariableCalculationDependencyError(msg, 90, self.xmlfiles)
else:
"else" is not useful here, we raises in the condition.
@ -0,0 +1,13 @@
version: 1.1
"---" missing
@ -0,0 +1,13 @@
version: 1.1
"---" missing
@ -0,0 +1,13 @@
version: 1.1
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
@ -0,0 +1,13 @@
version: 1.1
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
@ -0,0 +1,13 @@
version: 1.1
"---" missing
@ -0,0 +1,13 @@
version: 1.1
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
@ -0,0 +1,13 @@
version: 1.1
"---" missing
@ -0,0 +1,13 @@
version: 1.1
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
@ -0,0 +1,13 @@
version: 1.1
"---" missing
@ -0,0 +1,13 @@
version: 1.1
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
@ -0,0 +1,13 @@
version: 1.1
"---" missing
@ -0,0 +1,13 @@
version: 1.1
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
@ -0,0 +1,13 @@
version: 1.1
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
"---" missing
@ -0,0 +1,13 @@
version: 1.1
my_variable:
"---" missing
WIP: Quick definition of an optional parameter variableto Quick definition of an optional parameter variable92cac379e0
to0c02807775
eeee06ad92
toac56aea5f1