From abc3a95f74c86874a604bfd63ccd6ac39ba5de67 Mon Sep 17 00:00:00 2001 From: Joanne Bogart Date: Tue, 11 Jun 2024 17:25:29 -0700 Subject: [PATCH] two small fixes to gaia_object.py --- skycatalogs/objects/gaia_object.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/skycatalogs/objects/gaia_object.py b/skycatalogs/objects/gaia_object.py index 204ab783..6be4ad51 100644 --- a/skycatalogs/objects/gaia_object.py +++ b/skycatalogs/objects/gaia_object.py @@ -237,7 +237,10 @@ 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): @@ -245,13 +248,14 @@ def get_config(cls): @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')