pandahub 0.4.1__zip → 0.4.2__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.4.1 → pandahub-0.4.2}/PKG-INFO +1 -1
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub.egg-info/PKG-INFO +1 -1
- {pandahub-0.4.1 → pandahub-0.4.2}/pyproject.toml +1 -1
- {pandahub-0.4.1 → pandahub-0.4.2}/CHANGELOG.md +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/CONTRIBUTING.rst +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/LICENSE +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/MANIFEST.in +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/README.md +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/__init__.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/api/__init__.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/api/dependencies.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/api/internal/__init__.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/api/internal/db.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/api/internal/schemas.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/api/internal/settings.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/api/internal/toolbox.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/api/internal/users.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/api/main.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/api/routers/__init__.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/api/routers/auth.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/api/routers/net.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/api/routers/projects.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/api/routers/timeseries.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/api/routers/users.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/api/routers/variants.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/lib/PandaHub.py +7 -7
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/lib/__init__.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/lib/database_toolbox.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/lib/datatypes.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/lib/mongo_client.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/lib/mongodb_indexes.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/lib/timeseries/__init__.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/lib/timeseries/data_sources/__init__.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/lib/timeseries/data_sources/mongo_data.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub/lib/timeseries/output_writer_mongodb.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub.egg-info/SOURCES.txt +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub.egg-info/dependency_links.txt +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub.egg-info/requires.txt +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/pandahub.egg-info/top_level.txt +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/requirements.txt +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/setup.cfg +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/setup.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/test/__init__.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/test/conftest.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/test/performance_test.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/test/test_client.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/test/test_networks.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/test/test_projects.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/test/test_timeseries.py +0 -0
- {pandahub-0.4.1 → pandahub-0.4.2}/tutorials/config.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pandahub
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pandahub
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
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.4.
|
|
7
|
+
version = "0.4.2" # 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
|
|
@@ -1020,13 +1020,6 @@ class PandaHub:
|
|
|
1020
1020
|
elif not isinstance(add_edge_branches, list):
|
|
1021
1021
|
raise ValueError("add_edge_branches must be a list or a boolean")
|
|
1022
1022
|
|
|
1023
|
-
# Add elements for which the user has provided a filter function
|
|
1024
|
-
for element, filter_func in additional_filters.items():
|
|
1025
|
-
if element in ignore_elements:
|
|
1026
|
-
continue
|
|
1027
|
-
add_args["filter"] = filter_func(net)
|
|
1028
|
-
self._add_element_from_collection(element_type=element, **add_args)
|
|
1029
|
-
|
|
1030
1023
|
branch_nodes = set()
|
|
1031
1024
|
for branch_name, node_cols in zip(default_branches, default_node_cols):
|
|
1032
1025
|
operator = "$or" if branch_name in add_edge_branches else "$and"
|
|
@@ -1074,6 +1067,13 @@ class PandaHub:
|
|
|
1074
1067
|
add_args["filter"] = {node_name: {"$in": nodes}}
|
|
1075
1068
|
self._add_element_from_collection(element_type=element, **add_args)
|
|
1076
1069
|
|
|
1070
|
+
# Add elements for which the user has provided a filter function
|
|
1071
|
+
for element, filter_func in additional_filters.items():
|
|
1072
|
+
if element in ignore_elements:
|
|
1073
|
+
continue
|
|
1074
|
+
add_args["filter"] = filter_func(net)
|
|
1075
|
+
self._add_element_from_collection(element_type=element, **add_args)
|
|
1076
|
+
|
|
1077
1077
|
# add all other collections
|
|
1078
1078
|
collection_names = self.get_net_collections(db)
|
|
1079
1079
|
for collection in collection_names:
|
|
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
|