fritz-marshal / fritz

Astronomical data platform for the Zwicky Transient Facility.
https://fritz.science
Other
24 stars 34 forks source link

ZTF Alert Post: stream data access issue #553

Closed Theodlz closed 2 months ago

Theodlz commented 2 months ago

I noticed that the add_external_photometry() method that the Fritz-specific AlertHandler POST method relied on (through the post_alert() function) treated group_ids and stream_ids as something to enforce on all datapoints (which to be fair is exactly how it is used everywhere else in the app!).

So here we simply batch photometry per stream and call add_external_photometry() on each batch to make sure that the stream data access is correct on these datapoints.