LSSTDESC / gcr-catalogs

A Python module that provides a unified interface to access mock galaxy catalogs and more for the LSST DESC
https://github.com/LSSTDESC/gcr-catalogs
BSD 3-Clause "New" or "Revised" License
26 stars 20 forks source link

desc_dc2_run2.2i_dr6_v4_object pointing to v2 directory #604

Closed nevencaplar closed 1 year ago

nevencaplar commented 1 year ago

I am trying to run the tutorial notebook https://github.com/LSSTDESC/desc-data-portal/blob/main/notebooks/dc2/object_table_gcrcatalogs_intro.ipynb

My data, freshly downloaded, gets placed in /Users/nevencaplar/lsstdesc-public/dc2/run2.2i-dr6-v4/object_dpdd.

I am unable to access it via the suggested command print(GCRCatalogs.load_catalog('desc_dc2_run2.2i_dr6_object').available_tracts) as that point to v2 object, i.e., fails with ValueError: 'base_dir' /Users/nevencaplar/lsstdesc-public/dc2/run2.2i-dr6-v2/object_dpdd is not a valid directory.

After some googling, I try print(GCRCatalogs.load_catalog('desc_dc2_run2.2i_dr6_v4_object').available_tracts), but that is still pointing to v2 directory, i.e., fails with the same error.

Some more brief investigation perhaps suggest that the issue might be that lsstdesc-public/dc2/run2.2i-dr6-v2/object_dpdd is still connected to v2?

yymao commented 1 year ago

Hi @nevencaplar -- thanks for the bug report. I just opened a PR to fix this issue. We'll try to make a bug-fix release soon.