mdolab / openconcept

OpenConcept: A toolkit for conceptual MDAO of aircraft with unconventional propulsion architectures
MIT License
36 stars 32 forks source link

Trajectory linkage broken after OpenMDAO 3.4 update #23

Closed 12libao closed 2 years ago

12libao commented 4 years ago

Hi,

I'm a Ph.D. student working at Prof. Kennedy's group at Georgia Tech. I'm doing research about electric propulsion aircraft and using the OpenConcept library. I meet some issues when running the examples TBM850.py, and the issue shows below:

(File "/Users/libao/git/openconcept/openconcept/analysis/trajectories.py", line 14, in find_integrators_in_model next_namespace = subsys.name AttributeError: 'str' object has no attribute 'name')

I try to switch my interpreter from python 3.8.3 to python 2.7, the issue still exists. By the way, the OpenMDAO version I used is 3.4.1. I attached a screenshot of my terminal for the issue in case you want to have a look.

截屏2020-10-16 下午1 50 34

Thank you, Bao Li

bbrelje commented 4 years ago

Hi Bao,

It looks like OpenMDAO updates have changed a private API I've been using under the hood. Try rolling back to OpenMDAO 3.2.1 and see if that fixes the problem (it should). It will probably be a while before I do the fix for OpenMDAO 3.4+

Cheers, Ben

12libao commented 4 years ago

Hi Bao,

It looks like OpenMDAO updates have changed a private API I've been using under the hood. Try rolling back to OpenMDAO 3.2.1 and see if that fixes the problem (it should). It will probably be a while before I do the fix for OpenMDAO 3.4+

Cheers, Ben

Hi Ben,

It works now when I rolling back to OpenMDAO 3.2.1. Thank you for your help!

Stay safe and well, Bao

pine71 commented 3 years ago

Same issue having OpenMDAO 3.11 installed.. I confirm that rolling back to OpenMDAO version 3.2.1 it works on TBM850 example