Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Neuropythy doc and error #608

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions pulse2percept/topography/neuropythy.py
Original file line number Diff line number Diff line change
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