|
1 | 1 | """A template repository for a Python package created by Catalyst Cooperative.""" |
2 | 2 | import logging |
3 | | -from importlib.metadata import PackageNotFoundError, version |
| 3 | + |
| 4 | +__author__ = "RMI" |
| 5 | + |
| 6 | +__maintainer__ = "Alex Engel" |
| 7 | +__license__ = "BSD 3-Clause License" |
| 8 | +__maintainer_email__ = "[email protected]" |
| 9 | +__docformat__ = "restructuredtext en" |
| 10 | +__description__ = "A simple and efficient dispatch model." |
| 11 | + |
| 12 | +try: |
| 13 | + from dispatch._version import version as __version__ |
| 14 | +except ImportError: |
| 15 | + __version__ = "unknown" |
| 16 | + |
| 17 | +# try: |
| 18 | +# __version__ = version("rmi.dispatch") |
| 19 | +# except PackageNotFoundError: |
| 20 | +# # package is not installed |
| 21 | +# pass |
4 | 22 |
|
5 | 23 | from dispatch.engine import dispatch_engine, dispatch_engine_compiled |
6 | | -from dispatch.helpers import apply_op_ret_date, copy_profile |
| 24 | +from dispatch.helpers import apply_op_ret_date, copy_profile, dfs_from_zip, dfs_to_zip |
7 | 25 | from dispatch.model import DispatchModel |
8 | 26 |
|
9 | 27 | __all__ = [ |
|
12 | 30 | "dispatch_engine_compiled", |
13 | 31 | "copy_profile", |
14 | 32 | "apply_op_ret_date", |
| 33 | + "dfs_to_zip", |
| 34 | + "dfs_from_zip", |
| 35 | + "__version__", |
15 | 36 | ] |
16 | 37 |
|
17 | | -__author__ = "RMI" |
18 | | - |
19 | | -__maintainer__ = "Alex Engel" |
20 | | -__license__ = "BSD 3-Clause License" |
21 | | -__maintainer_email__ = "[email protected]" |
22 | | -__docformat__ = "restructuredtext en" |
23 | | -__description__ = "A simple and efficient dispatch model." |
24 | | - |
25 | | -try: |
26 | | - __version__ = version("rmi.dispatch") |
27 | | -except PackageNotFoundError: |
28 | | - # package is not installed |
29 | | - pass |
30 | | - |
31 | 38 | __projecturl__ = "https://github.com/rmi-electricity/dispatch" |
32 | 39 | __downloadurl__ = "https://github.com/rmi-electricity/dispatch" |
33 | 40 |
|
|
0 commit comments