convexengineering / SPaircraft

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

Disable units for a specific set of constraints #33

Closed mayork closed 7 years ago

mayork commented 7 years ago

@bqpd is there a way to disable units for a specific set of constraints? Something like

with units.disable():
     constraints with units disabled

This would be useful for some fitted equations in TASOPT where the units get whacky and also when using constraints from gpfit. All I could find on read the docs was how to disable units for a particular instance of gpkit

mayork commented 7 years ago

disregard found a better way than disabling units