Skip to content

Commit

Permalink
fixing indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
fedhere committed May 24, 2015
1 parent b37648e commit 0530e4b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions coaddutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def fixim(data,maskcenters):


def dist(pair):
return abs(pair[0][0]-pair[1][0])+abs(pair[0][1]-pair[0][1])
return abs(pair[0][0]-pair[1][0])+abs(pair[0][1]-pair[0][1])


def sigclippedstd(arr):
Expand All @@ -123,8 +123,8 @@ def mymode(data):
mydata=data#[where(data<5000)]
counts = {}
for x in mydata.flatten():
counts[x] = counts.get(x,0) + 1
# print counts[x]
counts[x] = counts.get(x,0) + 1
# print counts[x]
maxcount = max(counts.values())
modelist = []
for x in counts:
Expand Down Expand Up @@ -433,5 +433,8 @@ def correlate(fits,saturation, showme=False):
# print "smaller cut", fits[smaller][int(slicey2[0]):int(slicey2[1]), int(slicex2[0]):int(slicex2[1])].shape
#coadded=
#return (fits[larger][int(slicex1[0]):int(slicex1[1]), int(slicey1[0]):int(slicey1[1])],fits[smaller][int(slicex2[0]):int(slicex2[1]), int(slicey2[0]):int(slicey2[1])])
#return (fits[larger][int(slicex1[0]):int(slicex1[1]), \
int(slicey1[0]):int(slicey1[1])],\
fits[smaller][int(slicex2[0]):int(slicex2[1]), \
int(slicey2[0]):int(slicey2[1])])
'''

0 comments on commit 0530e4b

Please sign in to comment.