Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 6, 2025
1 parent cd16bd4 commit a23a9e0
Show file tree
Hide file tree
Showing 32 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions experiments/008_24hour_forecast/forecast_24hour.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Script to load results from the database """

import json
from datetime import timedelta, timezone

Expand Down
1 change: 1 addition & 0 deletions gradboost_pv/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""Library for NationalBoost model"""

__version__ = "1.0.38"
1 change: 1 addition & 0 deletions gradboost_pv/app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Script to simulate data read, model inference and prediction write"""

import logging
import os
import pathlib
Expand Down
1 change: 1 addition & 0 deletions gradboost_pv/inference/data_feeds.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Datafeeds for model inference"""

import logging
import os
from dataclasses import dataclass
Expand Down
1 change: 1 addition & 0 deletions gradboost_pv/inference/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Models used for inference"""

import logging
from abc import ABC, abstractmethod
from dataclasses import dataclass, field
Expand Down
1 change: 1 addition & 0 deletions gradboost_pv/inference/run.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Model inference pipeline"""

import logging
from pathlib import Path
from typing import Dict
Expand Down
1 change: 1 addition & 0 deletions gradboost_pv/inference/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" functions to filter forecasts on the sun """

import logging
from datetime import datetime, timezone
from typing import List
Expand Down
1 change: 1 addition & 0 deletions gradboost_pv/models/base_line.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Baseline NWP model with no NWP data"""

from typing import Tuple

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions gradboost_pv/models/basic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Basic Model with single point downsampling"""

from pathlib import Path
from typing import Tuple

Expand Down
1 change: 1 addition & 0 deletions gradboost_pv/models/pretrained.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Model built from pre-trained CNN passthrough"""

from pathlib import Path
from typing import Tuple

Expand Down
1 change: 1 addition & 0 deletions gradboost_pv/models/quadrant.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Quadrant model - 4 point geospatial downsampling"""

from pathlib import Path
from typing import Tuple

Expand Down
1 change: 1 addition & 0 deletions gradboost_pv/models/region_filtered.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Model using geospatial masking"""

from pathlib import Path
from typing import Tuple

Expand Down
1 change: 1 addition & 0 deletions gradboost_pv/models/s3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""S3 Interaction Utilities"""

import logging
import os
from io import BytesIO
Expand Down
1 change: 1 addition & 0 deletions gradboost_pv/models/training.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Functions for model training"""

import dataclasses
import json
from dataclasses import dataclass
Expand Down
1 change: 1 addition & 0 deletions gradboost_pv/models/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Model utilities"""

import logging
from pathlib import Path
from typing import Callable, Tuple, Union
Expand Down
1 change: 1 addition & 0 deletions gradboost_pv/preprocessing/basic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Basic NWP Preprocessing"""

from pathlib import Path
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions gradboost_pv/preprocessing/pretrained.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Process NWP data with pretrained model"""

from math import ceil, floor
from pathlib import Path
from typing import Callable, Iterable, Iterator, Optional, Tuple
Expand Down
1 change: 1 addition & 0 deletions gradboost_pv/preprocessing/quadrant_downsample.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Quadrant downsampling preprocessing"""

from pathlib import Path
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions gradboost_pv/preprocessing/region_filtered.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Preprocess NWP data using geospatial mask"""

import itertools
import logging
import multiprocessing as mp
Expand Down
1 change: 1 addition & 0 deletions gradboost_pv/save.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Function to save results to datbase """

import logging

import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions gradboost_pv/utils/logger.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Configure logging"""

import logging

logging_config = dict(
Expand Down
1 change: 1 addition & 0 deletions gradboost_pv/utils/typing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Basic types used in package"""

from typing import Union

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions scripts/inference/mock_setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Script to simulate data read, model inference and prediction write"""

from argparse import ArgumentParser
from pathlib import Path
from typing import Callable, Tuple
Expand Down
1 change: 1 addition & 0 deletions scripts/models/grid_search_hyperparams.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Script for Hyperparameter gridsearch"""

import pickle
from argparse import ArgumentParser
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions scripts/models/train/region_filtered_model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Model training script"""

import logging
from argparse import ArgumentParser, BooleanOptionalAction
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions scripts/preprocessing/basic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Script to process using Basic downsampling"""

from argparse import ArgumentParser
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions scripts/preprocessing/pretrained.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Script for preprocessing NWP with pretrained CNN"""

from argparse import ArgumentParser
from math import ceil
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions scripts/preprocessing/quadrant_downsample.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Script to perform quadrant downsampling of NWP data."""

from argparse import ArgumentParser
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions scripts/preprocessing/uk_region_downsample.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Script for processing raw NWP data"""

import datetime as dt
import itertools
from argparse import ArgumentParser
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Usual setup file for package """

# read the contents of your README file
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Configure and load test NWP/PV data """

from pathlib import Path
from typing import List

Expand Down
1 change: 1 addition & 0 deletions tests/inference/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Generate s3 client, and model configs for testing"""

from pathlib import Path

import pytest
Expand Down

0 comments on commit a23a9e0

Please sign in to comment.