REDPy icon indicating copy to clipboard operation
REDPy copied to clipboard

error in createPlots

Open EvaEibl opened this issue 3 years ago • 3 comments

Hi Alicia,

I've created a list of triggered events and once catfill.py has processed them all, I'm running into this error. Do you have any thought of what might go wrong?

Thanks, Eva

Traceback (most recent call last): File "catfill.py", line 137, in redpy.plotting.createPlots(rtable, ftable, ttable, ctable, otable, opt) File "/data/REDPy/redpy/plotting.py", line 75, in createPlots plotFamilies(rtable, ftable, ctable, opt) File "/data/REDPy/redpy/plotting.py", line 1094, in plotFamilies fi, ids, id1, id2, ccc, 'png', 100, cnum, 0, 0, opt) File "/data/REDPy/redpy/plotting.py", line 1269, in plotSingleFamily ymin = 0.5*np.min(windowAmp[np.nonzero(windowAmp)]) File "<array_function internals>", line 6, in amin File "/home/eibl/miniconda3/envs/redpy/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 2880, in amin keepdims=keepdims, initial=initial, where=where) File "/home/eibl/miniconda3/envs/redpy/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 86, in _wrapreduction return ufunc.reduce(obj, axis, dtype, out, **passkwargs) ValueError: zero-size array to reduction operation minimum which has no identity Closing remaining open files:redpytable.h5...done

EvaEibl avatar Nov 11 '22 20:11 EvaEibl

Are there any families to plot? (e.g., when you run catfill.py with -v, how many repeaters/families does it have?)

ahotovec avatar Nov 11 '22 21:11 ahotovec

It says that: Length of Orphan table: 1 Number of repeaters: 7 Number of clusters: 1

EvaEibl avatar Nov 12 '22 15:11 EvaEibl

Hmm, it seems to be complaining that there are no non-zero amplitudes for that family, which is strange. The file is probably small enough that you could look at the contents with h5dump directly and verify whether that's the case.

ahotovec avatar Nov 15 '22 18:11 ahotovec