-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Currently, VET output files have their run paths hard-coded into the HTML files, which makes it very difficult to move or rename the runs. E.g., a run located at /home/detchar/public_html/vet/o4_review/h1_omicron_test1/ could be copied to /home/detchar/public_html/vet/o4_review/h1_omicron_test1_renamed/, but all of the links on the different pages will still point to files and directories in /home/detchar/public_html/vet/o4_review/h1_omicron_test1/, including links to images. If the original run needed to be archived, a restored version would only function properly if restored to the same path as it was originally run from.
A sed or similar text-modification command could probably be used to change the links, but that hasn't been developed or tested.
It might be possible to modify the code that generates the output files to use relative paths in all output HTML files, so that the run dir can be easily moved, and the paths will be agnostic and indifferent to their location, as long as the relative paths (mainly to images) are preserved. (Note that I don't know how big of a change this would require within GWPy, GWSumm, and/or other packages or how difficult that would be.)