A new file commons.py makes the parts of flixOpt that are meant to be used by the end user available.
The new recommended usage of flixOpt is:
import flixOpt as fx
fx.Bus()
fx.Effect()
Through this, all relevant parts of flixOpt are type hinted after the 'fx.'
This should greatly improve the first hours of using the package.
The new Syntax can be seen in the updated simple_example.py.
Other Changes:
Changed absolute imports to relative imports throughout the package
Streamlining the Imports in flixOpt
flixOpt commons and the use of an alias
A new file commons.py makes the parts of flixOpt that are meant to be used by the end user available. The new recommended usage of flixOpt is:
Through this, all relevant parts of flixOpt are type hinted after the 'fx.' This should greatly improve the first hours of using the package. The new Syntax can be seen in the updated simple_example.py.
Other Changes:
Contributor
Felix Bumann