File tree 1 file changed +5
-4
lines changed 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -280,11 +280,12 @@ def run(self):
280
280
def get_path (filename ):
281
281
return os .path .join (self .assets , filename )
282
282
283
- training_xarray ["land_sea_mask" ].values = np .load (get_path (self .download_masks [1 ]))
284
- training_xarray ["geopotential_at_surface" ].values = np .load (get_path (self .download_masks [0 ]))
283
+ with self .timer ("Replacing constants" ):
284
+ training_xarray ["land_sea_mask" ].values = np .load (get_path (self .download_masks [1 ]))
285
+ training_xarray ["geopotential_at_surface" ].values = np .load (get_path (self .download_masks [0 ]))
285
286
286
- sst_mask = np .load (get_path (self .download_masks [2 ])) == False # noqa: E712
287
- training_xarray ["sea_surface_temperature" ] = training_xarray ["sea_surface_temperature" ].where (sst_mask )
287
+ sst_mask = np .load (get_path (self .download_masks [2 ])) == False # noqa: E712
288
+ training_xarray ["sea_surface_temperature" ] = training_xarray ["sea_surface_temperature" ].where (sst_mask )
288
289
289
290
gc .collect ()
290
291
You can’t perform that action at this time.
0 commit comments