Skip to content

Commit

Permalink
Fix RTD and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
prisae committed Oct 19, 2023
1 parent 1070844 commit a366131
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Required
version: 2

build:
os: "ubuntu-22.04"
tools:
python: "3.11"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py
Expand All @@ -11,7 +16,6 @@ formats: []
# Optionally set the version of Python and requirements required to build your
# docs
python:
version: 3.8
install:
- requirements: requirements-dev.txt
- method: pip
Expand Down
2 changes: 1 addition & 1 deletion docs/dev/maintenance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ release.
:target: https://coveralls.io/github/emsig/empymod?branch=main
:alt: Coveralls
.. image:: https://app.codacy.com/project/badge/Grade/0412e617e8cd42fea05303fe490b09b5
:target: https://www.codacy.com/gh/emsig/empymod/dashboard?utm_source=github.com&utm_medium=referral&utm_content=emsig/empymod&utm_campaign=Badge_Grade
:target: https://app.codacy.com/gh/emsig/empymod/dashboard?utm_source=github.com&utm_medium=referral&utm_content=emsig/empymod&utm_campaign=Badge_Grade
:alt: Codacy

Check CI coverage and code quality is good.
Expand Down
4 changes: 2 additions & 2 deletions examples/time_domain/cole_cole_ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def neg(data):
# or for IP measurements in very resisitive ground where the
# permittivity may be included. Therefore, we also provide a Cole-Cole
# function for permittivity, which treats the conductivity as constant with
# frequency, and adds the frequncy dependent complex permittivity, i.e.
# frequency, and adds the frequency-dependent complex permittivity, i.e.,
# :math:`\varepsilon_r` is replaced by a frequency-dependent formula
# :math:`\varepsilon_r(\omega)`.

Expand Down Expand Up @@ -187,7 +187,7 @@ def cole_perm(inp, p_dict):
jw = np.outer(2j*np.pi*p_dict['freq'], np.ones(2))

# Compute the complex admittivity described by a
# constant (DC) conductivity + the Cole-Cole permittivity
# constant (DC) conductivity and the Cole-Cole permittivity

epsilonH = inp['eperm_8'] + (inp['eperm_0']-inp['eperm_8'])/(1 + iotc)
epsilonV = epsilonH/p_dict['aniso']**2
Expand Down
2 changes: 1 addition & 1 deletion tests/test_fdesign.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def test_save_load_filter(tmpdir):
@pytest.mark.skipif(not plt, reason="Matplotlib not installed.")
class TestFiguresMatplotlib:

@pytest.mark.mpl_image_compare(remove_text=True, tolerance=6)
@pytest.mark.mpl_image_compare(remove_text=True, tolerance=18) # IMPROVE!
def test_plot_result1(self):
switch_off_matplotlib_agg_warning()
# Quick run `design` with all verb/plot on, just to check that no
Expand Down

0 comments on commit a366131

Please sign in to comment.