ARCLeeds / arcleeds.github.io

Research Computing at Leeds Website
https://arcleeds.github.io/
MIT License
3 stars 2 forks source link

Adding a full 12 days of HPC scripting workflow #177

Closed Sparrow0hawk closed 1 year ago

Sparrow0hawk commented 1 year ago

This PR updates the scripts used for generating the 12 days of HPC blog posts from a MS form.

Changes include:

You can now call the blog_template.py with -h to view available arguments:

$ python blog_template.py -h
usage: blog_template.py [-h] input_file output_file date

The 12 days of HPC blog maker!

positional arguments:
  input_file   Path to input .csv file
  output_file  Path to output file
  date         Date in YYYY-MM-DD format

options:
  -h, --help   show this help message and exit
Sparrow0hawk commented 1 year ago

One thing I have noticed that I may not get time to adjust (nice first issue for someone!) is that i'm hardcoding the image file path in the jinja template for the figures to 12dayshpc-2022, we might want to make this more flexible and something controlled through the blog_template.py instead! Will create an issue.

Sparrow0hawk commented 1 year ago

I've applied the suggestion to move to read_excel and updated the dependencies per @patricia-ternes suggestions. I'll now merge this as we're in a state where people have been able to reproduce this workflow!