peterdsharpe / AeroSandbox

Aircraft design optimization made fast through modern automatic differentiation. Composable analysis tools for aerodynamics, propulsion, structures, trajectory design, and much more.
https://peterdsharpe.github.io/AeroSandbox/
MIT License
690 stars 111 forks source link

Error Running vlm3_conventional.py #29

Closed StepLogic closed 4 years ago

StepLogic commented 4 years ago

Traceback (most recent call last): File "C:/Users/Gyaase Elvis/Anaconda3/envs/cpacscreator/Lib/site-packages/aerosandbox_legacy_v0/examples_legacy_v0/vlm3_conventional.py", line 19, in control_surface_hinge_point=0.75 # as chord fraction TypeError: init() got an unexpected keyword argument 'xyz_le'

I get the above error when i run the file, any help?

peterdsharpe commented 4 years ago

Hey @StepLogic , thanks for the issue ticket!

Successfully reproducing the error over here. Seems like I made a mistake in the imports when doing the version upgrade - try replacing the first line of vlm3_conventional as follows:

from aerosandbox import * -> from aerosandbox_legacy_v0 import *

Sorry about that, Peter

peterdsharpe commented 4 years ago

Other notes: you may find you need to pip-install the autograd and pyvista packages, if you don't have them already! These aren't needed for v1+, but they are needed for v0.