Skip to content

Commit 8f694ac

Browse files
authored
fix integration tests (ecmwf#796)
1 parent fee2f0c commit 8f694ac

File tree

3 files changed

+41
-2
lines changed

3 files changed

+41
-2
lines changed

integration_tests/small1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
streams_directory: "./config/streams/streams_test/"
1+
streams_directory: "./integration_tests/streams/"
22
run_path: "./results"
33
model_path: "./models"
44
loss_fcts: [["mse", 1.0]]

integration_tests/small1_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def evaluate_results(run_id):
112112
"streams": {
113113
"ERA5": {
114114
"results_base_dir": "./results/",
115-
"channels": ["10v"], # "all" indicator would be nice
115+
"channels": ["t_850"], # "all" indicator would be nice
116116
"evaluation": {"forecast_steps": "all", "sample": "all"},
117117
"plotting": {
118118
"sample": [0, 1],
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# (C) Copyright 2024 WeatherGenerator contributors.
2+
#
3+
# This software is licensed under the terms of the Apache Licence Version 2.0
4+
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
5+
#
6+
# In applying this licence, ECMWF does not waive the privileges and immunities
7+
# granted to it by virtue of its status as an intergovernmental organisation
8+
# nor does it submit to any jurisdiction.
9+
10+
ERA5 :
11+
type : anemoi
12+
filenames : ['aifs-ea-an-oper-0001-mars-o96-1979-2022-6h-v6.zarr']
13+
loss_weight : 1.
14+
source_exclude : ['w_', 'skt', 'sp', 'tcw', 'cp', 'tp']
15+
target_exclude : ['w_', 'skt', 'sp', 'tcw', 'cp', 'tp']
16+
source : ["t_850", "z_850"]
17+
target : ["t_850"]
18+
diagnostic : False
19+
masking_rate : 0.6
20+
masking_rate_none : 0.05
21+
token_size : 32
22+
tokenize_spacetime : True
23+
max_num_targets: -1
24+
embed :
25+
net : transformer
26+
num_tokens : 1
27+
num_heads : 2
28+
dim_embed : 16
29+
num_blocks : 2
30+
embed_target_coords :
31+
net : linear
32+
dim_embed : 16
33+
target_readout :
34+
type : 'obs_value'
35+
num_layers : 2
36+
num_heads : 2
37+
pred_head :
38+
ens_size : 1
39+
num_layers : 1

0 commit comments

Comments
 (0)