Skip to content

Commit 61fe591

Browse files
committed
Enable option for LHCb to extract plots from ZIP files
1 parent 374d560 commit 61fe591

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

cds_paper_bot.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,6 +1506,12 @@ def main():
15061506
media_url,
15071507
):
15081508
media_found = True
1509+
elif experiment == "LHCb":
1510+
# LHCb attaches figures as a ZIP file
1511+
if media_url.lower().endswith(".zip"):
1512+
logger.info("Found ZIP file for LHCb: " + media_url)
1513+
media_found = True
1514+
media_isimage = True # Treat ZIP as images for now
15091515
# check if media can be downloaded
15101516
if media_found:
15111517
media_url = media_url.split("?", 1)[0]

0 commit comments

Comments
 (0)