We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1e8c31 commit fccf509Copy full SHA for fccf509
nimare/io.py
@@ -55,10 +55,10 @@ def _analysis_to_dict(study, analysis):
55
"title": study.name,
56
},
57
"coords": {
58
- "space": analysis.points[0].space,
59
- "x": [p.x for p in analysis.points],
60
- "y": [p.y for p in analysis.points],
61
- "z": [p.z for p in analysis.points],
+ "space": analysis.points[0].space if analysis.points else "UNKNOWN",
+ "x": [p.x for p in analysis.points] or [None],
+ "y": [p.y for p in analysis.points] or [None],
+ "z": [p.z for p in analysis.points] or [None],
62
63
}
64
sample_size = study.metadata.get("sample_size")
0 commit comments