# Potential bug in the particle detector tool of SPIS 6.1.0

**URL:** <https://forum.spis.org/t/potential-bug-in-the-particle-detector-tool-of-spis-6-1-0/1112>\
**Category:** SPIS\
**Tags:** bug\
**Created:** [11 November 2022 02:47 UTC](https://forum.spis.org/t/potential-bug-in-the-particle-detector-tool-of-spis-6-1-0/1112 "2022-11-11T02:47:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sofia\_bergman](https://forum.spis.org/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@sofia\_bergman](https://forum.spis.org/u/sofia_bergman)\
**Post date:** [11 November 2022 02:47 UTC](https://forum.spis.org/t/potential-bug-in-the-particle-detector-tool-of-spis-6-1-0/1112/1 "2022-11-11T02:47:49Z")

</div>

Dear all,

I just realised I forgot to report a potential bug in the latest SPIS version. I am using the particle detector tool to trace particles, and found a potential bug in the latest version. I am using the ASCII output files to analyze the results (particularly the Velocity2DF-files), but in the latest version the information in these files look very strange. The velocity distribution is zero everywhere except in one plane (the vz = 0 plane, if I recall correctly). The outputs look correct otherwise when checking the particle trajectories etc., so SPIS seems to be doing the right thing. It just does not print the correct thing to the ASCII files. Running the same simulation in an older SPIS version works fine.

Sofia

---

<div class="post-metadata">

**Author:** ![sebhess](https://forum.spis.org/letter_avatar_proxy/v4/letter/s/45deac/32.png) [@sebhess](https://forum.spis.org/u/sebhess)\
**Post date:** [8 February 2023 10:35 UTC](https://forum.spis.org/t/potential-bug-in-the-particle-detector-tool-of-spis-6-1-0/1112/2 "2023-02-08T10:35:26Z")

</div>

Hello,  
This bug should be corrected in the next release (this month)

---

<div class="post-metadata">

**Author:** ![davidhercik](https://forum.spis.org/letter_avatar_proxy/v4/letter/d/df788c/32.png) [@davidhercik](https://forum.spis.org/u/davidhercik)\
**Post date:** [23 March 2023 13:25 UTC](https://forum.spis.org/t/potential-bug-in-the-particle-detector-tool-of-spis-6-1-0/1112/3 "2023-03-23T13:25:43Z")

</div>

Hello, I am experiencing similar problem, but with Angular2DF ASCII output, which is 0 all over. I am using Particle Detector on a physical sphere with the ‘Instrument support ID’. When I plot the energy slice (at predefined energy level) of the angular distribution function (netCDF format), it shows nicely the distribution. But when I load the full angular distribution (lon/lat/energy) it is zero. I am using the latest 6.1.2 version of SPIS. Could you please check the ASCII output also for the Angular2DF? Thank you. With the best wishes, David
