NREL / altrios

https://nrel.github.io/altrios/
Other
15 stars 2 forks source link

various cleanup things #13

Closed calbaker closed 8 months ago

calbaker commented 8 months ago

Changes

Python API foundation for cleaner API

These code blocks enable passing in enum variants (that have identically named structs) from Python. None of this code has been tested because there are no constructor methods for ConvnentionalLoco, HybridLoco, etc in Python -- I plan to fix this but not with any significant urgency. However, because this is Rust and compiles, then in probably works as expected.