-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path_options.py
30 lines (19 loc) · 1.11 KB
/
_options.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import os
from openmdao.api import OptionsDictionary
options = OptionsDictionary()
_env_check_partials = os.environ.get('DYMOS_CHECK_PARTIALS', '0')
_icp_default = _env_check_partials.lower() in ('1', 'yes', 'true')
def _removed_option(name, value):
if value is not None:
raise ValueError(f'Option {name} has been replaced by '
'Phase.timeseries_options["use_prefix"].')
options.declare('include_check_partials', default=_icp_default, types=bool,
desc='If True, include dymos components when checking partials.')
options.declare('plots', default='bokeh', values=['matplotlib', 'bokeh'],
desc='The plot library used to generate output plots for Dymos.')
options.declare('notebook_mode', default=False, types=bool,
desc='If True, provide notebook-enhanced plots and outputs.')
options.declare('use_timeseries_prefix', default=None, allow_none=True,
check_valid=_removed_option,
desc='Note: This option is no longer valid and has been '
'replaced by Phase.timeseries_options["use_prefix"].')