From 10bca3c9b4bfb2d351e0b4793d04ef35108439d2 Mon Sep 17 00:00:00 2001 From: Jimmy Tung Date: Thu, 15 Jan 2026 16:05:55 +1100 Subject: [PATCH 1/4] Fix small bug in request_power_factory_models.py and add to dependency package. Signed-off-by: Jimmy Tung --- changelog.md | 4 ++-- pyproject.toml | 3 ++- src/zepben/examples/request_power_factory_models.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index c9697ba..546e184 100644 --- a/changelog.md +++ b/changelog.md @@ -7,10 +7,10 @@ * None. ### Enhancements -* None. +* Add pip-system-certs to dependency package. ### Fixes -* None. +* Fixed small issue in get_lvfeeder in request_power_factory_models. ### Notes * None. diff --git a/pyproject.toml b/pyproject.toml index 553835c..0606ebd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,8 @@ dependencies = [ "geopandas", "pandas", "shapely", - "tqdm" + "tqdm", + "pip-system-certs" ] classifiers = [ "Programming Language :: Python :: 3", diff --git a/src/zepben/examples/request_power_factory_models.py b/src/zepben/examples/request_power_factory_models.py index 3e432b4..ed027f4 100644 --- a/src/zepben/examples/request_power_factory_models.py +++ b/src/zepben/examples/request_power_factory_models.py @@ -151,7 +151,7 @@ def get_lvfeeder(feeder) -> Generator[str, None, None]: ) else: # Path to include all lvFeeders - yield from (lv['mRID'] for lv in feeder['normalEnergizedFeeders']) + yield from (lv['mRID'] for lv in feeder['normalEnergizedLvFeeders']) def request_pf_model(equipment_container_list: List[str], filename: str, spread_max_demand: bool = False): From 58bfbf3e3fbddf1f445e19ebf41314c2f8eead9c Mon Sep 17 00:00:00 2001 From: Jimmy Tung Date: Thu, 15 Jan 2026 16:33:38 +1100 Subject: [PATCH 2/4] remove dependency and added a small FAQ section to README.md Signed-off-by: Jimmy Tung --- README.md | 10 ++++++++++ pyproject.toml | 3 +-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c06900e..dba4620 100644 --- a/README.md +++ b/README.md @@ -104,3 +104,13 @@ which will then be available via the UI for visualisation. * [Translating a CIM network model into a pandapower model](src/zepben/examples/translating_to_pandapower_model.py) * [Requesting a PowerFactory model through the SDK](src/zepben/examples/request_power_factory_models.py) + +#### F.A.Q + +* What do I do about permission issues when I use token from the web UI to use in the example code? + Please double-check the role of the generated token has the right to perform desired operations. + See https://zepben.github.io/evolve/docs/evolve-app-server/2.8.0/permissions/ for the list of permissions and their access. + +* What do I do when I run into CA or SSL issue while attempt to request/download power factory model? + CA used in this request will be OS basd, thus it is highly likely the user is missing a package that points the script to it. + Try running the command "pip install pip-system-certs" diff --git a/pyproject.toml b/pyproject.toml index 0606ebd..553835c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,8 +31,7 @@ dependencies = [ "geopandas", "pandas", "shapely", - "tqdm", - "pip-system-certs" + "tqdm" ] classifiers = [ "Programming Language :: Python :: 3", From 12fa02346301c714a51ccd86e7897ee7019f39fe Mon Sep 17 00:00:00 2001 From: Jimmy Tung Date: Thu, 15 Jan 2026 16:36:24 +1100 Subject: [PATCH 3/4] remove dependency and added a small FAQ section to README.md Signed-off-by: Jimmy Tung --- changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 546e184..6b32a4c 100644 --- a/changelog.md +++ b/changelog.md @@ -7,7 +7,7 @@ * None. ### Enhancements -* Add pip-system-certs to dependency package. +* Added a small F.A.Q section that can be populated in the future from user feed backs. ### Fixes * Fixed small issue in get_lvfeeder in request_power_factory_models. From ac9c39a39727e8e24633f24d461c5e92d5a43eb5 Mon Sep 17 00:00:00 2001 From: Jimmy Tung Date: Thu, 15 Jan 2026 16:46:29 +1100 Subject: [PATCH 4/4] Fix Typo Signed-off-by: Jimmy Tung --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dba4620..4eb4012 100644 --- a/README.md +++ b/README.md @@ -112,5 +112,5 @@ which will then be available via the UI for visualisation. See https://zepben.github.io/evolve/docs/evolve-app-server/2.8.0/permissions/ for the list of permissions and their access. * What do I do when I run into CA or SSL issue while attempt to request/download power factory model? - CA used in this request will be OS basd, thus it is highly likely the user is missing a package that points the script to it. + CA used in this request will be OS based, thus it is highly likely the user is missing a package that points the script to it. Try running the command "pip install pip-system-certs"