Skip to content

Commit

Permalink
Fix latex string
Browse files Browse the repository at this point in the history
  • Loading branch information
gmatteo committed Jul 21, 2024
1 parent 581b613 commit b3d47ae
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 21 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,13 @@ jobs:
config:
- os: windows-latest
python: "3.9"
resolution: highest
extras: ci,optional
#extras: ci, optional
- os: ubuntu-latest
python: '>3.9'
resolution: highest
extras: ci,optional
#extras: ci, optional
- os: macos-latest
python: '3.10'
resolution: highest
extras: ci # test with only required dependencies installed
#extras: ci # test with only required dependencies installed

# pytest-split automatically distributes work load so parallel jobs finish in similar time
# update durations file with `pytest --store-durations --durations-path tests/files/.pytest-split-durations`
Expand All @@ -65,10 +62,10 @@ jobs:
#- name: Install uv
# run: micromamba run -n abipy pip install uv

- name: Install pymatgen and dependencies
run: |
micromamba activate abipy
pip install --editable '.[${{ matrix.config.extras }}]' --resolution=${{ matrix.config.resolution }}
#- name: Install pymatgen and dependencies
# run: |
# micromamba activate abipy
# pip install --editable '.[${{ matrix.config.extras }}]'

- name: pytest split ${{ matrix.split }}
run: |
Expand Down
4 changes: 2 additions & 2 deletions abipy/dfpt/msqdos.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,10 +655,10 @@ def plot_uiso(self, tstart=0, tstop=600, num=50, what="displ", view="inequivalen
set_axlims(ax, ylims, "y")
if what == "displ":
ylabel = r"$U_{iso}\;(\AA^2)$" if ix == 0 else \
r"Anisotropy factor ($\dfrac{\epsilon_{max}}{\epsilon_{min}}}$)"
r"Anisotropy factor ($\dfrac{\epsilon_{max}}{\epsilon_{min}}$)"
elif what == "vel":
ylabel = r"$V_{iso}\;(m/s)^2$" if ix == 0 else \
r"Anisotropy factor ($\dfrac{\epsilon_{max}}{\epsilon_{min}}}$)"
r"Anisotropy factor ($\dfrac{\epsilon_{max}}{\epsilon_{min}$)"
else:
raise ValueError("Unknown value for what: `%s`" % str(what))
ax.set_ylabel(ylabel, fontsize=fontsize)
Expand Down
9 changes: 0 additions & 9 deletions docs/api/ml.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@ ml Package
:show-inheritance:


:mod:`ml_relax` Package
-----------------------

.. automodule:: abipy.ml.ml_relax
:members:
:undoc-members:
:show-inheritance:


:mod:`relax_scanner` Package
----------------------------

Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ sphinxcontrib-bibtex
jupyter-sphinx
#graphviz or python-graphviz if conda
graphviz
scikit-image

# For the time being:
# solved the issue by matching jinja2 version and nb convert as follows
Expand Down

0 comments on commit b3d47ae

Please sign in to comment.