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

Write area detectors to proposal directories #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

thomaswmorris
Copy link

@thomaswmorris thomaswmorris commented Jan 24, 2024

With the format /nsls2/data/chx/proposals/{cycle}/{data_session}/assets

cycle = '2023-3' # TODO: don't hardcode this

proposal_dir = f"/nsls2/data/chx/proposals/{cycle}/{data_session}"
Path(proposal_dir).mkdir(parents=True, exist_ok=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This Python process will never have permission to make directories here. You can assume the directory has been created.

eiger500k_single.file.write_path_template = '/nsls2/data/chx/assets/eiger500k/%Y/%m/%d/'
eiger500k_single.file.reg_root ='/nsls2/data/chx/assets/eiger500k/'
eiger500k_single.file.write_path_template = f'{proposal_dir}/assets/eiger500k/%Y/%m/%d/'
eiger500k_single.file.reg_root =f'{proposal_dir}/assets/eiger500k/'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you considered making it assets_dir? That would make it harder to accidentally write into the top-level proposals dir (where users have access to move and delete things).

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

Successfully merging this pull request may close these issues.

2 participants