isp-trace-parser 2.0.3__tar.gz → 2.1.0__tar.gz
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.
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/PKG-INFO +7 -1
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/README.md +6 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/pyproject.toml +1 -1
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser/remote/download.py +11 -3
- isp_trace_parser-2.1.0/src/isp_trace_parser/remote/manifests/processed/example_isp_2026.txt +9 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser.egg-info/PKG-INFO +7 -1
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser.egg-info/SOURCES.txt +1 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/tests/test_download.py +20 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/LICENSE +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/setup.cfg +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_name_mapping_configs/demand_scenario_mapping.yaml +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_name_mapping_configs/solar_project_mapping.yaml +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_name_mapping_configs/solar_zone_mapping.yaml +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_name_mapping_configs/wind_project_mapping.yaml +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_name_mapping_configs/wind_zone_mapping.yaml +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser/__init__.py +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser/construct_reference_year_mapping.py +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser/demand_traces.py +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser/get_data.py +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser/input_validation.py +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser/metadata_extractors.py +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser/optimise_parquet.py +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser/remote/__init__.py +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser/remote/manifests/__init__.py +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser/remote/manifests/archive/full_isp_2024.txt +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser/remote/manifests/processed/example_isp_2024.txt +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser/remote/manifests/processed/full_isp_2024.txt +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser/solar_traces.py +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser/trace_formatter.py +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser/trace_restructure_helper_functions.py +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser/wind_traces.py +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser.egg-info/dependency_links.txt +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser.egg-info/requires.txt +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser.egg-info/top_level.txt +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/tests/test_get_data.py +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/tests/test_input_validation.py +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/tests/test_optimise_parquet.py +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/tests/test_trace_file_meta_data_extraction.py +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/tests/test_trace_formatter.py +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/tests/test_trace_parsers.py +0 -0
- {isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/tests/test_writing_save_names.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: isp-trace-parser
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: A Python package for reformatting and accessing demand, solar, and wind time series data used by the
|
|
5
5
|
Author-email: nick-gorman <n.gorman305@gmail.com>, dylanjmcconnell <dylan.mcconnell@unsw.edu.au>, prakaa <abiprakash007@gmail.com>
|
|
6
6
|
Requires-Python: >=3.9
|
|
@@ -104,8 +104,14 @@ from isp_trace_parser.remote import fetch_trace_data
|
|
|
104
104
|
|
|
105
105
|
# Download example dataset (2018 reference year only)
|
|
106
106
|
fetch_trace_data("example", dataset_src="isp_2024", save_directory="data/trace_data", data_format="processed")
|
|
107
|
+
|
|
108
|
+
# 2026 ISP vintage: example dataset only for now (2018 reference year; Step Change demand)
|
|
109
|
+
fetch_trace_data("example", dataset_src="isp_2026", save_directory="data/trace_data", data_format="processed")
|
|
107
110
|
```
|
|
108
111
|
|
|
112
|
+
> **ISP 2026 status:** only the `"example"` processed dataset is currently published for `isp_2026`.
|
|
113
|
+
> The `"full"` processed dataset and the `"archive"` (original zip) data will follow in a later release.
|
|
114
|
+
|
|
109
115
|
This will download the processed parquet files with the following structure:
|
|
110
116
|
|
|
111
117
|
```bash
|
|
@@ -85,8 +85,14 @@ from isp_trace_parser.remote import fetch_trace_data
|
|
|
85
85
|
|
|
86
86
|
# Download example dataset (2018 reference year only)
|
|
87
87
|
fetch_trace_data("example", dataset_src="isp_2024", save_directory="data/trace_data", data_format="processed")
|
|
88
|
+
|
|
89
|
+
# 2026 ISP vintage: example dataset only for now (2018 reference year; Step Change demand)
|
|
90
|
+
fetch_trace_data("example", dataset_src="isp_2026", save_directory="data/trace_data", data_format="processed")
|
|
88
91
|
```
|
|
89
92
|
|
|
93
|
+
> **ISP 2026 status:** only the `"example"` processed dataset is currently published for `isp_2026`.
|
|
94
|
+
> The `"full"` processed dataset and the `"archive"` (original zip) data will follow in a later release.
|
|
95
|
+
|
|
90
96
|
This will download the processed parquet files with the following structure:
|
|
91
97
|
|
|
92
98
|
```bash
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "isp-trace-parser"
|
|
3
|
-
version = "2.0
|
|
3
|
+
version = "2.1.0"
|
|
4
4
|
description = """A Python package for reformatting and accessing demand, solar, and wind time series data used by the
|
|
5
5
|
Australian Energy Market Operator in their Integrated System Plan modelling study."""
|
|
6
6
|
authors = [
|
|
@@ -9,6 +9,8 @@ from urllib.parse import unquote, urlparse
|
|
|
9
9
|
import requests
|
|
10
10
|
from tqdm import tqdm
|
|
11
11
|
|
|
12
|
+
SUPPORTED_DATASET_SOURCES = ("isp_2024", "isp_2026")
|
|
13
|
+
|
|
12
14
|
|
|
13
15
|
def _download_from_manifest(
|
|
14
16
|
manifest_name: str,
|
|
@@ -176,7 +178,7 @@ def fetch_trace_data(
|
|
|
176
178
|
dataset_type : {"full", "example"}
|
|
177
179
|
Type of dataset to download
|
|
178
180
|
dataset_src : str
|
|
179
|
-
Source of dataset
|
|
181
|
+
Source (ISP vintage) of dataset: "isp_2024" or "isp_2026"
|
|
180
182
|
save_directory : Path | str
|
|
181
183
|
Directory where trace data should be saved. Files will be organized
|
|
182
184
|
in subdirectories preserving the structure from the manifest.
|
|
@@ -207,6 +209,10 @@ def fetch_trace_data(
|
|
|
207
209
|
|
|
208
210
|
>>> fetch_trace_data("full", "isp_2024", "data/archive", "archive") # doctest: +SKIP
|
|
209
211
|
# Downloads original zip files to: data/archive/...
|
|
212
|
+
|
|
213
|
+
>>> fetch_trace_data("example", "isp_2026", "data/traces", "processed") # doctest: +SKIP
|
|
214
|
+
# Downloads to: data/traces/isp_2026/...
|
|
215
|
+
# (isp_2026 currently publishes the "example" processed dataset only, reference year 2018)
|
|
210
216
|
"""
|
|
211
217
|
|
|
212
218
|
# Validate inputs
|
|
@@ -215,8 +221,10 @@ def fetch_trace_data(
|
|
|
215
221
|
f"dataset_type must be 'full' or 'example', got: {dataset_type}"
|
|
216
222
|
)
|
|
217
223
|
|
|
218
|
-
if dataset_src
|
|
219
|
-
raise ValueError(
|
|
224
|
+
if dataset_src not in SUPPORTED_DATASET_SOURCES:
|
|
225
|
+
raise ValueError(
|
|
226
|
+
f"dataset_src must be one of {SUPPORTED_DATASET_SOURCES}, got: {dataset_src}"
|
|
227
|
+
)
|
|
220
228
|
|
|
221
229
|
if data_format not in ["processed", "archive"]:
|
|
222
230
|
raise ValueError(
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
https://data.openisp.au/processed/traces/isp_2026/project/reference_year=2018/data_0.parquet
|
|
2
|
+
https://data.openisp.au/processed/traces/isp_2026/project/reference_year=2018/data_1.parquet
|
|
3
|
+
https://data.openisp.au/processed/traces/isp_2026/project/reference_year=2018/data_2.parquet
|
|
4
|
+
https://data.openisp.au/processed/traces/isp_2026/project/reference_year=2018/data_3.parquet
|
|
5
|
+
https://data.openisp.au/processed/traces/isp_2026/zone/reference_year=2018/data_0.parquet
|
|
6
|
+
https://data.openisp.au/processed/traces/isp_2026/zone/reference_year=2018/data_1.parquet
|
|
7
|
+
https://data.openisp.au/processed/traces/isp_2026/zone/reference_year=2018/data_2.parquet
|
|
8
|
+
https://data.openisp.au/processed/traces/isp_2026/demand/scenario=Step%20Change/reference_year=2018/data_0.parquet
|
|
9
|
+
https://data.openisp.au/processed/traces/isp_2026/demand/scenario=Step%20Change/reference_year=2018/data_1.parquet
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: isp-trace-parser
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: A Python package for reformatting and accessing demand, solar, and wind time series data used by the
|
|
5
5
|
Author-email: nick-gorman <n.gorman305@gmail.com>, dylanjmcconnell <dylan.mcconnell@unsw.edu.au>, prakaa <abiprakash007@gmail.com>
|
|
6
6
|
Requires-Python: >=3.9
|
|
@@ -104,8 +104,14 @@ from isp_trace_parser.remote import fetch_trace_data
|
|
|
104
104
|
|
|
105
105
|
# Download example dataset (2018 reference year only)
|
|
106
106
|
fetch_trace_data("example", dataset_src="isp_2024", save_directory="data/trace_data", data_format="processed")
|
|
107
|
+
|
|
108
|
+
# 2026 ISP vintage: example dataset only for now (2018 reference year; Step Change demand)
|
|
109
|
+
fetch_trace_data("example", dataset_src="isp_2026", save_directory="data/trace_data", data_format="processed")
|
|
107
110
|
```
|
|
108
111
|
|
|
112
|
+
> **ISP 2026 status:** only the `"example"` processed dataset is currently published for `isp_2026`.
|
|
113
|
+
> The `"full"` processed dataset and the `"archive"` (original zip) data will follow in a later release.
|
|
114
|
+
|
|
109
115
|
This will download the processed parquet files with the following structure:
|
|
110
116
|
|
|
111
117
|
```bash
|
|
@@ -27,6 +27,7 @@ src/isp_trace_parser/remote/download.py
|
|
|
27
27
|
src/isp_trace_parser/remote/manifests/__init__.py
|
|
28
28
|
src/isp_trace_parser/remote/manifests/archive/full_isp_2024.txt
|
|
29
29
|
src/isp_trace_parser/remote/manifests/processed/example_isp_2024.txt
|
|
30
|
+
src/isp_trace_parser/remote/manifests/processed/example_isp_2026.txt
|
|
30
31
|
src/isp_trace_parser/remote/manifests/processed/full_isp_2024.txt
|
|
31
32
|
tests/test_download.py
|
|
32
33
|
tests/test_get_data.py
|
|
@@ -138,3 +138,23 @@ def test_strip_levels_too_high():
|
|
|
138
138
|
# TEST_URL has path "test/test/test_file.txt" = 3 parts
|
|
139
139
|
with pytest.raises(ValueError, match="Cannot strip .* levels"):
|
|
140
140
|
download._download_file(TEST_URL, tmp_path, strip_levels=10)
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
@pytest.mark.parametrize(
|
|
144
|
+
"dataset_type, dataset_src",
|
|
145
|
+
[("full", "isp_2024"), ("example", "isp_2024"), ("example", "isp_2026")],
|
|
146
|
+
)
|
|
147
|
+
def test_processed_manifests_exist(dataset_type: str, dataset_src: str):
|
|
148
|
+
"""Each published processed manifest has unique parquet URLs for its own vintage."""
|
|
149
|
+
from importlib.resources import files
|
|
150
|
+
|
|
151
|
+
manifest = (
|
|
152
|
+
files("isp_trace_parser.remote.manifests")
|
|
153
|
+
/ "processed"
|
|
154
|
+
/ f"{dataset_type}_{dataset_src}.txt"
|
|
155
|
+
)
|
|
156
|
+
urls = [line.strip() for line in manifest.read_text().splitlines() if line.strip()]
|
|
157
|
+
assert urls
|
|
158
|
+
prefix = f"https://data.openisp.au/processed/traces/{dataset_src}/"
|
|
159
|
+
assert all(url.startswith(prefix) and url.endswith(".parquet") for url in urls)
|
|
160
|
+
assert len(urls) == len(set(urls))
|
|
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
|
{isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser/metadata_extractors.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser/remote/manifests/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser.egg-info/requires.txt
RENAMED
|
File without changes
|
{isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/src/isp_trace_parser.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{isp_trace_parser-2.0.3 → isp_trace_parser-2.1.0}/tests/test_trace_file_meta_data_extraction.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|