Skip to content

Commit d58d8d7

Browse files
committed
fix missing packages matminer kaleido ffonons in test-scripts SI
1 parent 5b216f1 commit d58d8d7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
python-version: "3.10"
5252

5353
- name: Install package and dependencies
54-
run: pip install -e .
54+
run: pip install -e .[make-assets]
5555

5656
- name: Run script
5757
run: python ${{ matrix.script }}

examples/make_assets/scatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
np_rng = np.random.default_rng(seed=0)
2929
y_true = np_rng.normal(5, 4, rand_regression_size)
3030
y_pred = 1.2 * y_true - 2 * np_rng.normal(0, 1, rand_regression_size)
31-
y_std = (y_true - y_pred) * 10 * np_rng.normal(0, 0.1, rand_regression_size)
31+
y_std = abs((y_true - y_pred) * 10 * np_rng.normal(0, 0.1, rand_regression_size))
3232

3333

3434
# %% density scatter plotly

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ test = [
4747
"pytest-cov",
4848
"weasyprint",
4949
]
50-
data-src = ["matminer", "mp_api"]
50+
make-assets = ["ffonons>=0.1", "kaleido", "matminer", "mp_api"]
5151
export-figs = ["kaleido"]
5252
gh-pages = ["jupyter", "lazydocs", "nbconvert"]
5353
df-pdf-export = ["pdfCropMargins", "weasyprint"]

0 commit comments

Comments
 (0)