Skip to content
Open
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ repos:
# python code formatting/linting
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: "v0.14.4"
rev: "v0.15.12"
hooks:
- id: ruff
args: [--fix]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.11.0
rev: 26.3.1
hooks:
- id: black
args: [--line-length, "100"]
Expand Down
6 changes: 2 additions & 4 deletions metnet/layers/MBConv.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,8 @@ def __init__(

if self.downscale:
# TODO: Check if downscaling is needed at all. May impact layer normalisation.
raise NotImplementedError(
"Downscaling in MBConv hasn't been implemented as it \
isnt used in Metnet3"
)
raise NotImplementedError("Downscaling in MBConv hasn't been implemented as it \
isnt used in Metnet3")

self.main_branch = nn.Sequential(
self.pre_norm, # Pre Normalize over the last three dimensions (i.e. the channel and spatial dimensions) # noqa
Expand Down
1 change: 0 additions & 1 deletion tests/test_merge_gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
get_band_data,
)


# ---------------------------------------------------------
# Helpers: create synthetic lat/lon grids
# ---------------------------------------------------------
Expand Down
Loading