Commit ef3f25d2 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

adjust to new interface

parent 859c79be
...@@ -32,12 +32,12 @@ class GridderMaker(object): ...@@ -32,12 +32,12 @@ class GridderMaker(object):
raise ValueError("need dirty_domain with exactly one 2D RGSpace") raise ValueError("need dirty_domain with exactly one 2D RGSpace")
if channel_fact.ndim != 1: if channel_fact.ndim != 1:
raise ValueError("channel_fact must be a 1D array") raise ValueError("channel_fact must be a 1D array")
bl = nifty_gridder.Baselines(uvw, channel_fact, flags) bl = nifty_gridder.Baselines(uvw, channel_fact)
nxdirty, nydirty = dirty_domain.shape nxdirty, nydirty = dirty_domain.shape
gconf = nifty_gridder.GridderConfig(nxdirty, nydirty, eps, 1., 1.) gconf = nifty_gridder.GridderConfig(nxdirty, nydirty, eps, 1., 1.)
nu = gconf.Nu() nu = gconf.Nu()
nv = gconf.Nv() nv = gconf.Nv()
self._idx = nifty_gridder.getIndices(bl, gconf) self._idx = nifty_gridder.getIndices(bl, gconf, flags)
self._bl = bl self._bl = bl
grid_domain = RGSpace([nu, nv], distances=[1, 1], harmonic=False) grid_domain = RGSpace([nu, nv], distances=[1, 1], harmonic=False)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment