Skip to content

Commit 0239c17

Browse files
authored
Merge branch 'main' into 244-active-mask
2 parents d0ae392 + bc55838 commit 0239c17

49 files changed

Lines changed: 877 additions & 563 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/code_style.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Format and lint code
1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v6
16+
uses: actions/checkout@v7
1717
with:
1818
fetch-depth: 0
1919
- name: Setup Python

.github/workflows/test_code.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
python-version: ["3.11", "3.12"]
2626
steps:
2727
- name: Checkout code
28-
uses: actions/checkout@v6
28+
uses: actions/checkout@v7
2929
with:
3030
fetch-depth: 0
3131
- name: Set up Python ${{ matrix.python-version }}

icenet_mp/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
import logging
12
import os
23
import sys
34
import warnings
45

6+
logging.getLogger("anemoi").setLevel(logging.WARNING)
7+
logging.getLogger("argopy").setLevel(logging.WARNING)
8+
59
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
610
if "torch" in sys.modules:
711
warnings.warn(

icenet_mp/callbacks/ema_weight_averaging_callback.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
from lightning.pytorch.callbacks import WeightAveraging
12
from torch.optim.swa_utils import get_ema_multi_avg_fn
23

3-
from .weight_averaging import WeightAveraging
4-
54

65
class EMAWeightAveragingCallback(WeightAveraging):
76
"""A callback that updates an averaged model for Exponential Moving Average (EMA) after each training step."""

0 commit comments

Comments
 (0)