Skip to content

Instantly share code, notes, and snippets.

View JohnGriffiths's full-sized avatar

John Griffiths JohnGriffiths

View GitHub Profile
@JohnGriffiths
JohnGriffiths / looking_for_anterior_cingulate_cortex_in_tvb_connectivities.ipynb
Created October 11, 2018 22:00
looking_for_anterior_cingulate_cortex_in_tvb_connectivities.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Dipy hcp dsi reconstruction error

====================================

I'm getting an error with dipy DSI reconstruction on HCP WU-MINN data.

It's a bit of a mystery as I've definitely got successful reconstructions using dipy with code very similar to this. But now I am getting the error below every time.

All the files are included in this gist to reproduce the error, apart from the DWI data (too big); that was simply data.nii.gz from subject 100307.

from tvb.simulator.lab import *
import threading
import numpy
import time
import sys
from matplotlib.tri import Triangulation
from matplotlib import pyplot as plt
class SimThread(threading.Thread):
@JohnGriffiths
JohnGriffiths / 'getyourboton_code
Last active August 29, 2015 14:09
Get your bot on code
(gist naming file; ignore)
@JohnGriffiths
JohnGriffiths / 'tvb-robot
Last active August 29, 2015 14:09
tvb-robot - controlling a bot with the virtual brain platform
(gist naming file. ignore)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JohnGriffiths
JohnGriffiths / Philosophy_Of_Bayes
Last active August 29, 2015 13:57
Discussions and furtherance of understanding of Bayesian shizzle ma nizzle. Chip in by all means; but please do not judge.
(naming file with starting whitespace to fool github gist so I can add more files to this repo without random name changes)
@JohnGriffiths
JohnGriffiths / making funky brain images with paraview
Last active August 29, 2015 13:57
Documents some useful tips for making nice brain pics with paraview. (Note: have a separate, more comprehensive gist on this that includes paraview state files. Must remember to add them here at some point...)
(gist title doc)
Maybe one day github will sort out the silly naming behaviour of gists,
which randomly default the name of included files in an unhelpful manner.
In the meantime, a simple workaround is to include a file this one with
a sensible, descriptive name for the gist, but with a blank space as the
first character.