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
cee943d7
Commit
cee943d7
authored
Aug 22, 2019
by
Martin Reinecke
Browse files
fixes
parent
17928e9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty_gridder.cc
View file @
cee943d7
...
...
@@ -1474,7 +1474,7 @@ template<typename T> pyarr_c<complex<T>> vis2dirty_wstack(const Baselines<T> &ba
size_t
nvis
=
size_t
(
vis_
.
shape
(
0
));
checkArray
(
idx_
,
"idx"
,
{
nvis
});
auto
vis
=
vis_
.
template
unchecked
<
1
>();
auto
idx
=
idx_
.
template
unchecked
<
1
>();
auto
idx
=
idx_
.
template
unchecked
<
1
>();
// determine w values for every visibility, and min/max w;
T
wmin
=
T
(
1e38
),
wmax
=
T
(
-
1e38
);
...
...
@@ -1534,7 +1534,8 @@ cout << "working on w plane #" << iw << endl;
if
(
abs
(
wcur
-
wval
[
ipart
])
<
dwmax
)
{
double
x
=
2.
/
(
w_supp
*
dw
)
*
abs
(
wcur
-
wval
[
ipart
]);
vis_loc
[
cnt
]
=
vis
[
ipart
]
*
exp
(
beta
*
sqrt
(
1.
-
x
*
x
));
myassert
(
cnt
<
nvis_plane
[
iw
],
"must not happen"
);
vis_loc
[
cnt
]
=
vis
[
ipart
]
*
exp
(
beta
*
(
sqrt
(
1.
-
x
*
x
)
-
1.
));
idx_loc
[
cnt
]
=
idx
[
ipart
];
++
cnt
;
}
...
...
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