diff --git a/pixell/curvedsky.py b/pixell/curvedsky.py index a1ed2673..35735827 100644 --- a/pixell/curvedsky.py +++ b/pixell/curvedsky.py @@ -749,7 +749,7 @@ def map2alm_cyl(map, alm=None, ainfo=None, minfo=None, lmax=None, spin=[0,2], we ny = map.shape[-2]+np.sum(minfo.ypad) weights = ducc0.sht.experimental.get_gridweights(minfo.ducc_geo.name, ny) weights = weights[minfo.ypad[0]:len(weights)-minfo.ypad[1]] - weights/= map.shape[-1] + weights/= minfo.ducc_geo.nx else: weights = map.pixsizemap(separable=True, broadcastable=True)[:,0] weights = weights.astype(map.dtype) diff --git a/pixell/enplot.py b/pixell/enplot.py index f487e770..2055b48d 100644 --- a/pixell/enplot.py +++ b/pixell/enplot.py @@ -952,7 +952,7 @@ def show(img, title=None, method="auto"): # do. Try them one by one in priority order try: # Only use ipython for graphical notebooks - if "ZMQ" in get_ipython().__class__.__name__: + if get_ipython().__class__.__name__ in ["ZMQInteractiveShell", "Shell"]: return show_ipython(img, title=title) except (ImportError, NameError): pass try: return show_tk(img, title=title)