Skip to content

Commit f479d08

Browse files
committed
Modernize a bit
1 parent 2cc8f9b commit f479d08

5 files changed

Lines changed: 103 additions & 25 deletions

File tree

.dvc/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[core]
22
remote = calkit
33
['remote "calkit"']
4-
url = https://api.calkit.io/projects/petebachant/example-basic/dvc
4+
url = https://api.calkit.io/projects/calkit/example-basic/dvc
55
auth = custom

dvc.lock

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,41 @@
11
schema: '2.0'
22
stages:
33
collect-data:
4-
cmd: python scripts/collect-data.py
4+
cmd: calkit runenv -n py -- python scripts/collect-data.py
55
deps:
6+
- path: environment.yml
7+
hash: md5
8+
md5: 627d0116e60eab837fbf07edb4d370e0
9+
size: 114
610
- path: scripts/collect-data.py
711
hash: md5
812
md5: 570acda0f323c18ae0a336583e9d661d
913
size: 424
1014
outs:
1115
- path: data/raw/data.csv
1216
hash: md5
13-
md5: 1eec95cacd0a1ad08e06b727d8b701c2
14-
size: 43618
17+
md5: 2f95ffed166d10441ff6a9dbf57e80d6
18+
size: 43623
1519
plot-voltage:
16-
cmd: python scripts/plot-voltage.py
20+
cmd: calkit runenv -n py -- python scripts/plot-voltage.py
1721
deps:
1822
- path: data/raw/data.csv
1923
hash: md5
20-
md5: 1eec95cacd0a1ad08e06b727d8b701c2
21-
size: 43618
24+
md5: 2f95ffed166d10441ff6a9dbf57e80d6
25+
size: 43623
26+
- path: environment.yml
27+
hash: md5
28+
md5: 627d0116e60eab837fbf07edb4d370e0
29+
size: 114
2230
- path: scripts/plot-voltage.py
2331
hash: md5
2432
md5: 087a567a0c0f6199a908399013d564a1
2533
size: 297
2634
outs:
2735
- path: figures/voltage-time-series.png
2836
hash: md5
29-
md5: a4fc5ebee750a839c23baee1e58bf94a
30-
size: 45123
37+
md5: 2f8ba1b51544c4fe43ef6aac9a54723b
38+
size: 47290
3139
copy-figures-to-paper-dir:
3240
cmd: cp -r figures paper/figures
3341
deps:
@@ -43,19 +51,20 @@ stages:
4351
size: 45148
4452
nfiles: 2
4553
build-paper:
46-
cmd: latexmk -pdf paper.tex
54+
cmd: "calkit runenv -n tex -- \"cd paper && latexmk -interaction=nonstopmode -pdf
55+
paper.tex\"\n"
4756
deps:
48-
- path: ../figures
57+
- path: figures
4958
hash: md5
50-
md5: d6fd2418e3b774996ddd0f26715c36ac.dir
51-
size: 45148
59+
md5: 770239afa5189caf8c2e2fc9664138fd.dir
60+
size: 47315
5261
nfiles: 2
53-
- path: paper.tex
62+
- path: paper/paper.tex
5463
hash: md5
5564
md5: f0c474020965d39585a2c0cc99d6cb8f
5665
size: 519
5766
outs:
58-
- path: paper.pdf
67+
- path: paper/paper.pdf
5968
hash: md5
60-
md5: c736dfef6da2768017e4cb293adcaa3e
61-
size: 89940
69+
md5: 15a3330b3c915468052650545d943a42
70+
size: 96051

dvc.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
stages:
22
collect-data:
3-
cmd: python scripts/collect-data.py
3+
cmd: calkit runenv -n py -- python scripts/collect-data.py
44
deps:
55
- scripts/collect-data.py
6+
- environment.yml
67
outs:
78
- data/raw/data.csv
89
plot-voltage:
9-
cmd: python scripts/plot-voltage.py
10+
cmd: calkit runenv -n py -- python scripts/plot-voltage.py
1011
deps:
1112
- scripts/plot-voltage.py
1213
- data/raw/data.csv
14+
- environment.yml
1315
outs:
1416
- figures/voltage-time-series.png
1517
build-paper:
16-
cmd: latexmk -pdf paper.tex
17-
wdir: paper
18+
cmd: >
19+
calkit runenv -n tex --
20+
"cd paper && latexmk -interaction=nonstopmode -pdf paper.tex"
1821
deps:
19-
- ../figures
20-
- paper.tex
22+
- figures
23+
- paper/paper.tex
2124
outs:
22-
- paper.pdf
25+
- paper/paper.pdf

environment-lock.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
channels:
2+
- conda-forge
3+
dependencies:
4+
- brotli=1.1.0
5+
- brotli-bin=1.1.0
6+
- bzip2=1.0.8
7+
- ca-certificates=2024.8.30
8+
- certifi=2024.8.30
9+
- contourpy=1.3.1
10+
- cycler=0.12.1
11+
- fonttools=4.55.3
12+
- freetype=2.12.1
13+
- kiwisolver=1.4.7
14+
- lcms2=2.16
15+
- lerc=4.0.0
16+
- libblas=3.9.0
17+
- libbrotlicommon=1.1.0
18+
- libbrotlidec=1.1.0
19+
- libbrotlienc=1.1.0
20+
- libcblas=3.9.0
21+
- libcxx=19.1.5
22+
- libdeflate=1.22
23+
- libexpat=2.6.4
24+
- libffi=3.4.2
25+
- libgfortran=5.0.0
26+
- libgfortran5=13.2.0
27+
- libjpeg-turbo=3.0.0
28+
- liblapack=3.9.0
29+
- liblzma=5.6.3
30+
- libmpdec=4.0.0
31+
- libopenblas=0.3.28
32+
- libpng=1.6.44
33+
- libsqlite=3.47.2
34+
- libtiff=4.7.0
35+
- libwebp-base=1.4.0
36+
- libxcb=1.17.0
37+
- libzlib=1.3.1
38+
- llvm-openmp=19.1.5
39+
- matplotlib=3.9.3
40+
- matplotlib-base=3.9.3
41+
- munkres=1.1.4
42+
- ncurses=6.5
43+
- numpy=2.2.0
44+
- openjpeg=2.5.3
45+
- openssl=3.4.0
46+
- packaging=24.2
47+
- pandas=2.2.3
48+
- pillow=11.0.0
49+
- pip=24.3.1
50+
- pthread-stubs=0.4
51+
- pyparsing=3.2.0
52+
- python=3.13.1
53+
- python-dateutil=2.9.0.post0
54+
- python-tzdata=2024.2
55+
- python_abi=3.13
56+
- pytz=2024.1
57+
- qhull=2020.2
58+
- readline=8.2
59+
- six=1.17.0
60+
- tk=8.6.13
61+
- tornado=6.4.2
62+
- tzdata=2024b
63+
- xorg-libxau=1.0.11
64+
- xorg-libxdmcp=1.1.5
65+
- zstd=1.5.6
66+
name: calkit-example-basic

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: py
1+
name: calkit-example-basic
22
channels:
33
- conda-forge
44
dependencies:

0 commit comments

Comments
 (0)