<div dir="ltr">Hello Alex, <div><br></div><div>pull-request #23 is now merged, thanks again. I will ask for a configuration in the <a href="http://my.cdash.org/index.php?project=GATE">dashboard</a> to be compiled daily with cxx11 enabled. </div><div><br></div><div>David</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 28, 2015 at 3:14 PM, Alex Vergara Gil <span dir="ltr"><<a href="mailto:alexvergaragil@gmail.com" target="_blank">alexvergaragil@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear David<br>
<br>
On pull request <a href="https://github.com/OpenGATE/Gate/pull/23" target="_blank">https://github.com/OpenGATE/Gate/pull/23</a> I added both<br>
the changes to make Gate c++11 compatible and the fix of the mentioned<br>
bug.<br>
<br>
Regards<br>
<span class="HOEnZb"><font color="#888888">Alex<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
2015-05-28 8:13 GMT-04:00, Alex Vergara Gil <<a href="mailto:alexvergaragil@gmail.com">alexvergaragil@gmail.com</a>>:<br>
> Dear David<br>
><br>
> There is another things, code 'elegancy' lead to some specific<br>
> enhances that must be taken in consideration:<br>
><br>
> 1. Indentation: helps to read better the code so bugs and unnecessary<br>
> sentences raise from all their hidden places, specially when you make<br>
> automatic indentation.<br>
> 2. changing from i++ to ++i as I explain leads to optimization of code<br>
> since it avoid a whole extra step at each call.<br>
> 3. Using std::vector functionalities lead to code enhancement since it<br>
> use a really optimized method for travel among lists.<br>
> 4. Using structured vectors is a security enhancement since you can no<br>
> longer create vector from different sizes, avoiding to not initialize<br>
> some of them and the corresponding segmentation fault when calling.<br>
><br>
> I know there are a bunch of changes, but I can run all my macros with<br>
> them, decreasing a little the memory consumption, increasing a little<br>
> the histories per second and finally when I look now at the code it<br>
> seems made in modern times ;)<br>
><br>
> Regards<br>
> Alex<br>
><br>
> 2015-05-28 7:24 GMT-04:00, Alex Vergara Gil <<a href="mailto:alexvergaragil@gmail.com">alexvergaragil@gmail.com</a>>:<br>
>> Hello David<br>
>><br>
>> As I said on github, you can create a testing branch so I can still<br>
>> contribute with great amount of changes and user can test them and<br>
>> report bugs, this will not affect Gate at all and we all be happy ;)<br>
>><br>
>> Regards<br>
>> Alex<br>
>><br>
>> 2015-05-28 2:11 GMT-04:00, David Sarrut<br>
>> <<a href="mailto:David.Sarrut@creatis.insa-lyon.fr">David.Sarrut@creatis.insa-lyon.fr</a>>:<br>
>>> Hello Alex,<br>
>>><br>
>>> as said on github (see <a href="https://github.com/OpenGATE/Gate/issues/22" target="_blank">https://github.com/OpenGATE/Gate/issues/22</a>),<br>
>>> could<br>
>>> you please provide a separate pull-request for this issue, *without*<br>
>>> replacement of std::vector -> please keep it simple. Even if the code is<br>
>>> not so good, I acknowledge that ;) refrain to changing it to be more<br>
>>> 'elegant' as it could lead to unexpected issues.<br>
>>><br>
>>> dont get me wrong, I really appreciate your contribution, but we need to<br>
>>> ensure to not break something ...<br>
>>><br>
>>> thanks,<br>
>>> David<br>
>>><br>
>>> On Tue, May 26, 2015 at 2:02 PM, Alex Vergara Gil<br>
>>> <<a href="mailto:alexvergaragil@gmail.com">alexvergaragil@gmail.com</a>><br>
>>> wrote:<br>
>>><br>
>>>> Dear David<br>
>>>><br>
>>>> Indeed, doing that replace solved the bug, not only for range<br>
>>>> translator but also for hounsfield translator, in my pull request are<br>
>>>> the necessary changes with a bunch of code enhacements (basically a<br>
>>>> lot of replacements to use std::vector functionalities).<br>
>>>><br>
>>>> Look now at one of my results on a phantom compared with FLUKA.<br>
>>>><br>
>>>> Regards<br>
>>>> Alex<br>
>>>><br>
>>>> 2015-05-26 3:32 GMT-04:00, David Sarrut<br>
>>>> <<a href="mailto:David.Sarrut@creatis.insa-lyon.fr">David.Sarrut@creatis.insa-lyon.fr</a><br>
>>>> >:<br>
>>>> > Hello Alex,<br>
>>>> ><br>
>>>> > I looked at your coments on the range translator and indeed, there is<br>
>>>> > a<br>
>>>> > bug. Could you please test if replacing the line<br>
>>>> > if(r2> pImage->GetOutsideValue()+1){<br>
>>>> > with<br>
>>>> > if(r2>= pImage->GetOutsideValue()+1){<br>
>>>> ><br>
>>>> > solve the issue ?<br>
>>>> ><br>
>>>> > Thanks you indeed to propose me to be coauthor of the paper, but I<br>
>>>> > really<br>
>>>> > did nothing to this work, so I cannot accept, this is not fair ;)<br>
>>>> ><br>
>>>> > I am however interested to read the draft if possible.<br>
>>>> ><br>
>>>> > As journal, I can suggest maybe : <a href="http://jnm.snmjournals.org" target="_blank">http://jnm.snmjournals.org</a> or<br>
>>>> > <a href="http://www.springer.com/medicine/nuclear+medicine/journal/259" target="_blank">http://www.springer.com/medicine/nuclear+medicine/journal/259</a><br>
>>>> ><br>
>>>> > David<br>
>>>> ><br>
>>>> ><br>
>>>> ><br>
>>>> > On Thu, May 21, 2015 at 1:34 PM, Alex Vergara Gil<br>
>>>> > <<a href="mailto:alexvergaragil@gmail.com">alexvergaragil@gmail.com</a>><br>
>>>> > wrote:<br>
>>>> ><br>
>>>> >> Dear David<br>
>>>> >><br>
>>>> >> I think I have solved the bug, I ran several tests and I think<br>
>>>> >> results<br>
>>>> >> are fine now for both range and hounsfield translators.<br>
>>>> >><br>
>>>> >> Next days I will be writing my results. If you want I will send you<br>
>>>> >> the draft I will prepare so you can coauthor the paper, is there a<br>
>>>> >> magazine you may recommended?<br>
>>>> >><br>
>>>> >> Suggested title: "Using Gate for Molecular Radiotherapy Dosimetry on<br>
>>>> >> clinical environments"<br>
>>>> >><br>
>>>> >> Regards<br>
>>>> >> Alex<br>
>>>> >><br>
>>>> >> 2015-05-20 1:12 GMT-04:00, David Sarrut<br>
>>>> >> <<a href="mailto:David.Sarrut@creatis.insa-lyon.fr">David.Sarrut@creatis.insa-lyon.fr</a><br>
>>>> >> >:<br>
>>>> >> > Hello Alex,<br>
>>>> >> ><br>
>>>> >> > I will study this issue probably next week,<br>
>>>> >> ><br>
>>>> >> > thanks again for reporting,<br>
>>>> >> > David<br>
>>>> >> ><br>
>>>> >> > On Tue, May 19, 2015 at 10:49 PM, Alex Vergara Gil<br>
>>>> >> > <<a href="mailto:alexvergaragil@gmail.com">alexvergaragil@gmail.com</a><br>
>>>> >> >> wrote:<br>
>>>> >> ><br>
>>>> >> >> Dear David<br>
>>>> >> >><br>
>>>> >> >> I have modified my macros and now I have a good patient dose<br>
>>>> >> >> image,<br>
>>>> so<br>
>>>> >> >> I think Hounsfield Translator is free of bugs, I will try to put<br>
>>>> >> >> Air<br>
>>>> >> >> as first segmentation material to see whats happens, but in the<br>
>>>> >> >> way<br>
>>>> >> >> I<br>
>>>> >> >> am seeing this Hounsfield is far better approach for the problem.<br>
>>>> >> >><br>
>>>> >> >> I will update my templates to achieve this macro and when is<br>
>>>> >> >> ready<br>
>>>> >> >> I<br>
>>>> >> >> will publish my results.<br>
>>>> >> >> On issue #18 I put all my progress, This image was obtained with<br>
>>>> >> >> geant4 10.1.1 + gate with all modifications of pull request #21<br>
>>>> >> >> applied.<br>
>>>> >> >><br>
>>>> >> >> Regards<br>
>>>> >> >> Alex<br>
>>>> >> >><br>
>>>> >> >> 2015-05-19 14:29 GMT-04:00, Alex Vergara Gil <<br>
>>>> <a href="mailto:alexvergaragil@gmail.com">alexvergaragil@gmail.com</a><br>
>>>> >> >:<br>
>>>> >> >> > Dear David<br>
>>>> >> >> ><br>
>>>> >> >> > I am trying to move my workflow to Hounsfield converter, since<br>
>>>> >> >> > I<br>
>>>> can<br>
>>>> >> >> > get the range translator to work properly (In Patient Phantom 2<br>
>>>> >> >> > you<br>
>>>> >> >> > may see that a material - Muscle - is taken as air). Up to now<br>
>>>> >> >> > I<br>
>>>> >> >> > have<br>
>>>> >> >> > successfully ran a voxelized physical phantom as you may see in<br>
>>>> >> >> > the<br>
>>>> >> >> > image (cylinder phantom 1), but when using a patient phantom<br>
>>>> >> >> > thing<br>
>>>> >> >> > goes really odd! Somehow geometry are no longer rendered<br>
>>>> >> >> > correctly<br>
>>>> >> >> > (patient phantom 1). I am trying to check what is wrong with<br>
>>>> >> >> > the<br>
>>>> >> >> > images but I see no errors, even the density map I export from<br>
>>>> >> >> > gate<br>
>>>> >> >> > is<br>
>>>> >> >> > fine (patient density phantom 1). I also see no relative<br>
>>>> differences<br>
>>>> >> >> > between the cylinder and patient macros, except for the image<br>
>>>> >> >> > properties.<br>
>>>> >> >> ><br>
>>>> >> >> > Regards<br>
>>>> >> >> > Alex<br>
>>>> >> >> ><br>
>>>> >> >><br>
>>>> >> ><br>
>>>> >> ><br>
>>>> >> ><br>
>>>> >> > --<br>
>>>> >> > David Sarrut, Phd<br>
>>>> >> > Directeur de recherche CNRS<br>
>>>> >> > CREATIS, UMR CNRS 5220, Inserm U 1044<br>
>>>> >> > Centre de lutte contre le cancer Léon Bérard<br>
>>>> >> > 28 rue Laënnec, 69373 Lyon cedex 08<br>
>>>> >> > Tel : <a href="tel:04%2078%2078%2051%2051" value="+33478785151">04 78 78 51 51</a> / <a href="tel:06%2074%2072%2005%2042" value="+33674720542">06 74 72 05 42</a><br>
>>>> >> > <a href="http://www.creatis.insa-lyon.fr/~dsarrut" target="_blank">http://www.creatis.insa-lyon.fr/~dsarrut</a><br>
>>>> >> > _________________________________<br>
>>>> >> > "2 + 2 = 5, for extremely large values of 2"<br>
>>>> >> > _________________________________<br>
>>>> >> ><br>
>>>> >><br>
>>>> ><br>
>>>> ><br>
>>>> ><br>
>>>> > --<br>
>>>> > David Sarrut, Phd<br>
>>>> > Directeur de recherche CNRS<br>
>>>> > CREATIS, UMR CNRS 5220, Inserm U 1044<br>
>>>> > Centre de lutte contre le cancer Léon Bérard<br>
>>>> > 28 rue Laënnec, 69373 Lyon cedex 08<br>
>>>> > Tel : 04 78 78 51 51 / 06 74 72 05 42<br>
>>>> > <a href="http://www.creatis.insa-lyon.fr/~dsarrut" target="_blank">http://www.creatis.insa-lyon.fr/~dsarrut</a><br>
>>>> > _________________________________<br>
>>>> > "2 + 2 = 5, for extremely large values of 2"<br>
>>>> > _________________________________<br>
>>>> ><br>
>>>><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> David Sarrut, Phd<br>
>>> Directeur de recherche CNRS<br>
>>> CREATIS, UMR CNRS 5220, Inserm U 1044<br>
>>> Centre de lutte contre le cancer Léon Bérard<br>
>>> 28 rue Laënnec, 69373 Lyon cedex 08<br>
>>> Tel : 04 78 78 51 51 / 06 74 72 05 42<br>
>>> <a href="http://www.creatis.insa-lyon.fr/~dsarrut" target="_blank">http://www.creatis.insa-lyon.fr/~dsarrut</a><br>
>>> _________________________________<br>
>>> "2 + 2 = 5, for extremely large values of 2"<br>
>>> _________________________________<br>
>>><br>
>><br>
><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">David Sarrut, Phd<br>Directeur de recherche CNRS<br>CREATIS, UMR CNRS 5220, Inserm U 1044<div>Centre de lutte contre le cancer Léon Bérard<br>28 rue Laënnec, 69373 Lyon cedex 08<br>Tel : 04 78 78 51 51 / 06 74 72 05 42<br><a href="http://www.creatis.insa-lyon.fr/~dsarrut" target="_blank">http://www.creatis.insa-lyon.fr/~dsarrut</a><br>_________________________________</div><div> "2 + 2 = 5, for extremely large values of 2"<br>_________________________________</div></div></div>
</div></div>