Skip to content

Commit

Permalink
MNT,FIX github actions (#33)
Browse files Browse the repository at this point in the history
* MNT remove flake8

* Revert back to linting with flake but ensure that sphinx is installed

* FIX use  instead of

* FIX use sudo

* Remove flake for good
  • Loading branch information
mvdoc authored Jul 29, 2024
1 parent dec09bf commit ef4fae0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@ jobs:
pip install -q -r test_requirements.txt
pip install -e .
- name: Lint with flake8
run: |
pip install -q flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --ignore=E402,C901 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest -v --cov=./
Expand Down
4 changes: 2 additions & 2 deletions moten/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def raw_project_stimulus(stimulus,
# checks for 2D stimuli
assert stimulus.ndim == 2 # (nimages, pixels)
assert isinstance(vhsize, tuple) and len(vhsize) == 2 # (hdim, vdim)
assert np.product(vhsize) == stimulus.shape[1] # hdim*vdim == pixels
assert np.prod(vhsize) == stimulus.shape[1] # hdim*vdim == pixels

# Compute responses
nfilters = len(filters)
Expand Down Expand Up @@ -103,7 +103,7 @@ def project_stimulus(stimulus,
# checks for 2D stimuli
assert stimulus.ndim == 2 # (nimages, pixels)
assert isinstance(vhsize, tuple) and len(vhsize) == 2 # (hdim, vdim)
assert np.product(vhsize) == stimulus.shape[1] # hdim*vdim == pixels
assert np.prod(vhsize) == stimulus.shape[1] # hdim*vdim == pixels

# Compute responses
nfilters = len(filters)
Expand Down

0 comments on commit ef4fae0

Please sign in to comment.