Skip to content

Commit

Permalink
Merge pull request #14 from Kenneth-T-Moore/issue_587
Browse files Browse the repository at this point in the history
Workaround for problem with the reports subsystem's interaction with …
  • Loading branch information
jkirk5 authored Jan 7, 2025
2 parents 84571f1 + f6f859c commit 6747dd2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions aviary/interface/methods_for_level1.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def run_level_1(
prob = run_aviary(input_deck, phase_info, **kwargs)

# update n2 diagram after run.
outdir = Path(prob.get_reports_dir())
outdir = Path(prob.get_reports_dir(force=True))
outfile = os.path.join(outdir, "n2.html")
om.n2(
prob,
Expand All @@ -156,7 +156,6 @@ def run_level_1(


def _setup_level1_parser(parser):
def_outdir = os.path.join(os.getcwd(), "output")
parser.add_argument(
'input_deck',
metavar='indeck',
Expand Down
6 changes: 0 additions & 6 deletions aviary/interface/test/test_cmd_entry_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ def bench_test_IPOPT_cmd(self):
cmd = 'aviary run_mission models/test_aircraft/aircraft_for_bench_GwGm.csv --optimizer IPOPT --max_iter 1'
self.run_and_test_cmd(cmd)

@require_pyoptsparse(optimizer="IPOPT")
def bench_test_IPOPT_cmd(self):
cmd = 'aviary run_mission models/test_aircraft/aircraft_for_bench_GwGm.csv' \
' --optimizer IPOPT --max_iter 1 --shooting'
self.run_and_test_cmd(cmd)

@require_pyoptsparse(optimizer="IPOPT")
def bench_test_phase_info_cmd(self):
cmd = 'aviary run_mission models/test_aircraft/aircraft_for_bench_GwGm.csv --optimizer IPOPT --max_iter 1' \
Expand Down

0 comments on commit 6747dd2

Please sign in to comment.