mwalmsley / galaxy-datasets

ML-friendly datasets of galaxy images and labels
GNU General Public License v3.0
30 stars 4 forks source link

Doubled root in candels galaxy_dataset #3

Closed maja-jablonska closed 1 year ago

maja-jablonska commented 1 year ago

In candels dataset, the root is joined two times:

first in download_utils.py (14):

self.image_dir = os.path.join(self.root, image_dirname)

then in candels.py (44):

catalog['file_loc'] = catalog.apply(lambda x: os.path.join(root, downloader.image_dir, x['filename']), axis=1) 

We should check if that's just for this dataset.