desy-multimessenger/nuztf

Use API to query ampel

Closed this issue · 4 comments

Is your feature request related to a problem? Please describe.
I'm always frustrated when the Ampel database access changes like every 30 seconds.

Describe the solution you'd like
Swap from using ampel-ztf-archive to the ampel API.
All references to ampel_client in ampel_magic.py must be purged.

Describe alternatives you've considered
Leaving things as they are. It'll require many urgent updates/hot-fixes, but will add a certain sense of adventure to our otherwise mundane lives.

I think this issue is not fully complete, because https://github.com/desy-multimessenger/ampel_followup_pipeline/blob/master/mmapy/gw_multi_process.py has not been ported yet.

There is also some usage of ArchiveDB in TNS_submit.py. Related to #7

Note: This is still open because the GW and GRB part of the code still needs to be ported.

Done.