From da8084f0210142cee476b0a364ad574abc35524c Mon Sep 17 00:00:00 2001 From: Alex Merose Date: Sun, 9 Jun 2024 15:17:50 +0200 Subject: [PATCH] reformatted sst script. --- demo/sst.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/demo/sst.py b/demo/sst.py index 2da54b0..a0f16d3 100755 --- a/demo/sst.py +++ b/demo/sst.py @@ -96,9 +96,9 @@ def rand_wx(times) -> xr.Dataset: from coiled import Cluster cluster = Cluster( - region='us-central1', - spot_policy='spot_with_fallback', - arm=True, + region='us-central1', + spot_policy='spot_with_fallback', + arm=True, ) client = cluster.get_client() @@ -130,9 +130,7 @@ def rand_wx(times) -> xr.Dataset: print('dataset opened.') -era5_sst_ds = era5_ds[['sea_surface_temperature']].sel( - time=timeframe -) +era5_sst_ds = era5_ds[['sea_surface_temperature']].sel(time=timeframe) print(f'sst_size={era5_sst_ds.nbytes / 2**30:.5f} GiBs')