Neural-Systems-at-UIO / nutil

https://nutil.readthedocs.io/en/latest/
GNU General Public License v3.0
12 stars 5 forks source link

NaN for some detections in the output json file #286

Open Wissewald opened 1 year ago

Wissewald commented 1 year ago

Dear Nutil-developers,

using Nutil Quantifier in v0.8.7 with the WHS-v4 atlas, I noticed that in some (rather rare) cases, I get a 'nan'-triplet for some objects in the output json file. I couldn't find any plausible reason for this and the result is all the same after several runs. The concerning files are attached, incl. our own custom brain regions.

I hope you have an idea what's going on there. nan-problem.zip

leuat commented 1 year ago

thanks for the report! nan are usually harmless, as they imply a divide by zero (where you typically get a zero-value area and some other value is divided by this). However the code should have managed this automatically, and shouldn't really appear in the reports. I'll have a look at it asap!

regards

Nicolaas

Majpuc commented 11 months ago

We hope this issue was fixed?

Wissewald commented 11 months ago

Yes, with v1.0.0 the NaNs turned into coordinates. Thanks!