-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Labels
code cleanupCode cleanup, refactoring, or similar helpful reorganizationCode cleanup, refactoring, or similar helpful reorganizationhelp wantedExtra attention is neededExtra attention is needed
Description
Desired capability or behavior.
Refactor behavior of AviaryValues to take default metadata, which will avoid the need to set metadata explicitly.
Courtesy of @dlcaldwelljr-ama-inc:
aviary_options = AviaryValues() # avoid a meta_data kwarg here; AviaryValues uses kwargs like dict uses them
aviary_options.meta_data = MyMetaData # internal default would be core meta data
aviary_options.set_val(key, val, units) # default meta data is reference found at self.meta_data
aviary_options.set_val(key, val, units, meta_data=OtherMetaData) # use explicitly specified meta data
Is your feature request related to a problem? Please describe.
No response
Associated Bug Report
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
code cleanupCode cleanup, refactoring, or similar helpful reorganizationCode cleanup, refactoring, or similar helpful reorganizationhelp wantedExtra attention is neededExtra attention is needed