`fetch_open_samples` fails to find posterior samples URL for GWTC-2 events
pesummary
's CI is failing to download public samples for GWTC-2 candidates because the URL is no longer returned from GWOSC's API (fetch_event_json(event)["events"]["*"]["parameters"]["*_pe_*"]["data_url"]
) when previously it pointed to a location on the DCC:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/summarytest", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/pesummary/cli/summarytest.py", line 301, in main
output=opts.output, repository=os.path.abspath(opts.repository)
File "/usr/local/lib/python3.7/site-packages/pesummary/utils/decorators.py", line 165, in wrapper_function
value = func(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/pesummary/cli/summarytest.py", line 234, in GWTC2
_ = _public_pesummary_result_file(event)
File "/usr/local/lib/python3.7/site-packages/pesummary/cli/summarytest.py", line 195, in _public_pesummary_result_file
event, read_file=False, delete_on_exit=False, outdir="./", unpack=True
File "/usr/local/lib/python3.7/site-packages/pesummary/gw/fetch.py", line 153, in fetch_open_samples
return _fetch_open_data(event, type="posterior", **kwargs)
File "/usr/local/lib/python3.7/site-packages/pesummary/gw/fetch.py", line 134, in _fetch_open_data
"Unknown URL for {}. If the URL is known, please run "
ValueError: Unknown URL for {}. If the URL is known, please run download_and_read_file(URL)
This test started to fail on the 6th November (it passed on the 5th November) which is around the same time that GWTC-3 was released. This affects the GWTC-2 and documentation tests in pesummary
's testing suite.
Edited by Charlie Hoy