UCBerkeleySETI / hyperseti

A SETI / technosignature search code to find intelligent life beyond Earth
https://hyperseti.readthedocs.io
11 stars 4 forks source link

E TypeError: Invalid shape (32, 1, 256) for image data #22

Closed texadactyl closed 3 years ago

texadactyl commented 3 years ago

hyperseti/plotting.py:

def _imshow(data, metadata, xaxis, yaxis, show_labels=True, show_colorbar=True, *args, **kwargs)

plt.imshow(cp.asnumpy(data), aspect='auto',
          extent=_get_extent(data, metadata, xaxis, yaxis), *args, **kwargs)

I caused this when I converted data to be 3-dimensional. We need a new "grab_data" with a beam-selection parameter.

texadactyl commented 3 years ago

All 3 shape error messages from pytest:

FAILED test/test_hyperseti.py::test_dedoppler_boxcar - TypeError: Invalid shape (32, 1, 256) for image data FAILED test/test_hyperseti.py::test_hitsearch - TypeError: Invalid shape (32, 1, 4096) for image data FAILED test/test_hyperseti.py::test_hitsearch_multi - TypeError: Invalid shape (32, 1, 4096) for image data

texadactyl commented 3 years ago

@telegraphic Some design decisions are needed about data grabbing.

Need a standard central function for setting up metadata called by from_fil, from_h5, future?

Please do not be in a hurry. Decisions have long-lasting effects on everyone and we are on opposite sides of the world.

texadactyl commented 3 years ago

No longer present.