Skip to content

Commit

Permalink
reformatted sst script.
Browse files Browse the repository at this point in the history
  • Loading branch information
alxmrs committed Jun 9, 2024
1 parent 2edab31 commit da8084f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions demo/sst.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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')

Expand Down

0 comments on commit da8084f

Please sign in to comment.