@@ -88,42 +88,42 @@ def assert_missing_metrics_file(run_id):
8888
8989
9090def assert_train_loss_below_threshold (run_id ):
91- """Test that the 'stream.era5 .loss_mse.loss_avg' metric is below a threshold."""
91+ """Test that the 'stream.ERA5 .loss_mse.loss_avg' metric is below a threshold."""
9292 metrics = load_metrics (run_id )
9393 loss_metric = next (
9494 (
95- metric .get ("stream.era5 .loss_mse.loss_avg" , None )
95+ metric .get ("stream.ERA5 .loss_mse.loss_avg" , None )
9696 for metric in reversed (metrics )
9797 if metric .get ("stage" ) == "train"
9898 ),
9999 None ,
100100 )
101101 assert loss_metric is not None , (
102- "'stream.era5 .loss_mse.loss_avg' metric is missing in metrics file"
102+ "'stream.ERA5 .loss_mse.loss_avg' metric is missing in metrics file"
103103 )
104104 # Check that the loss does not explode in a single epoch
105105 # This is meant to be a quick test, not a convergence test
106106 assert loss_metric < 1.25 , (
107- f"'stream.era5 .loss_mse.loss_avg' is { loss_metric } , expected to be below 0.25"
107+ f"'stream.ERA5 .loss_mse.loss_avg' is { loss_metric } , expected to be below 0.25"
108108 )
109109
110110
111111def assert_val_loss_below_threshold (run_id ):
112- """Test that the 'stream.era5 .loss_mse.loss_avg' metric is below a threshold."""
112+ """Test that the 'stream.ERA5 .loss_mse.loss_avg' metric is below a threshold."""
113113 metrics = load_metrics (run_id )
114114 loss_metric = next (
115115 (
116- metric .get ("stream.era5 .loss_mse.loss_avg" , None )
116+ metric .get ("stream.ERA5 .loss_mse.loss_avg" , None )
117117 for metric in reversed (metrics )
118118 if metric .get ("stage" ) == "val"
119119 ),
120120 None ,
121121 )
122122 assert loss_metric is not None , (
123- "'stream.era5 .loss_mse.loss_avg' metric is missing in metrics file"
123+ "'stream.ERA5 .loss_mse.loss_avg' metric is missing in metrics file"
124124 )
125125 # Check that the loss does not explode in a single epoch
126126 # This is meant to be a quick test, not a convergence test
127127 assert loss_metric < 1.25 , (
128- f"'stream.era5 .loss_mse.loss_avg' is { loss_metric } , expected to be below 0.25"
128+ f"'stream.ERA5 .loss_mse.loss_avg' is { loss_metric } , expected to be below 0.25"
129129 )
0 commit comments