Add default metadata to AviaryValues

Open
#382 3 comments 0 reactions 2 assignees View on GitHub

@Kenneth-T-Moore is already working on this.

Since Feb 11, 2026.

Assessment

This issue has not been assessed yet.

Description

code cleanup
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

Dominant language
Python
Stars
287
Forks
140
Avg merge
6d 14h
Merged PRs (30d)
18

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenMDAO/Aviary

All issues in OpenMDAO/Aviary

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.