Skip to content

Commit

Permalink
BF noise.py
Browse files Browse the repository at this point in the history
Fixes and error to allow binary, uniform and normal noise samples to be further processed with a filter operation
  • Loading branch information
schofiaj authored Jun 6, 2024
1 parent 93a1660 commit 7864111
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions psychopy_visionscience/noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ def _isotropic(self, FT):
"""
_sf=numpy.max(self._sf)
_mysize=numpy.max(self._mysize)
# self._sf and self._mysize can be a tuple which cuases iisues
# self._sf and self._mysize can be a tuple which causes issues
# but we can only filer sqaure images anyway so taking max here is OK becuase
# the two elements in the tuple must be the same at this point
if _sf > _mysize / 2:
Expand All @@ -575,7 +575,7 @@ def _gabor(self, FT):
"""
_sf=numpy.max(self._sf)
_mysize=numpy.max(self._mysize)
# self._sf and self._mysize can be a tuple which cuases iisues
# self._sf and self._mysize can be a tuple which causes issues
# but we can only filer sqaure images anyway so taking max here is OK becuase
# the two elements in the tuple must be the same at this point

Expand Down

0 comments on commit 7864111

Please sign in to comment.