diff --git a/aviary/examples/level2_shooting_traj.py b/aviary/examples/level2_shooting_traj.py index 97a1eb8c9..9967b0fa1 100644 --- a/aviary/examples/level2_shooting_traj.py +++ b/aviary/examples/level2_shooting_traj.py @@ -61,8 +61,8 @@ def run_aviary(aircraft_filename, phase_info, optimizer=None, analysis_scheme=An ), ) cruise_vals = { - 'mach': {'val': prob.cruise_mach, 'units': cruise_kwargs['input_speed_units']}, - 'distance_trigger': {'val': 300, 'units': 'NM'}, + 'mach': (prob.cruise_mach, cruise_kwargs['input_speed_units']), + 'distance_trigger': (300, 'NM'), } descent1_kwargs = dict( @@ -75,9 +75,9 @@ def run_aviary(aircraft_filename, phase_info, optimizer=None, analysis_scheme=An ), ) descent1_vals = { - 'alt_trigger': {'val': 10000, 'units': 'ft'}, - 'mach': {'val': prob.cruise_mach, 'units': None}, - 'speed_trigger': {'val': 350, 'units': 'kn'}} + 'alt_trigger': (10000, 'ft'), + 'mach': (prob.cruise_mach, None), + 'speed_trigger': (350, 'kn')} phases = { **ascent_phases, diff --git a/aviary/interface/methods_for_level2.py b/aviary/interface/methods_for_level2.py index 5ee45a726..35e2a6bee 100644 --- a/aviary/interface/methods_for_level2.py +++ b/aviary/interface/methods_for_level2.py @@ -1044,8 +1044,7 @@ def add_phases(self, phase_info_parameterization=None): # based on reserve_fuel estimated_descent_fuel = descent_estimation['refined_guess']['fuel_burned'] - cruise_options['descent_fuel'] = { - 'val': estimated_descent_fuel, 'units': 'lbm'} + cruise_options['descent_fuel'] = (estimated_descent_fuel, 'lbm') full_traj = FlexibleTraj( Phases=self.phase_info, diff --git a/aviary/mission/gasp_based/phases/time_integration_traj.py b/aviary/mission/gasp_based/phases/time_integration_traj.py index a4b3a3a3b..976180e7c 100644 --- a/aviary/mission/gasp_based/phases/time_integration_traj.py +++ b/aviary/mission/gasp_based/phases/time_integration_traj.py @@ -60,6 +60,7 @@ def compute(self, inputs, outputs): vals_to_set = self.options['Phases'][phase_name]['user_options'] if vals_to_set: for name, data in vals_to_set.items(): + print(data) var, units = data if name.startswith('attr:'): new_val = (