From 8d18103ce5a9f87faa872d25a071bbc0a4165c7c Mon Sep 17 00:00:00 2001 From: Kathleen Labrie Date: Tue, 25 Aug 2026 12:38:02 -1000 Subject: [PATCH] Fix the url call in the md5 check block to work with non-standard names like the BPM file names. The fix works with standard names too. --- astrodata/testing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/astrodata/testing.py b/astrodata/testing.py index 57eb56b2..1d8fca2d 100644 --- a/astrodata/testing.py +++ b/astrodata/testing.py @@ -667,7 +667,9 @@ def download_from_archive( digest = hashlib.file_digest(filep, "md5") file_md5 = digest.hexdigest() # Get the md5 from GOA - fileinfourl = url.replace("/file/", "/jsonfilelist/present/") + fileinfourl = url.replace( + "/file/", "/jsonfilelist/present/filename=" + ) fileinfo = requests.get( fileinfourl, headers={"User-Agent": "astropy"} ).json()