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 Feb 12, 2024
1 parent ca4b420 commit 65e7011
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions graph_weather/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""Main import for the complete models"""

from .models.analysis import GraphWeatherAssimilator
from .models.forecast import GraphWeatherForecaster
1 change: 1 addition & 0 deletions graph_weather/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Models"""

from .layers.assimilator_decoder import AssimilatorDecoder
from .layers.assimilator_encoder import AssimilatorEncoder
from .layers.decoder import Decoder
Expand Down
1 change: 1 addition & 0 deletions graph_weather/models/analysis.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Model for forecasting weather from NWP states"""

import torch
from huggingface_hub import PyTorchModelHubMixin

Expand Down
1 change: 1 addition & 0 deletions graph_weather/models/forecast.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Model for forecasting weather from NWP states"""

from typing import Optional

import torch
Expand Down
1 change: 1 addition & 0 deletions graph_weather/models/layers/assimilator_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
more complex dynamics)
"""

import einops
import h3
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions graph_weather/models/layers/assimilator_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"""

from typing import Tuple

import einops
Expand Down
1 change: 1 addition & 0 deletions graph_weather/models/layers/decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
more complex dynamics)
"""

import torch

from graph_weather.models.layers.assimilator_decoder import AssimilatorDecoder
Expand Down
1 change: 1 addition & 0 deletions graph_weather/models/layers/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"""

from typing import Tuple

import einops
Expand Down
1 change: 1 addition & 0 deletions graph_weather/models/layers/graph_net_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
This code is taken from https://github.com/CCSI-Toolset/MGN which is available under the
US Government License
"""

from typing import Optional, Tuple

import torch
Expand Down
1 change: 1 addition & 0 deletions graph_weather/models/layers/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
and its immediate neighbors. There are residual connections between each round of processing.
"""

import torch

from graph_weather.models.layers.graph_net_block import GraphProcessor
Expand Down
1 change: 1 addition & 0 deletions graph_weather/models/losses.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Weather loss functions"""

import numpy as np
import torch

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Setup"""

from pathlib import Path

from setuptools import find_packages, setup
Expand Down
1 change: 1 addition & 0 deletions train/pl_graph_weather.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""PyTorch Lightning training script for the weather forecasting model"""

import click
import datasets
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions train/run_fulll.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Training script for training the weather forecasting model"""

import json
import os
import sys
Expand Down

0 comments on commit 65e7011

Please sign in to comment.