-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpixi.toml
More file actions
50 lines (40 loc) · 1.58 KB
/
pixi.toml
File metadata and controls
50 lines (40 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[workspace]
authors = ["parcels-benchmarks contributors"]
channels = ["conda-forge"]
name = "parcels-benchmarks"
platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]
[tasks]
lint = "pre-commit run --all-files"
download-catalog = { cmd = "python scripts/download-catalog.py {{ catalog_file }} {{ output_dir }}", args = [
"catalog_file",
"output_dir",
], description = "Downloads and upzips data corresponding with an Intake catalogue. If target folder already exists - skips. The catalog file which should be used in scripts will be housed at `output_dir/catalog_file.name`" }
setup-data = { depends-on = [
{ task = "download-catalog", args = [
{ catalog_file = "catalogs/parcels-examples/catalog.yml" },
{ output_dir = "surf-data/parcels-examples" },
] },
{ task = "download-catalog", args = [
{ catalog_file = "catalogs/parcels-benchmarks/catalog.yml" },
{ output_dir = "surf-data/parcels-benchmarks" },
] },
], description = "Setup all data to be used in the benchmarks." }
_fetch_latest_parcels = { cmd = "git submodule update --recursive --remote" }
[tasks.test-open-catalogs]
cmd = "python scripts/test_load_all_catalog_entries.py"
depends-on = ["setup-data", "_fetch_latest_parcels"]
description = "Go through all the intake catalogues and try to open each dataset."
[tasks.benchmark]
cmd = "asv run"
depends-on = ["setup-data"]
description = "Run the benchmarks, setting up the data first."
[dependencies]
python = "3.12.*"
pre_commit = "*"
ipython = ">=9.11.0,<10"
netcdf4 = ">=1.7.4,<2"
curl = "*"
proj = "*"
ty = "*"
[pypi-dependencies]
benchmarks = { path = "." }