-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpixi.toml
More file actions
68 lines (54 loc) · 2.04 KB
/
Copy pathpixi.toml
File metadata and controls
68 lines (54 loc) · 2.04 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[workspace]
authors = ["parcels-benchmarks contributors"]
channels = ["conda-forge"]
name = "parcels-benchmarks"
platforms = ["linux-64", "osx-64", "osx-arm64"]
preview = ["pixi-build"]
requires-pixi = ">=0.67.0"
[package]
name = "benchmarks"
version = "0.1.0"
[package.build]
backend = { name = "pixi-build-python", version = "0.4.*" }
[package.host-dependencies]
setuptools = "*"
setuptools_scm = "*"
[package.run-dependencies]
python = ">=3.12"
intake-xarray = "*"
py-rattler = "0.15.*"
asv = ">=0.6.5"
parcels = { path = "./Parcels" }
[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.benchmarks]
cmd = "asv run --python=same"
depends-on = ["setup-data"]
description = "Run the benchmarks, setting up the data first."
[dependencies]
benchmarks = { path = "." }
pre_commit = "*"
ipython = ">=9.11.0,<10"
netcdf4 = ">=1.7.4,<2"
#curl = "*" # for some reason SSL key signing wasn't working on Lorenz with this curl - instead use curl which is installed on the system
proj = "*"
ty = "*"