<div dir="ltr">Thanks Gregory, that's really helpful.</div><br><div class="gmail_quote"><div dir="ltr">On Fri, Aug 18, 2017 at 2:30 PM Gregory Lee <<a href="mailto:grlee77@gmail.com">grlee77@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Mike,<br><br></div>Yes, the default is 'dv'.  The documentation could be updated to make this clearer.  <br><br>p.s.<br>Depending on the data you have, one other thing to watch out for is the strict_sort flag.  I recommend always setting strict_sort=True, but it is False by default for reasons of backwards compatibility.  It won't matter for simple 3D structural scans or standard fMRI timeseries data, but for anything with additional dimensions (such as echoes, ASL tagging labels, etc) it prevents things from potentially getting mis-sorted.  It doesn't hurt to always have it on by default.<br><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"></div></div><div class="gmail_extra"><div class="gmail_quote">On Fri, Aug 18, 2017 at 1:18 AM, Mike Jarrett <span dir="ltr"><<a href="mailto:mike.jarrett@ubc.ca" target="_blank">mike.jarrett@ubc.ca</a>></span> wrote:<br></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello experts!<div><br></div><div>After some trial and error, I've discovered that (at least in the cases I've checked), the default action of nib.parrec.load('file.PAR') is to scale the rec image to "display values".</div><div><br></div><div>In other words, </div><div>> nib.parrec.load('file.PAR').get_data()</div><div>returns the same values as</div><div>> nib.parrec.load('file.PAR',scaling='dv').get_data()</div><div><br></div><div>Is this the intended behaviour? The docs don't seem to explicitly say that scaling='dv' is the default, only that setting the scaling value is optional. I had naively expected that not setting a preferred scaling would return the raw unscaled values.</div><div><br></div><div>Could anyone shed light on this for me? I now know I can just set scaling='fp' to get floating point values, but it would put my mind at ease if someone could confirm that I'm looking at this correctly.</div><div><br></div><div>Thanks!</div><span class="m_-460696703526147269HOEnZb"><font color="#888888"><div><br></div><div>Mike Jarrett</div></font></span></div>
<br></blockquote></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br>
Neuroimaging mailing list<br>
<a href="mailto:Neuroimaging@python.org" target="_blank">Neuroimaging@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/neuroimaging" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/neuroimaging</a><br>
<br></blockquote></div><br></div>
_______________________________________________<br>
Neuroimaging mailing list<br>
<a href="mailto:Neuroimaging@python.org" target="_blank">Neuroimaging@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/neuroimaging" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/neuroimaging</a><br>
</blockquote></div>