oemof / oemof-tabular

Load oemof energy systems from tabular data sources.
https://oemof-tabular.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
7 stars 5 forks source link

Fix ImportError by not importing aggregation when importing datapackage #49

Closed jnnr closed 2 years ago

jnnr commented 2 years ago

When importing oemof.tabular.datapackage, aggregation is imported via datapackage/init.py, which gives an ImportError when the extra requirement "tsam" is not installed. Aggregation should only be imported when imported explicitly.

Fixes a failing test in https://github.com/rl-institut/oemoflex/pull/74