NSLS-II-CSX / csxtools

Useful python tools for CSX (23-ID)
http://nsls-ii-csx.github.io/csxtools
Other
4 stars 13 forks source link

Should stacksum return a warning if encounters NaN's? #45

Closed mpmdean closed 5 years ago

mpmdean commented 8 years ago

We might consider raising a warning if stacksum encounters NaN's:

"stacksum encountered NaN values and excluded these values from the sum effectively assuming NaN = 0. Consider using the number of points, which is returned as the second argument in the tuple, to renormalize the image."

tacaswell commented 8 years ago

The PR looks reasonable, but in general warnings are never read. If you want to get peoples attention, raise an exception.

mpmdean commented 5 years ago

I should have closed this a while ago, but am doing so now.