Rapid-Design-of-Systems-Laboratory / beluga

General purpose indirect trajectory optimization
Other
25 stars 6 forks source link

Use Pint to automatically perform dimensional operations #219

Open SeanMatthewNolan opened 4 years ago

SeanMatthewNolan commented 4 years ago

Pint (https://pint.readthedocs.io/en/0.9/index.html) seems to have the functionality to automatically find units for expressions based off the units for states, parameters, constants, etc. Doing this will make it easier for the user as well as guaranteeing dimensional consistency.

msparapa commented 4 years ago

Awesome! I know that I had a lot of trouble finding out what units would come out as when doing reduction, hopefully this will make it easier to determine units based on the result as opposed to the process.