gkutils 0.3.2__tar.gz → 0.3.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. {gkutils-0.3.2 → gkutils-0.3.3}/PKG-INFO +1 -1
  2. gkutils-0.3.3/gkutils/__version__.py +1 -0
  3. {gkutils-0.3.2 → gkutils-0.3.3}/gkutils/commonutils/generalutils.py +15 -2
  4. {gkutils-0.3.2 → gkutils-0.3.3}/gkutils.egg-info/PKG-INFO +1 -1
  5. gkutils-0.3.2/gkutils/__version__.py +0 -1
  6. {gkutils-0.3.2 → gkutils-0.3.3}/LICENSE +0 -0
  7. {gkutils-0.3.2 → gkutils-0.3.3}/README.md +0 -0
  8. {gkutils-0.3.2 → gkutils-0.3.3}/gkutils/__init__.py +0 -0
  9. {gkutils-0.3.2 → gkutils-0.3.3}/gkutils/commonutils/__init__.py +0 -0
  10. {gkutils-0.3.2 → gkutils-0.3.3}/gkutils/commonutils/bruteForceConeSearchATLAS.py +0 -0
  11. {gkutils-0.3.2 → gkutils-0.3.3}/gkutils/commonutils/coneSearchCassandra.py +0 -0
  12. {gkutils-0.3.2 → gkutils-0.3.3}/gkutils/commonutils/far.py +0 -0
  13. {gkutils-0.3.2 → gkutils-0.3.3}/gkutils/commonutils/getCSVColumnSubset.py +0 -0
  14. {gkutils-0.3.2 → gkutils-0.3.3}/gkutils/commonutils/getTestSherlockData.py +0 -0
  15. {gkutils-0.3.2 → gkutils-0.3.3}/gkutils/commonutils/mputils.py +0 -0
  16. {gkutils-0.3.2 → gkutils-0.3.3}/gkutils/commonutils/test.py +0 -0
  17. {gkutils-0.3.2 → gkutils-0.3.3}/gkutils/commonutils/testReadGenericDataFile.py +0 -0
  18. {gkutils-0.3.2 → gkutils-0.3.3}/gkutils.egg-info/SOURCES.txt +0 -0
  19. {gkutils-0.3.2 → gkutils-0.3.3}/gkutils.egg-info/dependency_links.txt +0 -0
  20. {gkutils-0.3.2 → gkutils-0.3.3}/gkutils.egg-info/entry_points.txt +0 -0
  21. {gkutils-0.3.2 → gkutils-0.3.3}/gkutils.egg-info/requires.txt +0 -0
  22. {gkutils-0.3.2 → gkutils-0.3.3}/gkutils.egg-info/top_level.txt +0 -0
  23. {gkutils-0.3.2 → gkutils-0.3.3}/setup.cfg +0 -0
  24. {gkutils-0.3.2 → gkutils-0.3.3}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gkutils
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: A collection useful utilities - mostly related to astronomy
5
5
  Home-page: https://github.com/genghisken/gkutils
6
6
  Author: genghisken
@@ -0,0 +1 @@
1
+ __version__ = '0.3.3'
@@ -681,6 +681,12 @@ def getAngularSeparation(ra1, dec1, ra2, dec2):
681
681
  convert into decimal before doing the calculation.
682
682
  """
683
683
 
684
+ angularSeparation = None
685
+
686
+ if ra1 is None or ra2 is None or dec1 is None or dec2 is None:
687
+ # Angular separation can't be calculated.
688
+ return angularSeparation
689
+
684
690
  if ':' in str(ra1):
685
691
  ra1 = sexToDec(ra1, ra=True)
686
692
  if ':' in str(dec1):
@@ -697,7 +703,6 @@ def getAngularSeparation(ra1, dec1, ra2, dec2):
697
703
  dec1 = float(dec1)
698
704
  dec2 = float(dec2)
699
705
 
700
- angularSeparation = None
701
706
 
702
707
  if ra1 is not None and ra2 is not None and dec1 is not None and dec2 is not None:
703
708
 
@@ -851,6 +856,14 @@ CAT_ID_RA_DEC_COLS = {
851
856
  'atlas_v_followup4': [['id', 'ra', 'dec'],3007],
852
857
  'atlas_v_followup5': [['id', 'ra', 'dec'],3008],
853
858
  'atlas_v_followup6': [['id', 'ra', 'dec'],3009],
859
+ # 2024-07-26 KWS Added missing ATLAS views.
860
+ 'atlas_v_followup7': [['id', 'ra', 'dec'],3010],
861
+ 'atlas_v_followup8': [['id', 'ra', 'dec'],3011],
862
+ 'atlas_v_followup9': [['id', 'ra', 'dec'],3012],
863
+ 'atlas_v_followup10': [['id', 'ra', 'dec'],3013],
864
+ 'atlas_v_followup11': [['id', 'ra', 'dec'],3014],
865
+ 'atlas_v_followupall': [['id', 'ra', 'dec'],3100],
866
+ 'atlas_v_followupall_with_junk': [['id', 'ra', 'dec'],3101],
854
867
  'psdb_web_v_followup_bad_presentation': [['id', 'ra_psf', 'dec_psf'],4000],
855
868
  'psdb_web_v_followup_conf_presentation': [['id', 'ra_psf', 'dec_psf'],4001],
856
869
  'psdb_web_v_followup_good_presentation': [['id', 'ra_psf', 'dec_psf'],4002],
@@ -1096,7 +1109,7 @@ def coneSearchHTMWithExtraWhereClause(ra, dec, radius, tableName, htmLevel = 16,
1096
1109
 
1097
1110
  # For HTM only queries, only add the results if the separation is less than the radius.
1098
1111
  # This is because HTM queries will always be a superset.
1099
- if separation < radius:
1112
+ if separation is not None and separation < radius:
1100
1113
  results.append([separation, row])
1101
1114
 
1102
1115
  # Sort by separation
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gkutils
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: A collection useful utilities - mostly related to astronomy
5
5
  Home-page: https://github.com/genghisken/gkutils
6
6
  Author: genghisken
@@ -1 +0,0 @@
1
- __version__ = '0.3.2'
File without changes
File without changes
File without changes
File without changes
File without changes