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 TankGeometry class has the input parameter radius which is not saved on its __init__ as it is part of the standard of other rocketpy classes and assumed by StochasticModels.
To complicate matters, the class has a property with the name radius which is a Function of the input parameter of the same name (i.e. the input parameter per se is not saved, but its Function is a property).
Some Possible Solution Paths
The following approaches may be considered:
Changing the input parameter: differentiating the property and the input parameter by changing the latter name is possible while keeping breaking changes at minimum, I believe:
Input parameter radius could be changed to radius_function;
Allow for **kwargs and allow the key radius so as to keep compatibility.
Changing the property's name: an alternative is to change the property's name. I find this solution harder to execute without breaking changes.
The text was updated successfully, but these errors were encountered:
Description of the Issue
The
TankGeometry
class has the input parameterradius
which is not saved on its__init__
as it is part of the standard of otherrocketpy
classes and assumed byStochasticModels
.To complicate matters, the class has a property with the name
radius
which is aFunction
of the input parameter of the same name (i.e. the input parameter per se is not saved, but itsFunction
is a property).Some Possible Solution Paths
The following approaches may be considered:
Changing the input parameter: differentiating the property and the input parameter by changing the latter name is possible while keeping breaking changes at minimum, I believe:
radius
could be changed toradius_function
;**kwargs
and allow the keyradius
so as to keep compatibility.Changing the property's name: an alternative is to change the property's name. I find this solution harder to execute without breaking changes.
The text was updated successfully, but these errors were encountered: