The line above is causing my entire data array to zero, hence I am getting the following exception stacktrace:
new lsst catalogueabout to load 0 1253000 Traceback (most recent call last): File "ModelAll.py", line 153, in <module> S[survey].ObserveLens() File "/Users/annarienbester/git/LensPop/FastLensSim.py", line 260, in ObserveLens convolvedsrc[sourcenumber],sigma) File "/Users/annarienbester/git/LensPop/SignaltoNoise.py", line 43, in SNfunc SNi=(Dsum/Ssum).max() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/_methods.py", line 17, in _amax out=out, keepdims=keepdims) ValueError: zero-size array to reduction operation maximum which has no identity
When I comment out this line, the code completes execution, however I am unsure that I am getting the correct results.
https://github.com/tcollett/LensPop/blob/86b40b6470cb458b47ffa2450820b1f923895b6d/SignaltoNoise.py#L26
The line above is causing my entire data array to zero, hence I am getting the following exception stacktrace:
new lsst catalogueabout to load 0 1253000 Traceback (most recent call last): File "ModelAll.py", line 153, in <module> S[survey].ObserveLens() File "/Users/annarienbester/git/LensPop/FastLensSim.py", line 260, in ObserveLens convolvedsrc[sourcenumber],sigma) File "/Users/annarienbester/git/LensPop/SignaltoNoise.py", line 43, in SNfunc SNi=(Dsum/Ssum).max() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/_methods.py", line 17, in _amax out=out, keepdims=keepdims) ValueError: zero-size array to reduction operation maximum which has no identity
When I comment out this line, the code completes execution, however I am unsure that I am getting the correct results.