Skip to content

Commit

Permalink
Merge pull request #39 from transientskp/Fix_missing_cmp_function
Browse files Browse the repository at this point in the history
Added cmp function
  • Loading branch information
HannoSpreeuw authored Jan 16, 2023
2 parents aea422a + 4d58039 commit fbb4f81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sourcefinder/utility/coordinates.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@ def dmstodec(decd, decm, decs):
raise ValueError("coordinates out of range")
return dec

def cmp(a, b):
return bool(a > b) - bool(a < b)

def angsep(ra1, dec1, ra2, dec2):
"""Find the angular separation of two sources, in arcseconds,
Expand Down

0 comments on commit fbb4f81

Please sign in to comment.