Multiple different methods in SubsystemBuilderBase could be properties to simplify their use. This is backwards incompatible though generally worthwhile; could deprecate the existing methods.
@property
def get_mass_names(self):
so it can be accessed as BatteryBuilder.get_mass_names instead of BatteryBuilder.get_mass_names(), since no arguments are used
Multiple different methods in
SubsystemBuilderBase
could be properties to simplify their use. This is backwards incompatible though generally worthwhile; could deprecate the existing methods.so it can be accessed as
BatteryBuilder.get_mass_names
instead ofBatteryBuilder.get_mass_names()
, since no arguments are used_Originally posted by @crecine in https://github.com/OpenMDAO/Aviary/pull/317#discussion_r1651562417_