desihub / prospect

DESI spectral visualization tools
BSD 3-Clause "New" or "Revised" License
11 stars 6 forks source link

utilities.create_subsetdb throw error for data types that are not string #103

Open cjstorfer opened 1 month ago

cjstorfer commented 1 month ago

Admittedly a very small thing but it would be great for the utilities.create_subsetdb function to explicitly throw a type error when the provided healpix values in the list are not cast as strings.

Took a while to figure out what was going wrong.

weaverba137 commented 1 month ago

@cjstorfer, I can see several possible arguments to the create_subsetdb() function that could be problematic in the way you describe. Could you please give an example function call that shows this issue?