Closed drtobybrown closed 6 months ago
Looks like this was solved earlier today: https://github.com/radio-astro-tools/spectral-cube/pull/883
@keflavich @drtobybrown Hello fellow radio astronomers! Toby is right that the change introduced by https://github.com/radio-astro-tools/spectral-cube/pull/883 had incorrect syntax for numpy.result_type
. I have just submitted a PR fix!
ah, sorry, I read things wrong - the bug was introduced today. Thanks for the fix; we clearly need test coverage.
spectral-cube version 0.6.1.dev263+ge4f31e3
(Upgraded from 0.6 for the same reason given in #880)
Problem:
TypeError: Field elements must be 2- or 3-tuples, got 'dtype('float64')'
MWE:
Fix: I think removing the square brackets in
dt = np.result_type([data.dtype, 0.0])
should fix the issue.