Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
nifty_gridder
Commits
37304c94
Commit
37304c94
authored
Aug 22, 2019
by
Martin Reinecke
Browse files
fixes
parent
9dbdef7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty_gridder.cc
View file @
37304c94
...
...
@@ -1462,7 +1462,7 @@ template<typename T> pyarr_c<uint32_t> getIndices(const Baselines<T> &baselines,
return
res
;
}
template
<
typename
T
>
pyarr_c
<
T
>
vis2dirty_wstack
(
const
Baselines
<
T
>
&
baselines
,
template
<
typename
T
>
pyarr_c
<
complex
<
T
>
>
vis2dirty_wstack
(
const
Baselines
<
T
>
&
baselines
,
const
GridderConfig
<
T
>
&
gconf
,
const
pyarr
<
uint32_t
>
&
idx_
,
const
pyarr
<
complex
<
T
>>
&
vis_
)
{
...
...
@@ -1512,16 +1512,16 @@ cout << "nplanes: " << nplanes << endl;
for
(
int
i
=
max
<
int
>
(
0
,
iplane
-
w_supp
);
i
<
min
<
int
>
(
nplanes
,
iplane
+
w_supp
+
1
);
++
i
)
if
(
abs
(
wval
[
ipart
]
-
(
wmin
+
i
*
dw
))
<
dwmax
)
++
nvis_plane
[
i
];
}
//
cout << "nvis/plane: ";
//
for (auto nv:nvis_plane) cout << nv << " ";
//
cout << endl;
cout
<<
"nvis/plane: "
;
for
(
auto
nv
:
nvis_plane
)
cout
<<
nv
<<
" "
;
cout
<<
endl
;
auto
accum_
=
makeArray
<
complex
<
T
>>
({
nx_dirty
,
ny_dirty
});
auto
accum
=
accum_
.
mutable_data
();
for
(
ptrdiff_t
i
=
0
;
i
<
accum_
.
size
();
++
i
)
accum
[
i
]
=
0.
;
for
(
size_t
iw
=
0
;
iw
<
nplanes
;
++
iw
)
{
//
cout << "working on w plane #" << iw << endl;
cout
<<
"working on w plane #"
<<
iw
<<
endl
;
if
(
nvis_plane
[
iw
]
==
0
)
continue
;
double
wcur
=
wmin
+
iw
*
dw
;
size_t
cnt
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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