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

PDF path mismatch between scan monitor and CHX #7237

Open
hyperrealist opened this issue Sep 4, 2024 · 1 comment
Open

PDF path mismatch between scan monitor and CHX #7237

hyperrealist opened this issue Sep 4, 2024 · 1 comment

Comments

@hyperrealist
Copy link
Contributor

hyperrealist commented Sep 4, 2024

Currently, scan monitor is looking for PDF files like

${output_dir}/*.pdf

def get_analysis_pdf_paths(self):
return pkio.walk_tree(self.get_output_dir(), r".*\.pdf$")

However, CHX pdf files are written to the parent directory of this path, with a file name tagged with the uid and a revision number. I believe this is to avoid overwriting the PDF files between multiple notebook runs.

Semantically, CHX PDF path is something like

${output_dir}/../*${uid}*.pdf    # note: this will include revisions

This path mismatch is preventing raydata from offering generated PDF files for download (manually copying to ${output_dir} makes raydata recognize them).

Edit:
To clarify further, CHX ${output_dir} itself is structured like ${PARENT_OUTPUT_DIR}/${uid} with the same ${PARENT_OUTPUT_DIR} for all scans for a given user (and cycle). It stores all PDF revisions from all runs, tagged with uid and a revision number. Everything in ${PARENT_OUTPUT_DIR}/${uid} seems to get overwritten upon rerun.

@e-carlin
Copy link
Member

e-carlin commented Sep 4, 2024

Thanks for opening this @hyperrealist. I'll address.

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

2 participants