Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in createPlots #22

Open
EvaEibl opened this issue Nov 11, 2022 · 3 comments
Open

error in createPlots #22

EvaEibl opened this issue Nov 11, 2022 · 3 comments

Comments

@EvaEibl
Copy link

EvaEibl commented Nov 11, 2022

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

@ahotovec
Copy link
Owner

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

@EvaEibl
Copy link
Author

EvaEibl commented Nov 12, 2022

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

@ahotovec
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants