You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My guess is this hasn't been caught because CI only tests Release on MSVC. This is the only issue I have found so far.
What is the fix?
I am not sure what the logic behind the use of sigma=0.0 to define distributions[0] as a normal distribution with mean=0 and sigma=0 is not a well-defined probability distribution. It essentially collapses to a single point at 0. Likely, the plan was to set distributions[0]=0. Does this seem correct?
The text was updated successfully, but these errors were encountered:
robbietuk
changed the title
Debug assert error caused by normal distribution sigmal set to 0.0 with MSVC 14.40
Debug assert error caused by normal distribution sigma equals 0.0 - MSVC 14.40
Jul 31, 2024
Building a cmake project ontop of STIR with CMake (because of #1483).
I am using the example https://github.com/UCL/STIR/blob/master/examples/C%2B%2B/using_installed_STIR/demo_create_image.cxx but building in Debug.
Modifying the program to:
I get an error in
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\include\random
, specifically l:3371Where the
_STL_ASSERT
is throwing an exception because0.0 == _Sigma0
. This stems fromin
STIR/src/include/stir/DetectorCoordinateMap.h
Lines 122 to 136 in 8c57bc9
My guess is this hasn't been caught because CI only tests Release on MSVC. This is the only issue I have found so far.
What is the fix?
I am not sure what the logic behind the use of
sigma=0.0
to definedistributions[0]
as a normal distribution withmean=0
andsigma=0
is not a well-defined probability distribution. It essentially collapses to a single point at 0.Likely, the plan was to setdistributions[0]=0
. Does this seem correct?The text was updated successfully, but these errors were encountered: