Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
ef3f25d2
Commit
ef3f25d2
authored
May 29, 2019
by
Martin Reinecke
Browse files
adjust to new interface
parent
859c79be
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/library/gridder.py
View file @
ef3f25d2
...
...
@@ -32,12 +32,12 @@ class GridderMaker(object):
raise
ValueError
(
"need dirty_domain with exactly one 2D RGSpace"
)
if
channel_fact
.
ndim
!=
1
:
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
gconf
=
nifty_gridder
.
GridderConfig
(
nxdirty
,
nydirty
,
eps
,
1.
,
1.
)
nu
=
gconf
.
Nu
()
nv
=
gconf
.
Nv
()
self
.
_idx
=
nifty_gridder
.
getIndices
(
bl
,
gconf
)
self
.
_idx
=
nifty_gridder
.
getIndices
(
bl
,
gconf
,
flags
)
self
.
_bl
=
bl
grid_domain
=
RGSpace
([
nu
,
nv
],
distances
=
[
1
,
1
],
harmonic
=
False
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment