pandahub 0.3.15__zip → 0.3.16__zip
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pandahub-0.3.15 → pandahub-0.3.16}/PKG-INFO +1 -1
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/lib/PandaHub.py +5 -2
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub.egg-info/PKG-INFO +1 -1
- {pandahub-0.3.15 → pandahub-0.3.16}/pyproject.toml +1 -1
- {pandahub-0.3.15 → pandahub-0.3.16}/CHANGELOG.md +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/CONTRIBUTING.rst +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/LICENSE +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/MANIFEST.in +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/README.md +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/__init__.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/api/__init__.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/api/dependencies.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/api/internal/__init__.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/api/internal/db.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/api/internal/schemas.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/api/internal/settings.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/api/internal/toolbox.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/api/internal/users.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/api/main.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/api/routers/__init__.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/api/routers/auth.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/api/routers/net.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/api/routers/projects.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/api/routers/timeseries.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/api/routers/users.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/api/routers/variants.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/lib/__init__.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/lib/database_toolbox.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/lib/datatypes.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/lib/mongodb_indexes.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/lib/timeseries/__init__.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/lib/timeseries/data_sources/__init__.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/lib/timeseries/data_sources/mongo_data.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub/lib/timeseries/output_writer_mongodb.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub.egg-info/SOURCES.txt +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub.egg-info/dependency_links.txt +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub.egg-info/requires.txt +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/pandahub.egg-info/top_level.txt +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/requirements.txt +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/setup.cfg +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/setup.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/test/__init__.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/test/conftest.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/test/performance_test.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/test/test_client.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/test/test_networks.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/test/test_projects.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/test/test_timeseries.py +0 -0
- {pandahub-0.3.15 → pandahub-0.3.16}/tutorials/config.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pandahub
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.16
|
|
4
4
|
Summary: Data hub for pandapower and pandapipes networks based on MongoDB
|
|
5
5
|
Author-email: Jan Ulffers <jan.ulffers@iee.fraunhofer.de>, Leon Thurner <leon.thurner@retoflow.de>, Jannis Kupka <jannis.kupka@retoflow.de>, Mike Vogt <mike.vogt@iee.fraunhofer.de>, Joschka Thurner <joschka.thurner@retoflow.de>, Alexander Scheidler <alexander.scheidler@iee.fraunhofer.de>
|
|
6
6
|
License: Copyright (c) 2022 by University of Kassel, Fraunhofer Institute for Energy Economics
|
|
@@ -3057,8 +3057,11 @@ class PandaHub:
|
|
|
3057
3057
|
del_res = db[collection_name].delete_many(match_filter)
|
|
3058
3058
|
return del_res
|
|
3059
3059
|
|
|
3060
|
-
def create_timeseries_collection(self, collection_name, overwrite=False):
|
|
3061
|
-
|
|
3060
|
+
def create_timeseries_collection(self, collection_name, overwrite=False, project_id=None):
|
|
3061
|
+
if project_id is None:
|
|
3062
|
+
db = self._get_project_database()
|
|
3063
|
+
else:
|
|
3064
|
+
db = self.mongo_client[str(project_id)]
|
|
3062
3065
|
collection_exists = collection_name in db.list_collection_names()
|
|
3063
3066
|
if collection_exists:
|
|
3064
3067
|
if overwrite:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pandahub
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.16
|
|
4
4
|
Summary: Data hub for pandapower and pandapipes networks based on MongoDB
|
|
5
5
|
Author-email: Jan Ulffers <jan.ulffers@iee.fraunhofer.de>, Leon Thurner <leon.thurner@retoflow.de>, Jannis Kupka <jannis.kupka@retoflow.de>, Mike Vogt <mike.vogt@iee.fraunhofer.de>, Joschka Thurner <joschka.thurner@retoflow.de>, Alexander Scheidler <alexander.scheidler@iee.fraunhofer.de>
|
|
6
6
|
License: Copyright (c) 2022 by University of Kassel, Fraunhofer Institute for Energy Economics
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pandahub"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.16" # File format version '__format_version__' is tracked in __init__.py
|
|
8
8
|
authors=[
|
|
9
9
|
{ name = "Jan Ulffers", email = "jan.ulffers@iee.fraunhofer.de" },
|
|
10
10
|
{ name = "Leon Thurner", email = "leon.thurner@retoflow.de" },
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|