<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks a lot Matt, I didn't understand this. <br><br><div><hr id="stopSpelling">From: matt.hall@ucl.ac.uk<br>To: stefania.oliviero@hotmail.it<br>CC: camino@cs.ucl.ac.uk<br>Subject: RE: [Camino-users] datasynth ERROR with bvector scheme<br>Date: Fri, 17 Oct 2014 14:15:32 +0000<br><br>



<style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal {
font-size:12.0pt;
font-family:"Times New Roman","serif";
}

.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {
color:blue;
text-decoration:underline;
}

.ExternalClass span.ecxMsoHyperlinkFollowed {
color:purple;
text-decoration:underline;
}

.ExternalClass p {
font-size:12.0pt;
font-family:"Times New Roman","serif";
}

.ExternalClass pre {
font-size:10.0pt;
font-family:"Courier New";
}

.ExternalClass span.ecxHTMLPreformattedChar {
font-family:Consolas;
}

.ExternalClass span.ecxEmailStyle20 {
font-family:"Calibri","sans-serif";
color:#1F497D;
}

.ExternalClass .ecxMsoChpDefault {
font-size:10.0pt;
}

.ExternalClass div.ecxWordSection1 {
}

--></style>


<div class="ecxWordSection1">
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">Hi Stefania,</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">&nbsp;</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">Because simulations calculate an explicit phase shift for each spin based on its trajectory through the substrate, they need to know more details of the pulse
 sequence than is available from the scheme you are using. You need to specify G, delta and DELTA (not just b-value and gradient direction). The BVECTOR format doesn’t have enough information (its not a “simulable scheme” and so the simulation complains.</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">&nbsp;</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">Matt.</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;">&nbsp;</span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm;">
<p class="ecxMsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;"> camino-users-bounces@www.nitrc.org [mailto:camino-users-bounces@www.nitrc.org]
<b>On Behalf Of </b>stefania oliviero<br>
<b>Sent:</b> 17 October 2014 15:05<br>
<b>To:</b> camino-users@www.nitrc.org<br>
<b>Subject:</b> [Camino-users] datasynth ERROR with bvector scheme</span></p>
</div>
</div>
<p class="ecxMsoNormal">&nbsp;</p>
<div>
<p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">Hi all users<br>
I also have a problem with datasynth.<br>
I'm using this command to generate a substrate.<br>
<br>
</span><i><span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">datasynth -walkers ${WALKERS} -tmax ${TIMESTEPS} -geometry inflammation -numcylinders ${NUMCYL} -p 0.02 -initial uniform -seed ${INT_rnd} -voxels 1 -increments 1 -separateruns -latticesize
 ${LATSIZE} -schemefile ${SCHEMEFILE} -gamma ${GAMA} ${GAMB} -diffusivity ${DIFF} -substrateinfo -drawcrosssection ${FNAMEINFO}.gray &gt; ${OUTPUTDIR}/${FNAME} 2&gt; ${FNAMEINFO}.txt
</span></i><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;"><br>
<br>
When I use a scheme file with a stejskaltanner format It works.<br>
If I try to use a scheme file with a bvector format It doesn't work and the follow error appears:<br>
<br>
</span><i><span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">Exception in thread "main" java.lang.ClassCastException: imaging.B_VectorScheme cannot be cast to imaging.SimulableScheme<br>
&nbsp;&nbsp;&nbsp; at tools.CL_Initializer.initDataSynthesizerFromSimulation(CL_Initializer.java:2031)<br>
&nbsp;&nbsp;&nbsp; at tools.CL_Initializer.initDataSynthesizer(CL_Initializer.java:2121)<br>
&nbsp;&nbsp;&nbsp; at apps.SyntheticData.initOptions(SyntheticData.java:55)<br>
&nbsp;&nbsp;&nbsp; at apps.Executable.&lt;init&gt;(Executable.java:24)<br>
&nbsp;&nbsp;&nbsp; at apps.SyntheticData.&lt;init&gt;(SyntheticData.java:34)<br>
&nbsp;&nbsp;&nbsp; at apps.EntryPoint.getExecutable(EntryPoint.java:222)<br>
&nbsp;&nbsp;&nbsp; at apps.EntryPoint.main(EntryPoint.java:282)<br>
<br>
</span></i><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">The scheme file in bvector format is that downloaded from the tutorial DTI 4Ddwi_bvector.scheme</span><span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">:</span><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;"></span></p>
<pre><i>#B-vector scheme. Contains gradient directions and b-values</i></pre>
<pre><i>#g_x&nbsp;&nbsp;&nbsp; g_y&nbsp;&nbsp;&nbsp;&nbsp; g_z&nbsp;&nbsp;&nbsp;&nbsp; b</i></pre>
<pre><i>VERSION: BVECTOR</i></pre>
<pre><i> &nbsp;&nbsp;0.000000&nbsp;&nbsp; 0.000000&nbsp;&nbsp; 0.000000&nbsp;&nbsp; 0.000E00</i></pre>
<pre><i>&nbsp;&nbsp; 0.557286&nbsp;&nbsp; 0.673159&nbsp; -0.486096&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp;&nbsp; 0.411008&nbsp; -0.525405&nbsp; -0.744998&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp; -0.576000&nbsp;&nbsp; 0.585141&nbsp; -0.570819&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp; -0.058952&nbsp; -0.998228&nbsp;&nbsp; 0.008080&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp;&nbsp; 0.671827&nbsp; -0.643902&nbsp; -0.366113&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp; -0.147877&nbsp;&nbsp; 0.617325&nbsp; -0.772685&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp; -0.527370&nbsp;&nbsp; 0.221392&nbsp; -0.820285&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp;&nbsp; 0.091543&nbsp; -0.251136&nbsp; -0.963613&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp; -0.850415&nbsp; -0.498192&nbsp;&nbsp; 0.169112&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp; -0.764016&nbsp; -0.584574&nbsp; -0.273045&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp;&nbsp; 0.000000&nbsp;&nbsp; 0.000000&nbsp;&nbsp; 0.000000&nbsp;&nbsp; 0.000E00</i></pre>
<pre><i>&nbsp;&nbsp; 0.300301&nbsp;&nbsp; 0.470652&nbsp; -0.829642&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp; -0.527168&nbsp; -0.551126&nbsp; -0.646804&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp;&nbsp; 0.723852&nbsp;&nbsp; 0.265109&nbsp; -0.636989&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp; -0.878656&nbsp;&nbsp; 0.262998&nbsp; -0.398492&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp; -0.286924&nbsp;&nbsp; 0.886166&nbsp; -0.363848&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp;&nbsp; 0.938309&nbsp; -0.334647&nbsp; -0.087105&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp; -0.397842&nbsp;&nbsp; 0.913244&nbsp;&nbsp; 0.087796&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp; -0.085190&nbsp; -0.635081&nbsp; -0.767733&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp;&nbsp; 0.307272&nbsp;&nbsp; 0.873671&nbsp;&nbsp; 0.377204&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp;&nbsp; 0.448367&nbsp;&nbsp; 0.003264&nbsp; -0.893843&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp;&nbsp; 0.000000&nbsp;&nbsp; 0.000000&nbsp;&nbsp; 0.000000&nbsp;&nbsp; 0.000E00</i></pre>
<pre><i>&nbsp;&nbsp; 0.955559&nbsp;&nbsp; 0.060361&nbsp; -0.288553&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp; -0.157881&nbsp; -0.866147&nbsp;&nbsp; 0.474197&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp;&nbsp; 0.178264&nbsp; -0.864319&nbsp; -0.470292&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp; -0.510729&nbsp; -0.858184&nbsp;&nbsp; 0.051732&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp;&nbsp; 0.726454&nbsp; -0.673055&nbsp;&nbsp; 0.138787&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp; -0.059404&nbsp; &nbsp;0.198388&nbsp; -0.978322&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp; -0.368122&nbsp; -0.199753&nbsp; -0.908067&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp; -0.777683&nbsp; -0.149878&nbsp; -0.610528&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp;&nbsp; 0.762668&nbsp; -0.240762&nbsp; -0.600309&nbsp;&nbsp; 1.000E09</i></pre>
<pre><i>&nbsp;&nbsp; 0.973096&nbsp;&nbsp; 0.146769&nbsp;&nbsp; 0.177601&nbsp;&nbsp; 1.000E09</i></pre>
<p class="ecxMsoNormal"><i><span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">&nbsp;</span></i><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;">What is the problem? Where am I doing wrong?<br>
Thanks for interest.<br>
<br>
Best regards<br>
Stefania Oliviero</span></p>
</div>
</div></div>                                               </div></body>
</html>