LSSTDESC / clevar

GNU General Public License v3.0
7 stars 2 forks source link

Error instead of warning when no macth #97

Closed marina-ricci closed 2 years ago

marina-ricci commented 2 years ago

I noticed that when no match are found with the membership method, cat1.mt_input object is empty and then, doing e.g. mt.multiple(cat1,cat2) fails(TypeError: 'NoneType' object is not subscriptable). I think in this case it should return a warning and print that 0 match are found.

m-aguena commented 2 years ago

Thanks for letting me know. You are great at finding defects on code :)