Skip to content

Commit

Permalink
Merge pull request #221 from amaurea/master
Browse files Browse the repository at this point in the history
Fixed quadrature weight units in curvedsky.map2alm_cyl for partial sk…
  • Loading branch information
amaurea authored Aug 3, 2023
2 parents 5b40a1f + 4cc18a5 commit a9630c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pixell/curvedsky.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pixell/enplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a9630c8

Please sign in to comment.