Skip to content

Commit

Permalink
Fix deprecated CaseReader call
Browse files Browse the repository at this point in the history
  • Loading branch information
eytanadler committed May 9, 2023
1 parent dcdb76b commit b8d0974
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion openaerostruct/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.6.0"
__version__ = "2.6.1"
11 changes: 6 additions & 5 deletions openaerostruct/utils/plot_wing.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ def load_db(self):
names = []

# Aero or aerostructural
for key in cr.system_options.keys():
sys_options = cr.list_model_options(out_stream=None)
for key in sys_options.keys():
try:
surfaces = cr.system_options[key]["component_options"]["surfaces"]
surfaces = sys_options[key]["surfaces"]
for surface in surfaces:
names.append(surface["name"])
break
Expand All @@ -93,9 +94,9 @@ def load_db(self):

# Structural-only
if not names:
for key in cr.system_options.keys():
for key in sys_options.keys():
try:
surface = cr.system_options[key]["component_options"]["surface"]
surface = sys_options[key]["surface"]
names = [surface["name"]]
except KeyError:
pass
Expand Down Expand Up @@ -239,7 +240,7 @@ def load_db(self):

if self.show_tube:
for name in names:
surface = cr.system_options[name]["component_options"]["surface"]
surface = sys_options[name]["surface"]
self.yield_stress_dict[name + "_yield_stress"] = surface["yield"]
self.fem_origin_dict[name + "_fem_origin"] = surface["fem_origin"]

Expand Down

0 comments on commit b8d0974

Please sign in to comment.