RingParameters default #481
Replies: 5 comments 3 replies
-
the same would be useful for the output of linopt |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Not sure it's the best way to deal with the problem. I would rather through an exception in case of failure and deal with the exception in the calling function… |
Beta Was this translation helpful? Give feedback.
-
Dear @lfarv, this is exactly what I do. The dealing of the exception is to assign nan parameters structures as above. I build them myself, but I think it could be useful in other contexts. |
Beta Was this translation helpful? Give feedback.
-
below an example of code to compute betabeating and do not stop but continue with nan output
|
Beta Was this translation helpful? Give feedback.
-
I am looping several ouputs of
envelope_parameters()
in order to extract data for an historgram.For the cases where the function
envelope_parameters()
failed I have set to None the output.This choice was rather inconvenient. I would make much better use of a RingParameters() class instance with None or np.nan for every field that was not computed.
Is this possible?
I tried to simply instantiate
rp = RingParameters()
but this gives a class instance with only the private property_props
An example of my desired output:
... for all parameters that may be computed by
envelope_parameters()
orradiation_parameters()
I would need no change of
envelope_parameters()
orradiation_parameters()
. Simply a way to instantiate an empty parameters structure.Beta Was this translation helpful? Give feedback.
All reactions