Replies: 1 comment 1 reply
-
|
Additionally, the property reader uses Lines 118 to 120 in e91f4ad which ... well I'll let the docs speak to why this feels not great to me
|
Beta Was this translation helpful? Give feedback.
-
|
Additionally, the property reader uses Lines 118 to 120 in e91f4ad which ... well I'll let the docs speak to why this feels not great to me
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Working with some cases lately and some workflows embed real, meaningful value in the
Case.independentVariablesdictionary. Simulations may rely on these data to make some modeling changes that can't be meaningfully captured in the "real" settings (the point here is not whether that is good/bad, just that it is done)During runtime, you don't really have
Caseobject. You just have anOperatorwith some settings. Workflows that need to extract then that meaningful data need to accesso.cs["independentVariables"]and you are greeted with a really weird (to me) data structure. You don't have a map ofvariable -> value, you have a list of tuples ofreprcalls. One for the variable name, one for the value likeTo get the value of
param_a, I would expect that I could docs["independentVariables"]["param_a"]. But, because of this logicarmi/armi/cases/case.py
Lines 699 to 702 in e91f4ad
Workflows need to rebuild each key/value pair.
Why? What is the value of these
repr-ized representations? These seems to be in public ARMI since ever so maybe there's a good historical reason?Beta Was this translation helpful? Give feedback.
All reactions