<div dir="ltr">That's really helpful, thanks.</div><div class="gmail_extra"><br><div class="gmail_quote">On 14 April 2017 at 21:41, Michiel Cottaar <span dir="ltr"><<a href="mailto:Michiel.Cottaar@ndcn.ox.ac.uk" target="_blank">Michiel.Cottaar@ndcn.ox.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>Hi Emma,</p>
    <p>The problem is that wb_view only supports float32 while python
      likes to convert everything to float64. The produced gifti file
      opens normally in wb_view, when I convert your data to float32
      just before creating the data arrays (see attached file).</p>
    <p>Michiel<br>
    </p><div><div class="h5">
    <br>
    <div class="m_8084779562082969877moz-cite-prefix">On 12/04/2017 09:54, Emma Robinson
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      
      <div dir="ltr">Hi
        <div><br>
        </div>
        <div>I have a problem reading giftis that I write from nibabel.
          It works if I replace the data with data taken straight out of
          another gifti data array, but if I add a matrix of floats I am
          unable to read it into the HCP's workbench viewer, not use the
          FSL gifti reader. I get the following error messages:</div>
        <div><br>
        </div>
        <div>from wb_view</div>
        <div><br>
        </div>
        <div>
          <p style="margin:0px">Parse Error while reading
            /vol/medic01/users/ecr05/<wbr>TESTINGRESULT2.func.gii: Decoding
            of GZip Base64 Binary data failed.Decoded 0 bytes but should
            be 0 bytes. line number: 15 column number: 68831</p>
        </div>
        <div><br>
        </div>
        <div>from FSL</div>
        <div><br>
        </div>
        <div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">terminate called after throwing
              an instance of 'GiftiException'
            </span><br>
             what():  Requested non-float data from float GIFTI field<br>
            <br>
          </span></div>
        <div>I've attached some test code and the gifti file I tested it
          with. Any suggestions of how to fix this would be appreciated,
          thanks</div>
        <div><br>
        </div>
        <div>Emma</div>
      </div>
      <br>
      <fieldset class="m_8084779562082969877mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
Neuroimaging mailing list
<a class="m_8084779562082969877moz-txt-link-abbreviated" href="mailto:Neuroimaging@python.org" target="_blank">Neuroimaging@python.org</a>
<a class="m_8084779562082969877moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/neuroimaging" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/neuroimaging</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>______________________________<wbr>_________________<br>
Neuroimaging mailing list<br>
<a href="mailto:Neuroimaging@python.org">Neuroimaging@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/neuroimaging" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/neuroimaging</a><br>
<br></blockquote></div><br></div>