File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 33
44Please run the following to set up cloud resources:
55```
6+ pip install ".[demo]"
67gcloud auth application-default login
78coiled login
89coiled setup gcp --region us-central1
@@ -62,6 +63,7 @@ def rand_wx(times) -> xr.Dataset:
6263 )
6364
6465
66+ # TODO(alxmrs): Make spot instances a flag.
6567parser = argparse .ArgumentParser ()
6668parser .add_argument ('--timeframe' , choices = TIMEFRAMES .keys (), default = 'day' )
6769parser .add_argument (
Original file line number Diff line number Diff line change @@ -32,12 +32,17 @@ dependencies = [
3232]
3333
3434[project .optional-dependencies ]
35+ io = [
36+ " xarray[io]" ,
37+ " gcsfs" ,
38+ ]
3539test = [
36- " pytest" ,
37- " xarray[io]" ,
38- " gcsfs" ,
40+ " xarray_sql[io]" ,
41+ " pytest" ,
3942]
43+
4044demo = [
45+ " xarray_sql[io]" ,
4146 " coiled"
4247]
4348
Original file line number Diff line number Diff line change 1010Block = t .Dict [t .Hashable , slice ]
1111Chunks = t .Optional [t .Dict [str , int ]]
1212
13+ # Turn on Dask-Expr
14+ dask .config .set ({'dataframe.query-planning-warning' : False })
15+ dask .config .set ({'dataframe.query-planning' : True })
16+ # Turn on Copy-On-Write (needs Pandas 2.0).
17+ pd .options .mode .copy_on_write = True
18+
1319
1420# Borrowed from Xarray
1521def _get_chunk_slicer (
You can’t perform that action at this time.
0 commit comments