convexengineering / SPaircraft

Models for commercial aircraft design
http://spaircraft.readthedocs.org
25 stars 17 forks source link

TypeError: 'FlightState' object cannot be interpreted as an integer #140

Open zahsmile opened 2 years ago

zahsmile commented 2 years ago

**"/Users/xxxx/opt/anaconda3/lib/python3.9/site-packages/gpkit/nomials/variables.py", line 158, in new vl = np.empty(shape, dtype="object")

TypeError: 'FlightState' object cannot be interpreted as an integer.**

How do I solve this?

Please and thank you!

bqpd commented 2 years ago

That's a strange error! Can you give the code that generates it? From just that my guess would be a vector variable initialization that accidentally is putting a FlightState object as the first argument

On Thu, May 5, 2022, 11:13 zahsmile @.***> wrote:

*"/Users/xxxx/opt/anaconda3/lib/python3.9/site-packages/gpkit/nomials/variables.py", line 158, in new* vl = np.empty(shape, dtype="object")

TypeError: 'FlightState' object cannot be interpreted as an integer.**

How do I solve this?

Please and thank you!

— Reply to this email directly, view it on GitHub https://github.com/convexengineering/SPaircraft/issues/140, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALKAGDNCGB44B7OAJMAIYTVIQES3ANCNFSM5VF2X24Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>

zahsmile commented 2 years ago

Can you help with this? I am not sure where to start with your explanation.