Skip to content

Commit

Permalink
removed duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
jkirk5 committed Feb 15, 2024
1 parent 951888c commit a97264d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions aviary/interface/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,6 @@ def _get_phase_diff(traj, phase, var_name, units, indices=[0, -1]):
fuel_burn = _get_phase_diff('traj', phase, 'mass', 'lbm', [-1, 0])
time = _get_phase_diff('traj', phase, 't', 'min')
range = _get_phase_diff('traj', phase, 'distance', 'nmi')
# both "distance" and "range" currently exist to track ground distance, logic
# here accounts for that
if range is None:
range = _get_phase_diff('traj', phase, 'distance', 'nmi')

# get initial values, first in traj
if idx == 0:
Expand Down

0 comments on commit a97264d

Please sign in to comment.