You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above is the normal form but a user can also write a shortcut of the form
ABC%USE_XYZ = True
which will also be read correctly (I do not think we have a mechanism to write in this shortcut form).
A problem arises when we need to read a parameter from another module. Currently if we use call openParameterBlock() the doc file gets a %block inserted which would then be out of place. I thought that
would work but it is looking for lines with MLE%USE_XYZ and not seeing the non-shortcut form. It seems we need to either
add do_not_log= to openParameterBlock(); or
extend get_param() to parse the MLE% (this seems ugly to me); or
add a block='MLE' optional argument to get_param() which would silently look inside the block.
The last option seems best to me because we could then also check that we have no "%" characters in parameter names.
Summary:
Current bug is that call get_param(..., "ABC%USE_XYZ", ...) does not work as expected.
Enhancement suggestion is to catch this and provide a mechanism to read a parameter from outside of the declared block.
The text was updated successfully, but these errors were encountered:
The code
correctly generates and reads parameters formatted as
The above is the normal form but a user can also write a shortcut of the form
which will also be read correctly (I do not think we have a mechanism to write in this shortcut form).
A problem arises when we need to read a parameter from another module. Currently if we use
call openParameterBlock()
the doc file gets a %block inserted which would then be out of place. I thought thatwould work but it is looking for lines with
MLE%USE_XYZ
and not seeing the non-shortcut form. It seems we need to eitherdo_not_log=
toopenParameterBlock()
; orget_param()
to parse theMLE%
(this seems ugly to me); orblock='MLE'
optional argument toget_param()
which would silently look inside the block.The last option seems best to me because we could then also check that we have no "%" characters in parameter names.
Summary:
call get_param(..., "ABC%USE_XYZ", ...)
does not work as expected.The text was updated successfully, but these errors were encountered: