OpenMDAO / dymos

Open Source Optimization of Dynamic Multidisciplinary Systems
Apache License 2.0
208 stars 66 forks source link

Explicitly specifying a parameter shape of None (to be determined via introspection) fails. #971

Closed robfalck closed 1 year ago

robfalck commented 1 year ago

Description

The previous parameter introspection update causes a failure when the user gives the shape of a parameter as None. In this case, dymos will use introspection to determine the shape, but the ParameterOptionsDictionary isn't allowing that as a valid value.

Example

add_parameter('g', shape=None, val=9.81, units='m/s**2') will now fail.

Dymos Version

1.8.1-dev

Relevant environment information

No response

robfalck commented 1 year ago

Closed by #970