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

Imaging linear to stokes I gives cryptic error #41

@timcornwell

Description

@timcornwell

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions