Skip to content

Commit ca4e263

Browse files
authored
Merge pull request #53 from yhuang43/master
fix surfa.io.mesh.GiftiIO.load()
2 parents 04b531b + b8b0ee5 commit ca4e263

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

surfa/io/mesh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,9 @@ def load(self, filename):
274274
faces = gii.agg_data('triangle')
275275

276276
# ensure data exists
277-
if not vertices:
277+
if (vertices.size == 0):
278278
raise RuntimeError('cannot load mesh since GIFTI file does not contain pointset data')
279-
if not faces:
279+
if (faces.size == 0):
280280
raise RuntimeError('cannot load mesh since GIFTI file does not contain triangle data')
281281

282282
# extract geometry metadata

0 commit comments

Comments
 (0)