gcr-catalogs
gcr-catalogs copied to clipboard
v1.10.0 issue with importing `dc2_object_run2.2i_dr6_with_addons`
Trying to load the dc2_object_run2.2i_dr6_with_addons catalog with v1.10.0 version of GCRCatalogs throws the error:
>>> dc2 = gcr.load_catalog('dc2_object_run2.2i_dr6_v2_with_addons_v2')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/sps/lsst/users/rsolomon/conda_envs/redmapper/lib/python3.11/site-packages/GCRCatalogs/register.py", line 379, in load_catalog
return ConfigSource.config_source[catalog_name].load_catalog(config_overwrite) # pylint: disable=unsubscriptable-object
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/sps/lsst/users/rsolomon/conda_envs/redmapper/lib/python3.11/site-packages/GCRCatalogs/base_config.py", line 146, in load_catalog
return load_catalog_from_config_dict(config_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/sps/lsst/users/rsolomon/conda_envs/redmapper/lib/python3.11/site-packages/GCRCatalogs/base_config.py", line 324, in load_catalog_from_config_dict
return import_subclass(
^^^^^^^^^^^^^^^^
File "/sps/lsst/users/rsolomon/conda_envs/redmapper/lib/python3.11/site-packages/GCRCatalogs/composite.py", line 18, in __init__
if has_catalog(catalog_name):
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/sps/lsst/users/rsolomon/conda_envs/redmapper/lib/python3.11/site-packages/GCRCatalogs/register.py", line 349, in has_catalog
lower_name = catalog_name.lower()
^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'lower'
By downgrading to v1.8.0 I am able to load the catalog.