Skip to content
This repository has been archived by the owner on Jun 11, 2020. It is now read-only.

Imaging linear to stokes I gives cryptic error #41

Open
timcornwell opened this issue May 26, 2020 · 1 comment
Open

Imaging linear to stokes I gives cryptic error #41

timcornwell opened this issue May 26, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@timcornwell
Copy link
Collaborator

When the output image is stokeI but the input visibility is e.g. linear, the resulting error message is very cryptic:

File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rascil-0.1.2-py3.7.egg/rascil/processing_components/griddata/gridding.py", line 239, in grid_visibility_to_griddata
cf.data[chan, :, zzc, vvf, uuf, :, :] * v[:, numpy.newaxis, numpy.newaxis]
ValueError: non-broadcastable output operand with shape (1,6,6) doesn't match the broadcast shape (4,6,6)

The case should either be handled correctly or a better error message emitted.

@timcornwell timcornwell self-assigned this May 26, 2020
@timcornwell timcornwell added the bug Something isn't working label May 26, 2020
@timcornwell
Copy link
Collaborator Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant