Skip to content

Commit

Permalink
[ENH][DOC] Add doc and error for neuropythy (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgranley committed Jan 29, 2024
1 parent 6e8471a commit 180b83b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pulse2percept/topography/neuropythy.py
Expand Up @@ -10,7 +10,8 @@ class NeuropythyMap(CorticalMap):

def __init__(self, subject, cache_dir=None, **params):
"""
Uses the visual field maps from the neuropythy package
Uses the visual field maps from the neuropythy package.
Requires the neuropythy package to be installed (`pip install neuropythy`)
Parameters
----------
Expand Down Expand Up @@ -40,7 +41,7 @@ def __init__(self, subject, cache_dir=None, **params):
try:
import neuropythy as ny
except ImportError:
raise ImportError("NeuropythyMap requires the neuropythy package.")
raise ImportError("NeuropythyMap requires the neuropythy package (`pip install neuropythy`).")
super().__init__(**params)
self.cache_dir = os.path.expanduser(os.path.join('~', '.neuropythy_p2p')) if cache_dir is None else os.path.expanduser(cache_dir)
self.subject = self.parse_subject(subject)
Expand Down

0 comments on commit 180b83b

Please sign in to comment.