Skip to content

Commit

Permalink
modified: watsonsV.py => fixed bug in two file with -ant option
Browse files Browse the repository at this point in the history
  • Loading branch information
ltauxe committed Mar 3, 2015
1 parent 0187739 commit 5389aa1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion watsonsV.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,14 @@ def main():
D2=numpy.array([data2[0],data2[1]]).transpose()
if Flip==1:
D2,D=pmag.flip(D2) # D2 are now flipped
D2=numpy.concatenate(D,D2) # put all in D2
if len(D2)!=0:
if len(D)!=0:
D2=numpy.concatenate(D,D2) # put all in D2
elif len(D)!=0:
D2=D
else:
print 'length of second file is zero'
sys.exit()
elif Flip==1:D2,D1=pmag.flip(D1) # peel out antipodal directions, put in D2
#
counter,NumSims=0,5000
Expand Down

0 comments on commit 5389aa1

Please sign in to comment.