Unverified Commit 2640b25e authored by Alexandru Fikl's avatar Alexandru Fikl
Browse files

remove stray check for even nlat in python wrapper

parent d9736284
Pipeline #78949 passed with stages
in 4 minutes and 40 seconds
......@@ -3036,9 +3036,6 @@ SWIGINTERN void shtns_info_set_grid(struct shtns_info *self,int nlat,int nphi,in
if (nlat <= self->lmax) { // nlat too small
throw_exception(SWIG_ValueError,1,"nlat <= lmax"); return;
}
if (nlat & 1) { // nlat must be even
throw_exception(SWIG_ValueError,1,"nlat must be even"); return;
}
}
if ((nphi != 0) && (nphi <= self->mmax *2)) { // nphi too small
throw_exception(SWIG_ValueError,2,"nphi <= 2*mmax"); return;
......
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