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

AD HDF plugin should set directory creation value before path #497

Merged
merged 2 commits into from
Jul 31, 2024

Conversation

jwlodek
Copy link
Member

@jwlodek jwlodek commented Jul 29, 2024

If the create_dir_depth record is not set first, then it will have no effect, since the callback to create the directories is done when the file path record is processed.

@jwlodek jwlodek requested a review from coretl July 29, 2024 16:14
await asyncio.gather(
self.hdf.num_extra_dims.set(0),
self.hdf.lazy_open.set(True),
self.hdf.swmr_mode.set(True),
self.hdf.create_dir_depth.set(info.create_dir_depth),
Copy link
Collaborator

Choose a reason for hiding this comment

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

The gather will fire them off but there's no guarantee in the order they will be received. Better to await self.hdf.create_dir_depth before doing the await asyncio.gather of all the other signals

@jwlodek jwlodek requested a review from coretl July 30, 2024 13:32
@jwlodek jwlodek merged commit 8273a2e into bluesky:main Jul 31, 2024
11 checks passed
@jwlodek jwlodek deleted the ad-hdf-plugin-set-dir-depth-first branch August 9, 2024 17:41
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