<div dir="ltr"><div>Hi,</div><div>Please stay on the mailing list. I quickly checked and the extension hdr is actually understood by ITK so I don't know what's going on. There is actually an issue on this topic</div><div><a href="https://github.com/OpenGATE/Gate/issues/329#issuecomment-627354530">https://github.com/OpenGATE/Gate/issues/329#issuecomment-627354530</a></div><div>please check if something in the conversation can help you. But I think this actor is not functional and needs to be debugged.<br></div><div>Best regards,</div><div>Simon<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 18, 2020 at 6:57 PM hassan ouhadda <<a href="mailto:ouhaddahassan@gmail.com" target="_blank">ouhaddahassan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>hi dear Simon Rit this is my mac:/control/execute verbose.mac<br><br># VISUALIZATION PARAMETERS #<br>############################<br>/vis/enable<br>/control/execute visu.mac<br><br><br>/gate/geometry/setMaterialDatabase GateMaterials.db<br><br># W O R L D<br>/gate/world/geometry/setXLength 100. cm<br>/gate/world/geometry/setYLength 100. cm<br>/gate/world/geometry/setZLength 100. cm<br><br>/gate/world/daughters/name tubec<br>/gate/world/daughters/insert cone <br>/gate/tubec/geometry/setRmin1 10. cm<br>/gate/tubec/geometry/setRmax1 12. cm<br>/gate/tubec/geometry/setRmin2 15. cm<br>/gate/tubec/geometry/setRmax2 17. cm<br>/gate/tubec/geometry/setHeight 20. cm<br>/gate/tubec/geometry/setPhiStart 90. deg<br>/gate/tubec/geometry/setDeltaPhi 360. deg<br>/gate/tubec/setMaterial Aluminium<br>/gate/tubec/vis/forceWireframe<br>/gate/tubec/vis/setColor yellow<br>/gate/tubec/placement/setTranslation 0. 0. 0. cm<br>/gate/tubec/placement/setRotationAxis 1 0 0<br>/gate/tubec/placement/setRotationAngle 90. deg<br><br># tube a rx<br>/gate/tubec/daughters/name tube<br>/gate/tubec/daughters/insert box <br>/gate/tube/geometry/setXLength 15. cm<br>/gate/tube/geometry/setYLength 15. cm<br>/gate/tube/geometry/setZLength 15. cm<br>/gate/tube/placement/setTranslation 0. 0. 0. cm<br>/gate/tube/setMaterial Vacuum<br>/gate/tube/vis/forceWireframe<br>/gate/tube/vis/setColor white<br><br><br># collimateur primaire<br>/gate/world/daughters/name coll1<br>/gate/world/daughters/insert box<br>/gate/coll1/geometry/setXLength 20. cm<br>/gate/coll1/geometry/setYLength 10. mm<br>/gate/coll1/geometry/setZLength 20. cm<br>/gate/coll1/placement/setTranslation 0.  10.5  0. cm<br>/gate/coll1/setMaterial Lead<br>/gate/coll1/vis/setColor red<br>/gate/coll1/vis/forceWireframe<br># collimateur primaire<br>/gate/world/daughters/name col1<br>/gate/world/daughters/insert box<br>/gate/col1/geometry/setXLength 15. cm<br>/gate/col1/geometry/setYLength 10. mm<br>/gate/col1/geometry/setZLength 20. cm<br>/gate/col1/placement/setTranslation -12.  -9.  0. cm<br>/gate/col1/setMaterial Lead<br>/gate/col1/vis/setColor red<br>#/gate/col1/vis/forceWireframe<br><br>/gate/world/daughters/name col2<br>/gate/world/daughters/insert box<br>/gate/col2/geometry/setXLength 15. cm<br>/gate/col2/geometry/setYLength 10. mm<br>/gate/col2/geometry/setZLength 20. cm<br>/gate/col2/placement/setTranslation 12. -9. 0. cm<br>/gate/col2/setMaterial Lead<br>/gate/col2/vis/setColor red<br>#/gate/col2/vis/forceWireframe<br><br>/gate/world/daughters/name col3<br>/gate/world/daughters/insert box<br>/gate/col3/geometry/setXLength 20. cm<br>/gate/col3/geometry/setYLength 10. mm<br>/gate/col3/geometry/setZLength 15. cm<br>/gate/col3/placement/setTranslation 0. -9. -10. cm<br>/gate/col3/setMaterial Lead<br>/gate/col3/vis/setColor red<br>#/gate/col3/vis/forceWireframe<br><br>/gate/world/daughters/name col4<br>/gate/world/daughters/insert box<br>/gate/col4/geometry/setXLength 20. cm<br>/gate/col4/geometry/setYLength 10. mm<br>/gate/col4/geometry/setZLength 15. cm<br>/gate/col4/placement/setTranslation 0. -9. 10. cm<br>/gate/col4/setMaterial Lead<br>/gate/col4/vis/setColor red<br>#/gate/col4/vis/forceWireframe<br><br><br>/gate/world/daughters/name FILTRE<br>/gate/world/daughters/insert box <br>/gate/FILTRE/geometry/setXLength 20. cm<br>/gate/FILTRE/geometry/setYLength 4.8 mm<br>/gate/FILTRE/geometry/setZLength 20. cm<br>/gate/FILTRE/setMaterial Aluminium<br>#/gate/FILTRE/vis/forceWireframe<br>/gate/FILTRE/vis/setColor yellow<br>/gate/FILTRE/placement/setTranslation 0. -11. 0. cm<br>/gate/FILTRE/placement/setRotationAxis 1 0 0<br>/gate/FILTRE/placement/setRotationAngle 0. deg<br><br><br><br><br><br><br><br><br><br>/control/execute tubo.mac<br><br>/control/execute phantm.mac<br><br><br>/control/execute physics.mac<br>/gate/physics/processes/Bremsstrahlung/activateSplitting e- 100<br>/gate/physics/processes/Bremsstrahlung/addFilter angleFilter secondaries<br>/gate/physics/processes/Bremsstrahlung/secondaries/angleFilter/setAngle 5<br>/gate/physics/processes/Bremsstrahlung/secondaries/angleFilter/setDirection 0 1 0<br><br>/gate/actor/addActor KillActor MyActor<br>/gate/actor/MyActor/save MyOutputFile.txt<br>/gate/actor/MyActor/attachTo tubec<br>/gate/actor/MyActor/addFilter particleFilter<br>/gate/actor/MyActor/particleFilter/addParticle e-<br>/gate/actor/MyActor/particleFilter/addParticle gamma<br><br>#/gate/actor/addActor KillActor MyActor2<br>#/gate/actor/MyActor2/save MyOutputFile2.txt<br>#/gate/actor/MyActor2/attachTo waterCylinder<br>#/gate/actor/MyActor2/addFilter particleFilter<br>#/gate/actor/MyActor2/particleFilter/add<font size="4">Particle gamma<br><br>/gate/actor/addActor ThermalActor tomp<br>/gate/actor/tomp/save  termo/3DMapi.hdr<br>/gate/actor/tomp/attachTo tubo<br>/gate/actor/tomp/stepHitType random<br>/gate/actor/tomp/setPosition 0. 0. 0. cm<br>/gate/actor/tomp/setVoxelSize 1. 1. 1. mm<br>/gate/actor/tomp/setThermalDiffusivity  0.32 mm2/s</font><br><br>/control/execute spectre.mac<br><br>/gate/run/initialize<br><br><br><br><br>/control/execute srce.mac<br><br>/control/execute digitizer.mac<br><br>###############<br># ACQUISITION #<br>###############<br>#/control/execute acquisition.mac<br><br><br>/gate/random/setEngineName MersenneTwister<br>/gate/application/setTotalNumberOfPrimaries 100000<br><br>/gate/application/start<br>/vis/drawVolume</div><div>if yoy can help me please?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 18 sept. 2020 à 03:30, Simon Rit <<a href="mailto:simon.rit@creatis.insa-lyon.fr" target="_blank">simon.rit@creatis.insa-lyon.fr</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div>This looks like an I/O error thrown by ITK. ITK does not know the hdr file type so probably you're trying to use this file format in a wrong place. It would be easier if you'd shared the macro file but if it's an output, then change hdr to, e.g., mha. If it's an input, Gate should handle it so the problem is difficult to explain. In any case, this has nothing to do with GDCMImageIO.</div><div>Simon<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 18, 2020 at 9:17 AM hassan ouhadda <<a href="mailto:ouhaddahassan@gmail.com" target="_blank">ouhaddahassan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">hi Gaters;</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">please i have this problem in the end of my simulation Gate ( i try to use</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">the ACTOR of termo):</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">WARNING: G4VisManager::EndOfEvent: Automatic event keeping suspended.</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">  The number of events exceeds the maximum, 100, that may be kept by</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">  the vis manager.</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">terminate called after throwing an instance of</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">'itk::ImageFileReaderException</span><span style="font-family:sans-serif;font-size:12.8px">'</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">  what():  /usr/local/include/ITK-5.0/itk</span><span style="font-family:sans-serif;font-size:12.8px">ImageFileReader.hxx:136:</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px"> Could not create IO object for reading file termo/3DMap-AbsorptionMap.hdr</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">  Tried to create one of the following:</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">    GDCMImageIO</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">  You probably failed to set a file suffix, or</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">    set the suffix to an unsupported type.</span><br style="font-family:sans-serif;font-size:12.8px"><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">Abandon (core dumped)</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">thanks</span></div>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></blockquote></div>
</blockquote></div>
</blockquote></div>