Skip to content

Commit

Permalink
Turning on dask-expr for dask-sql to work.
Browse files Browse the repository at this point in the history
  • Loading branch information
alxmrs committed Apr 13, 2024
1 parent 4a18c85 commit 2edab31
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions demo/sst.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Please run the following to set up cloud resources:
```
pip install ".[demo]"
gcloud auth application-default login
coiled login
coiled setup gcp --region us-central1
Expand Down Expand Up @@ -62,6 +63,7 @@ def rand_wx(times) -> xr.Dataset:
)


# TODO(alxmrs): Make spot instances a flag.
parser = argparse.ArgumentParser()
parser.add_argument('--timeframe', choices=TIMEFRAMES.keys(), default='day')
parser.add_argument(
Expand Down
11 changes: 7 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,25 @@ classifiers = [
dependencies = [
"xarray",
"dask-sql",
"dask-expr",
]

[project.optional-dependencies]
test = [
"pytest",
io = [
"xarray[io]",
"gcsfs",
]
test = [
"xarray_sql[io]",
"pytest",
]
dev = [
"xarray_sql[test]",
"pyink",
"py-spy"
]
demo = [
"coiled"
"xarray_sql[io]",
"coiled",
]

[project.urls]
Expand Down
2 changes: 1 addition & 1 deletion xarray_sql/df.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# Turn on Dask-Expr
dask.config.set({'dataframe.query-planning-warning': False})
dask.config.set({'dataframe.query-planning': True})
dask.config.set({'dataframe.query-planning': False})
# Turn on Copy-On-Write (needs Pandas 2.0).
pd.options.mode.copy_on_write = True

Expand Down

0 comments on commit 2edab31

Please sign in to comment.