Skip to content

Commit

Permalink
Changed the difference kappamap to be the halo map minus the binned…
Browse files Browse the repository at this point in the history
… Hilbert map. #68 #96
  • Loading branch information
sweverett committed May 24, 2016
1 parent ea7494f commit 950aa63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pangloss/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,7 @@ def compare_binned_maps(Kmap=None,Khalo=None,fig_size=20,savefile=None):
'''
Plots two binned kappamaps, one from lensed_by_maps() and one from lensed_by_halos(), as well as their difference.
NOTE: Currently, this will only compare binned kappamaps that are square.
NOTE: Currenlty, colormap only displays correclty for a fig_size of 20.
'''

if Kmap is None or Khalo is None:
Expand All @@ -703,7 +704,7 @@ def compare_binned_maps(Kmap=None,Khalo=None,fig_size=20,savefile=None):
assert Kmap.field[0] == Khalo.field[0]

# Create difference kappamap (map-halo)
kappadata = np.array([Kmap.values[0] - Khalo.values[0]])
kappadata = np.array([Khalo.values[0] - Kmap.values[0]])
assert Kmap.map_x == Khalo.map_x
assert Kmap.map_y == Khalo.map_y
map_xy = [Kmap.map_x, Kmap.map_y]
Expand Down

0 comments on commit 950aa63

Please sign in to comment.