Skip to content

Commit 0c8b200

Browse files
authored
Merge branch 'main' into add_animation
2 parents a16c9c5 + 42d9738 commit 0c8b200

10 files changed

Lines changed: 343 additions & 875 deletions

.github/workflows/issue-metrics.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Monthly issue metrics
22
on:
33
workflow_dispatch:
4-
schedule:
5-
- cron: '3 2 1 * *'
64

75
permissions:
86
contents: read

.github/workflows/pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
python-version: ["3.10"]
21+
python-version: ["3.11"]
2222

2323
steps:
2424
- uses: actions/checkout@v4
@@ -46,7 +46,7 @@ jobs:
4646
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
4747
run: python${{ matrix.python-version }} -m pytest --cov=crystal_toolkit --cov-report=xml --color=yes --webdriver Chrome --headless crystal_toolkit/apps/examples/tests/
4848
- uses: codecov/codecov-action@v1
49-
if: matrix.python-version == 3.10
49+
if: matrix.python-version == 3.11
5050
with:
5151
token: ${{ secrets.CODECOV_TOKEN }}
5252
file: ./coverage.xml

.github/workflows/pytest-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
20-
python-version: ["3.10"]
20+
python-version: ["3.11"]
2121

2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 0
2626
- name: Set up Python ${{ matrix.python-version }}
27-
uses: actions/setup-python@v4
27+
uses: actions/setup-python@v5
2828
with:
2929
python-version: ${{ matrix.python-version }}
3030
cache: 'pip'

.github/workflows/upgrade-dependencies.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: upgrade dependencies
33

44
on:
55
workflow_dispatch: # Allow running on-demand
6-
schedule:
7-
# Runs every Monday at 8:00 UTC (4:00 Eastern)
8-
- cron: "0 8 * * 1"
96

107
jobs:
118
upgrade:
@@ -71,6 +68,8 @@ jobs:
7168
git checkout -b auto-dependency-upgrades
7269
git branch -r | grep auto-dependency-upgrades- | xargs -I {} git merge {}
7370
git rebase ${GITHUB_REF##*/}
71+
git reset $(git merge-base ${GITHUB_REF##*/} HEAD)
72+
git commit -a -m "auto dependency upgrades"
7473
git push -f origin auto-dependency-upgrades
7574
git branch -r | grep auto-dependency-upgrades- | cut -d/ -f2 | xargs -I {} git push origin :{}
7675
- name: Open pull request if needed

crystal_toolkit/components/diffraction.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,28 +56,26 @@ def __init__(
5656
# Default XRD plot style settings
5757
default_xrd_plot_style = frozendict(
5858
xaxis={
59-
"title": "2𝜃 / º",
59+
"title": {"text": "2θ (°)", "font": {"size": 16}},
6060
"anchor": "y",
6161
"nticks": 8,
6262
"showgrid": True,
6363
"showline": True,
6464
"side": "bottom",
6565
"tickfont": {"size": 16.0},
6666
"ticks": "inside",
67-
"titlefont": {"size": 16.0},
6867
"type": "linear",
6968
"zeroline": False,
7069
},
7170
yaxis={
72-
"title": "Intensity / arb. units",
71+
"title": {"text": "Intensity / arb. units", "font": {"size": 16}},
7372
"anchor": "x",
7473
"nticks": 7,
7574
"showgrid": True,
7675
"showline": True,
7776
"side": "left",
7877
"tickfont": {"size": 16.0},
7978
"ticks": "inside",
80-
"titlefont": {"size": 16.0},
8179
"type": "linear",
8280
"zeroline": False,
8381
},

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ requires-python = ">=3.9"
1111
authors = [{ name = "Matt Horton", email = "mkhorton@lbl.gov" }]
1212

1313
dependencies = [
14-
"crystaltoolkit-extension",
1514
"dash-mp-components>=0.4.38",
1615
"dash>=2.11.0",
1716
"flask-caching",
@@ -43,7 +42,8 @@ dev = [
4342
"recommonmark",
4443
"sphinx_rtd_theme",
4544
]
46-
test = ["playwright", "pytest", "pytest-playwright", "pytest-cov"]
45+
test = ["playwright", "pytest", "pytest-playwright", "pytest-cov", "selenium<4", "urllib3<2"]
46+
jupyterlab_deprecated = ["crystaltoolkit-extension"]
4747

4848
[project.urls]
4949
repo = "https://github.com/materialsproject/crystaltoolkit"

0 commit comments

Comments
 (0)