Closed javierggt closed 2 years ago
When I ran this I got a key error. Do I need to make some other local fix to get it to see those new image files?
Traceback (most recent call last):
File "ssawg_trending_scraper.py", line 378, in <module>
tb.images["offsets-ACIS-S-history.png"],
KeyError: 'offsets-ACIS-S-history.png'
When I ran this I got a key error. ...
Yes, because this script assumes the URL and the only way to test it is to change the URL for the celmon page, which is what I did to test.
I promoted the mta celmon page, so now the URL is correct, and it is not necessary to change anything to test.
This PR changes the file names according to the latest changes in astromon.
I also changed the layout of the celmon figures, and imposed an overall maximum image width. The current celmon images are larger, because the celmon pages are fluid and allow the images to grow as needed while keeping the layout. The trending page has not stylesheet and hardwired the creation of img tags, which make it impossible to set the width separately.
The output is here: https://cxc.cfa.harvard.edu/mta/ASPECT/jgonzalez/ssawg-trending/