Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions python/priism/core/imager.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@ def solve(self, l1, ltsv, maxiter=50000, eps=1.0e-5, clean_box=None,

def _solve(self, mfistaparam, working_set, storeinitialimage=True, overwriteinitialimage=False):
assert working_set is not None
if working_set is None or len(working_set.rdata) == 0:
raise RuntimeError(
"No visibility data is given. Please run readvis or gridvis first. "
"If you already did, probably all the visibility data are flagged (invalid). "
"Please check contents of the MS and tweak channel selection appropriately."
)
self.solver.mfistaparam = mfistaparam
return self.solver.solve(working_set, self.imparam, storeinitialimage, overwriteinitialimage)

Expand Down