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

fixes

parent 17928e9b
......@@ -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;
}
......
Supports Markdown
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