dymos icon indicating copy to clipboard operation
dymos copied to clipboard

Optionally allow user to remove variable type prefixes in timeseries outputs.

Open robfalck opened this issue 1 year ago • 0 comments

Issue Type

  • [ ] Bug
  • [x] Enhancement
  • [ ] Docs
  • [ ] Miscellaneous

Description

A few users have noted that switching the type of a control applied to an input in the ODE (control, polynomial control, parameter) also changes the name associated with the variable in the timeseries outputs. As part of an overall timeseries output refactor, dymos should allow the user to disable this prefix, but we will leave it in place by default for now for backward compatibility.

Example

This option should be added to the overall dymos options:

from dymos.options import options as dymos_options
dymos_options['verbose_timeseries_names'] = False

would change the default behavior such that variables, for instance:

traj.phase0.timeseries.states:x -> traj.phase0.timeseries.x traj.phase0.timeseries.controls:u -> traj.phase0.timeseries.u traj.phase0.timeseries.parameters:m -> traj.phase0.timeseries.m

Environment

N/A

robfalck avatar Jul 11 '22 12:07 robfalck