Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change all paths in output files to relative paths #32

Open
robertbruntz opened this issue Mar 28, 2023 · 0 comments
Open

Change all paths in output files to relative paths #32

robertbruntz opened this issue Mar 28, 2023 · 0 comments

Comments

@robertbruntz
Copy link
Collaborator

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant