sot / twiki-wg

Create a single HTML index of TWiki working group meeting notes
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

change the name of the celmon image files #21

Closed javierggt closed 2 years ago

javierggt commented 2 years ago

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/

taldcroft commented 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'
javierggt commented 2 years ago

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.

javierggt commented 2 years ago

I promoted the mta celmon page, so now the URL is correct, and it is not necessary to change anything to test.