Skip to content

Commit

Permalink
Fixed readthedocs build and other minor issues (#458)
Browse files Browse the repository at this point in the history
* Fixed readthedocs.yml file, so documentation for lfpy.readthedocs.io compiles

* Added encoding info to setup.py file, and changed np.alltrue -> np.all to remove DeprecationWarning when running tests

* Update to version 2.3.2
  • Loading branch information
torbjone committed Nov 28, 2023
1 parent ae7403e commit e362072
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .readthedocs.yml
@@ -1,5 +1,10 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: "miniconda3-4.7" # Specify the Python version here

sphinx:
configuration: doc/conf.py

Expand All @@ -9,7 +14,6 @@ conda:
environment: doc/environment.yml

python:
version: "3"
install:
- method: pip
path: .
2 changes: 1 addition & 1 deletion LFPy/test/test_pointprocess.py
Expand Up @@ -34,7 +34,7 @@ def test_PointProcess_00(self):
cell = LFPy.Cell(morphology=os.path.join(LFPy.__path__[0], 'test',
'ball_and_sticks.hoc'))
pp = LFPy.PointProcess(cell=cell, idx=0)
self.assertTrue(np.alltrue(
self.assertTrue(np.all(
np.array([pp.x, pp.y, pp.z]) == cell.somapos))
self.assertEqual(pp.idx, 0)

Expand Down
2 changes: 1 addition & 1 deletion LFPy/version.py
@@ -1 +1 @@
version = "2.3.1"
version = "2.3.2"
2 changes: 2 additions & 0 deletions doc/requirements.txt
Expand Up @@ -2,3 +2,5 @@
numpy>=1.8.2
numpydoc
sphinx
m2r2
sphinx_rtd_theme
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -38,7 +38,7 @@
ext_modules = []


with open('README.md', 'rt') as file:
with open('README.md', 'rt', encoding='UTF-8') as file:
long_description = file.read()

setup(
Expand Down

0 comments on commit e362072

Please sign in to comment.