From 381236c17f4730d78a922d83b6f04ff50f5b7786 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Tue, 8 Sep 2026 22:13:19 +1000 Subject: [PATCH] Add copyright notice to the top of each file. --- src/isp_trace_parser/__init__.py | 7 +++++++ src/isp_trace_parser/construct_reference_year_mapping.py | 7 +++++++ src/isp_trace_parser/demand_trace_metadata.py | 7 +++++++ src/isp_trace_parser/demand_traces.py | 7 +++++++ src/isp_trace_parser/get_data.py | 7 +++++++ src/isp_trace_parser/input_validation.py | 7 +++++++ src/isp_trace_parser/mappings/__init__.py | 7 +++++++ src/isp_trace_parser/optimise_parquet.py | 7 +++++++ src/isp_trace_parser/remote/__init__.py | 7 +++++++ src/isp_trace_parser/remote/download.py | 7 +++++++ src/isp_trace_parser/resource_trace_metadata.py | 7 +++++++ src/isp_trace_parser/solar_traces.py | 7 +++++++ src/isp_trace_parser/trace_formatter.py | 7 +++++++ src/isp_trace_parser/trace_restructure_helper_functions.py | 7 +++++++ src/isp_trace_parser/wind_traces.py | 7 +++++++ tests/conftest.py | 7 +++++++ tests/create_end_to_end_test_data.py | 7 +++++++ tests/end_to_end_test_data_config.py | 7 +++++++ tests/test_demand_trace_metadata.py | 7 +++++++ tests/test_download.py | 7 +++++++ tests/test_get_data.py | 7 +++++++ tests/test_input_validation.py | 7 +++++++ tests/test_optimise_parquet.py | 7 +++++++ tests/test_resource_trace_metadata.py | 7 +++++++ tests/test_trace_formatter.py | 7 +++++++ tests/test_trace_parsers.py | 7 +++++++ tests/test_writing_save_names.py | 7 +++++++ 27 files changed, 189 insertions(+) diff --git a/src/isp_trace_parser/__init__.py b/src/isp_trace_parser/__init__.py index 6467868..648baeb 100644 --- a/src/isp_trace_parser/__init__.py +++ b/src/isp_trace_parser/__init__.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + from isp_trace_parser import get_data from isp_trace_parser.construct_reference_year_mapping import ( construct_reference_year_mapping, diff --git a/src/isp_trace_parser/construct_reference_year_mapping.py b/src/isp_trace_parser/construct_reference_year_mapping.py index 6e384b2..95b9299 100644 --- a/src/isp_trace_parser/construct_reference_year_mapping.py +++ b/src/isp_trace_parser/construct_reference_year_mapping.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + from pydantic import validate_call from isp_trace_parser import input_validation diff --git a/src/isp_trace_parser/demand_trace_metadata.py b/src/isp_trace_parser/demand_trace_metadata.py index c0124ef..7a1eff9 100644 --- a/src/isp_trace_parser/demand_trace_metadata.py +++ b/src/isp_trace_parser/demand_trace_metadata.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + from pathlib import Path from isp_trace_parser import mappings diff --git a/src/isp_trace_parser/demand_traces.py b/src/isp_trace_parser/demand_traces.py index ab17556..56b71d8 100644 --- a/src/isp_trace_parser/demand_traces.py +++ b/src/isp_trace_parser/demand_traces.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + import functools import os from pathlib import Path diff --git a/src/isp_trace_parser/get_data.py b/src/isp_trace_parser/get_data.py index 6d620c2..e058aa4 100644 --- a/src/isp_trace_parser/get_data.py +++ b/src/isp_trace_parser/get_data.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + import datetime from pathlib import Path from typing import List, Literal diff --git a/src/isp_trace_parser/input_validation.py b/src/isp_trace_parser/input_validation.py index cfa9164..6c696a3 100644 --- a/src/isp_trace_parser/input_validation.py +++ b/src/isp_trace_parser/input_validation.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + from pathlib import Path diff --git a/src/isp_trace_parser/mappings/__init__.py b/src/isp_trace_parser/mappings/__init__.py index 38bf0ca..4813671 100644 --- a/src/isp_trace_parser/mappings/__init__.py +++ b/src/isp_trace_parser/mappings/__init__.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + from importlib.resources import files import yaml diff --git a/src/isp_trace_parser/optimise_parquet.py b/src/isp_trace_parser/optimise_parquet.py index da00e07..9ced190 100644 --- a/src/isp_trace_parser/optimise_parquet.py +++ b/src/isp_trace_parser/optimise_parquet.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + from itertools import product from pathlib import Path from typing import Optional diff --git a/src/isp_trace_parser/remote/__init__.py b/src/isp_trace_parser/remote/__init__.py index 206ec7d..f1466f3 100644 --- a/src/isp_trace_parser/remote/__init__.py +++ b/src/isp_trace_parser/remote/__init__.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + """Remote data interaction module for ISP trace data.""" from isp_trace_parser.remote.download import fetch_trace_data diff --git a/src/isp_trace_parser/remote/download.py b/src/isp_trace_parser/remote/download.py index 462887c..17c751f 100644 --- a/src/isp_trace_parser/remote/download.py +++ b/src/isp_trace_parser/remote/download.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + """Download data files from manifests.""" import time diff --git a/src/isp_trace_parser/resource_trace_metadata.py b/src/isp_trace_parser/resource_trace_metadata.py index 7516339..f5ffa95 100644 --- a/src/isp_trace_parser/resource_trace_metadata.py +++ b/src/isp_trace_parser/resource_trace_metadata.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + from pathlib import Path from isp_trace_parser import mappings diff --git a/src/isp_trace_parser/solar_traces.py b/src/isp_trace_parser/solar_traces.py index 17fc881..aa8dbde 100644 --- a/src/isp_trace_parser/solar_traces.py +++ b/src/isp_trace_parser/solar_traces.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + import functools import os from pathlib import Path diff --git a/src/isp_trace_parser/trace_formatter.py b/src/isp_trace_parser/trace_formatter.py index b6262e4..c889520 100644 --- a/src/isp_trace_parser/trace_formatter.py +++ b/src/isp_trace_parser/trace_formatter.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + from datetime import timedelta import polars as pl diff --git a/src/isp_trace_parser/trace_restructure_helper_functions.py b/src/isp_trace_parser/trace_restructure_helper_functions.py index 25c8229..8d9b43b 100644 --- a/src/isp_trace_parser/trace_restructure_helper_functions.py +++ b/src/isp_trace_parser/trace_restructure_helper_functions.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + from datetime import timedelta from pathlib import Path diff --git a/src/isp_trace_parser/wind_traces.py b/src/isp_trace_parser/wind_traces.py index 775f6e5..8c3d2b7 100644 --- a/src/isp_trace_parser/wind_traces.py +++ b/src/isp_trace_parser/wind_traces.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + import functools import os from pathlib import Path diff --git a/tests/conftest.py b/tests/conftest.py index 09d5a86..8275ad8 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + import tempfile from pathlib import Path diff --git a/tests/create_end_to_end_test_data.py b/tests/create_end_to_end_test_data.py index e9f2086..5bf3ed6 100644 --- a/tests/create_end_to_end_test_data.py +++ b/tests/create_end_to_end_test_data.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + import itertools from pathlib import Path diff --git a/tests/end_to_end_test_data_config.py b/tests/end_to_end_test_data_config.py index 41fcbdd..596cd75 100644 --- a/tests/end_to_end_test_data_config.py +++ b/tests/end_to_end_test_data_config.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + start = 2030 end = 2032 half_years = [1, 2] diff --git a/tests/test_demand_trace_metadata.py b/tests/test_demand_trace_metadata.py index 93a3499..22414e2 100644 --- a/tests/test_demand_trace_metadata.py +++ b/tests/test_demand_trace_metadata.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + from pathlib import Path import pytest diff --git a/tests/test_download.py b/tests/test_download.py index 5911c63..7c8bed0 100644 --- a/tests/test_download.py +++ b/tests/test_download.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + from pathlib import Path from tempfile import TemporaryDirectory diff --git a/tests/test_get_data.py b/tests/test_get_data.py index 609226a..3f454d3 100644 --- a/tests/test_get_data.py +++ b/tests/test_get_data.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + import datetime from pathlib import Path diff --git a/tests/test_input_validation.py b/tests/test_input_validation.py index b380d46..a631127 100644 --- a/tests/test_input_validation.py +++ b/tests/test_input_validation.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + from pathlib import Path import pytest diff --git a/tests/test_optimise_parquet.py b/tests/test_optimise_parquet.py index f7b0efe..beec176 100644 --- a/tests/test_optimise_parquet.py +++ b/tests/test_optimise_parquet.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + from pathlib import Path import polars as pl diff --git a/tests/test_resource_trace_metadata.py b/tests/test_resource_trace_metadata.py index a209d04..61861ae 100644 --- a/tests/test_resource_trace_metadata.py +++ b/tests/test_resource_trace_metadata.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + from pathlib import Path import pytest diff --git a/tests/test_trace_formatter.py b/tests/test_trace_formatter.py index 7e7e5fa..90be4a6 100644 --- a/tests/test_trace_formatter.py +++ b/tests/test_trace_formatter.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + import polars as pl from polars.testing import assert_frame_equal diff --git a/tests/test_trace_parsers.py b/tests/test_trace_parsers.py index ac72a08..a49954a 100644 --- a/tests/test_trace_parsers.py +++ b/tests/test_trace_parsers.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + import tempfile from pathlib import Path diff --git a/tests/test_writing_save_names.py b/tests/test_writing_save_names.py index 3fc47a1..36e3c30 100644 --- a/tests/test_writing_save_names.py +++ b/tests/test_writing_save_names.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + import isp_trace_parser