-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/TOMToolkit/tom_base into dev
- Loading branch information
Showing
8 changed files
with
53 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
tom_dataproducts/static/tom_dataproducts/photometry_sample.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
time,filter,magnitude,error | ||
55959.06999999983,r,15.582,0.005 | ||
55959.06999999983,V,15.676,0.007 | ||
55959.06999999983,B,15.591,0.008 | ||
time,filter,magnitude,error,limit,source | ||
55959.06999999983,r,15.582,0.005,,ZTF | ||
55959.06999999983,V,15.676,0.007,,CSS | ||
55959.06999999983,B,15.591,0.008,,Las Cumbres | ||
55959.06999999983,B,,,18.0,DLT40 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from django.db import models | ||
|
||
|
||
class StrictMatch(models.Manager): | ||
""" | ||
Return Queryset for target with name matching string. | ||
""" | ||
|
||
def check_for_fuzzy_match(self, name): | ||
""" | ||
Returns a queryset exactly matching name that is received | ||
:param name: The string against which target names will be matched. | ||
:return: queryset containing matching Target(s). | ||
""" | ||
queryset = super().get_queryset().filter(name=name) | ||
return queryset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters