pandahub 0.3.11__zip → 0.3.12__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.11 → pandahub-0.3.12}/PKG-INFO +1 -1
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/lib/PandaHub.py +7 -3
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub.egg-info/PKG-INFO +1 -1
- {pandahub-0.3.11 → pandahub-0.3.12}/pyproject.toml +1 -1
- {pandahub-0.3.11 → pandahub-0.3.12}/CHANGELOG.md +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/CONTRIBUTING.rst +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/LICENSE +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/MANIFEST.in +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/README.md +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/__init__.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/api/__init__.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/api/dependencies.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/api/internal/__init__.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/api/internal/db.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/api/internal/schemas.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/api/internal/settings.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/api/internal/toolbox.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/api/internal/users.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/api/main.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/api/routers/__init__.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/api/routers/auth.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/api/routers/net.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/api/routers/projects.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/api/routers/timeseries.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/api/routers/users.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/api/routers/variants.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/lib/__init__.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/lib/database_toolbox.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/lib/datatypes.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/lib/mongodb_indexes.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/lib/timeseries/__init__.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/lib/timeseries/data_sources/__init__.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/lib/timeseries/data_sources/mongo_data.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub/lib/timeseries/output_writer_mongodb.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub.egg-info/SOURCES.txt +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub.egg-info/dependency_links.txt +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub.egg-info/requires.txt +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/pandahub.egg-info/top_level.txt +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/requirements.txt +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/setup.cfg +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/setup.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/test/__init__.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/test/conftest.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/test/performance_test.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/test/test_client.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/test/test_networks.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/test/test_projects.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/test/test_timeseries.py +0 -0
- {pandahub-0.3.11 → pandahub-0.3.12}/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.12
|
|
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
|
|
@@ -79,6 +79,7 @@ class PandaHub:
|
|
|
79
79
|
"read": ["owner", "developer", "guest"],
|
|
80
80
|
"write": ["owner", "developer"],
|
|
81
81
|
"user_management": ["owner"],
|
|
82
|
+
"delete_project": ["owner"],
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
# -------------------------
|
|
@@ -248,7 +249,7 @@ class PandaHub:
|
|
|
248
249
|
if project_id:
|
|
249
250
|
self.set_active_project_by_id(project_id)
|
|
250
251
|
project_id = self.active_project["_id"]
|
|
251
|
-
self.check_permission("
|
|
252
|
+
self.check_permission("delete_project")
|
|
252
253
|
if not i_know_this_action_is_final:
|
|
253
254
|
raise PandaHubError(
|
|
254
255
|
"Calling this function will delete the whole project and all the nets stored within. It can not be reversed. Add 'i_know_this_action_is_final=True' to confirm."
|
|
@@ -2674,7 +2675,10 @@ class PandaHub:
|
|
|
2674
2675
|
}
|
|
2675
2676
|
pipeline.append({"$project": projection})
|
|
2676
2677
|
if not include_metadata:
|
|
2677
|
-
|
|
2678
|
+
if compressed_ts_data:
|
|
2679
|
+
pipeline.append({"$project": {"timeseries_data": 1, "num_timestamps": 1}})
|
|
2680
|
+
else:
|
|
2681
|
+
pipeline.append({"$project": {"timeseries_data": 1}})
|
|
2678
2682
|
|
|
2679
2683
|
timeseries = []
|
|
2680
2684
|
for ts in db[collection_name].aggregate(pipeline):
|
|
@@ -2682,7 +2686,7 @@ class PandaHub:
|
|
|
2682
2686
|
continue
|
|
2683
2687
|
data = ts["timeseries_data"]
|
|
2684
2688
|
if compressed_ts_data:
|
|
2685
|
-
timeseries_data = decompress_timeseries_data(data, ts_format)
|
|
2689
|
+
timeseries_data = decompress_timeseries_data(data, ts_format, ts["num_timestamps"])
|
|
2686
2690
|
ts["timeseries_data"] = timeseries_data
|
|
2687
2691
|
else:
|
|
2688
2692
|
if ts_format == "timestamp_value":
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pandahub
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.12
|
|
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.12" # 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
|