Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/isp_trace_parser/__init__.py
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
7 changes: 7 additions & 0 deletions src/isp_trace_parser/construct_reference_year_mapping.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/isp_trace_parser/demand_trace_metadata.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/isp_trace_parser/demand_traces.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/isp_trace_parser/get_data.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/isp_trace_parser/input_validation.py
Original file line number Diff line number Diff line change
@@ -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


Expand Down
7 changes: 7 additions & 0 deletions src/isp_trace_parser/mappings/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/isp_trace_parser/optimise_parquet.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/isp_trace_parser/remote/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/isp_trace_parser/remote/download.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/isp_trace_parser/resource_trace_metadata.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/isp_trace_parser/solar_traces.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/isp_trace_parser/trace_formatter.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/isp_trace_parser/trace_restructure_helper_functions.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 7 additions & 0 deletions src/isp_trace_parser/wind_traces.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 7 additions & 0 deletions tests/create_end_to_end_test_data.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 7 additions & 0 deletions tests/end_to_end_test_data_config.py
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
7 changes: 7 additions & 0 deletions tests/test_demand_trace_metadata.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions tests/test_download.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 7 additions & 0 deletions tests/test_get_data.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 7 additions & 0 deletions tests/test_input_validation.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions tests/test_optimise_parquet.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions tests/test_resource_trace_metadata.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions tests/test_trace_formatter.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 7 additions & 0 deletions tests/test_trace_parsers.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 7 additions & 0 deletions tests/test_writing_save_names.py
Original file line number Diff line number Diff line change
@@ -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


Expand Down
Loading