danjgale / surfplot

A package for publication-ready brain surface figures
https://surfplot.readthedocs.io/en/latest/
Other
50 stars 13 forks source link

error with Plot function #9

Closed chaoshengt closed 2 years ago

chaoshengt commented 2 years ago

When I run the code:

from surfplot import Plot

p = Plot(surf_lh=lh, surf_rh=rh)

There are some errors: ValueError: Surface be a path-like string, an instance of BSPolyData, or None

How to slove this? thank you :)

danjgale commented 2 years ago

Hi @chaoshengt, whare are your lh and rh variables? They should either be a file path of a valid surface file (e.g., a GIFTI) or a preloaded surface (i.e an instance of BSPolyData)