Skip to content

Commit

Permalink
Merge pull request #106 from LSSTDESC/u/jrbogart/gaia_exposure_patch
Browse files Browse the repository at this point in the history
two small fixes to gaia_object.py
  • Loading branch information
JoanneBogart authored Jun 12, 2024
2 parents 7f0d02b + abc3a95 commit 25e6c66
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions skycatalogs/objects/gaia_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,21 +237,25 @@ class GaiaCollection(ObjectCollection):
@classmethod
def set_config(cls, config):
GaiaCollection._gaia_config = config
GaiaCollection._id_prefix = config['id_prefix']
if 'id_prefix' in config.keys():
GaiaCollection._id_prefix = config['id_prefix']
else:
GaiaCollection._id_prefix = '_gaia'

@classmethod
def get_config(cls):
return GaiaCollection._gaia_config

@ignore_erfa_warnings
@staticmethod
def load_collection(region, skycatalog, mjd=None):
def load_collection(region, skycatalog, mjd=None, exposure=None):
'''
region One of Disk, PolygonalRegion from skyCatalogs.utils.shapes.
Box is not currently supported
skycatalog An instance of the SkyCatalog class
mjd Time at which objects are to be assembled. Ignored for
Gaia stars
exposure exposure length. Ignored for Gaia stars
'''
if not skycatalog:
raise ValueError('GaiaCollection.load_collection: skycatalog cannot be None')
Expand Down

0 comments on commit 25e6c66

Please sign in to comment.