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

173 stream resource seperate classes #429

Merged
merged 39 commits into from
Jul 4, 2024

Conversation

subinsaji
Copy link
Contributor

@subinsaji subinsaji commented Jul 3, 2024

Fixes #173

.github/workflows/_test.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@abbiemery abbiemery marked this pull request as ready for review July 4, 2024 10:41
src/ophyd_async/panda/writers/_hdf_writer.py Outdated Show resolved Hide resolved
src/ophyd_async/sim/pattern_generator.py Show resolved Hide resolved
src/ophyd_async/sim/pattern_generator.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@coretl coretl left a comment

Choose a reason for hiding this comment

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

I imagine this will break the pattern generator, but it's more important to get this in as it's holding other things in. We can fix the pattern generator in another ticket

Comment on lines +66 to +68
self.maxshape: tuple[Any, ...] = (1,)
self.fillvalue: int = 1
self.shape: List[int] = [1, 1]
Copy link
Collaborator

Choose a reason for hiding this comment

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

For the next ticket:

  • shape of a frame is [detector_height, detector_width]
  • shape of the DATA HDF dataset is [1, detector_height, detector_width]
  • fill value for SUM dataset is -1, not required for the dataset
  • maxshape for the DATA HDF dataset = [None, detector_height, detector_width]

As per https://github.com/dls-controls/bluefly/blob/0ee7ea837d5f74e3cdc69e2315e9beed28dd7766/bluefly/areadetector_sim.py#L55-L68

@abbiemery abbiemery merged commit dbbcf28 into main Jul 4, 2024
18 checks passed
@abbiemery abbiemery deleted the 173-StreamResource-seperate-classes branch July 4, 2024 15:14
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.

Factor StreamResource producing code into a separate class
5 participants