alercebroker / ztf_explorer

🌚 🔭 💻 ZTF Explorer for the ALeRCE broker
https://alerce.online/
6 stars 0 forks source link

Multiple occurrences of each object #254

Closed amoya87 closed 3 years ago

amoya87 commented 4 years ago

Multiple occurrences of each object without specify any filter image

amoya87 commented 4 years ago

Also specifying oid. e.g. ZTF17aaafios

cvalenzu commented 4 years ago

image This is because the explorer is sending probability 0 I think

amoya87 commented 4 years ago

The query filter by probability.ranking = 1 AND object.oid LIKE 'ZTF19aaeaeeg' but not by clasifier_name, so recover 5th occurrence of each object, one per classifier. image

cvalenzu commented 4 years ago

Yes, that's a problem, but the solution is to hardcode a classifier if no classifier is provided, but I don't think is the best idea.

We have removed the ranking=1 from the frontend query to avoid this problem so it will show the just lc_classifier for now, and the API is in charge of putting the ranking=1 to the query itself.

dirodriguezm commented 3 years ago

@cvalenzu Should I close this issue ? I don't believe that this is valid anymore