Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed quadrature weight units in curvedsky.map2alm_cyl for partial sk… #221

Merged
merged 1 commit into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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