-
Notifications
You must be signed in to change notification settings - Fork 28
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
Rename multiplier to frames_per_event and move to first dim of shape #726
Open
thomashopkins32
wants to merge
68
commits into
bluesky:main
Choose a base branch
from
thomashopkins32:move-multiplier-to-first-dim
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 62 commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
652de13
Starting to work on ad tiff writer
jwlodek e289ee4
Resolve merge conflicts
jwlodek f36ec3a
Continue working on tiff writer
jwlodek 83dff62
Further work on tiff writer, existing tests now passing.
jwlodek 1a52a21
Remove functions moved to superclas from hdf writer
jwlodek 489cfd8
Significant re-org and simplification of ad classes
jwlodek 83c6884
Ruff formatting
jwlodek 3b4f45a
Modify ad sim classes to reflect new superclasses
jwlodek 7175b30
Modify vimba and kinetix classes
jwlodek faf53d6
Modify aravis and pilatus classes
jwlodek 5b9f60f
Update all tests to make sure they still pass with changes
jwlodek 8bbfd0e
Some cleanup
jwlodek 1eab818
Merge with upstream
jwlodek f6825b4
Changes to standard detector to account for controller/writer types i…
jwlodek 651b80d
Significant changes to base detector, controller, and writer classes
jwlodek 38a61e8
Update detector and controller classes to reflect changes
jwlodek aecdf04
Make sure panda standard det uses new type hints
jwlodek e42fa12
Most tests passing
jwlodek 07684a4
Merge with main and resolve conflicts
jwlodek 6dc09f3
Revert change in test that was resolved by pydantic version update
jwlodek 1f7dcd7
Remove debugging prints
jwlodek 35dd1b1
Linter fixes
jwlodek 8112220
Fix linter error
jwlodek ac1e509
Move creation of writer outside of base AreaDetector class init per r…
jwlodek 8494da4
Make sure we don't wait for capture to be done!
jwlodek b212432
Merge with upstream
jwlodek 3242d45
Merge with upstream
jwlodek 488d7eb
Allow for specifying whether or not to use fileio signals for dataset…
jwlodek a76b70f
Revert "Allow for specifying whether or not to use fileio signals for…
jwlodek 7da935e
Fix linter errors, remove unused enum
jwlodek 0cd0ddf
Change from return to await to conform to return type
jwlodek f1b9a4e
Apply more suggestions from review
jwlodek 3c2b479
Merge with upstream
jwlodek d84f2b4
Replace instances of DeviceCollector to init_devices
jwlodek a5a42c6
Started moving multiplier; 'multiplier' name change in progress
thomashopkins32 05dd89c
Update src/ophyd_async/epics/adaravis/_aravis_controller.py
jwlodek 3fcd541
Update src/ophyd_async/epics/adaravis/_aravis_controller.py
jwlodek 87d5fdd
Update src/ophyd_async/epics/adcore/_core_writer.py
jwlodek 52d712e
Update src/ophyd_async/epics/adcore/_core_logic.py
jwlodek e46cbd4
Update src/ophyd_async/epics/adcore/_core_detector.py
jwlodek fbb895e
Update src/ophyd_async/epics/adcore/_core_detector.py
jwlodek 6cd79a6
Update src/ophyd_async/epics/adcore/_core_writer.py
jwlodek 05e6fbd
Fix all tests aside from 3.12 unawaited coro after applying suggestions
jwlodek a616fd2
Resolve unawaited coro error on 3.12
jwlodek 1ab9588
Merge branch 'ad-tiff-writer' of https://github.com/jwlodek/ophyd-asy…
thomashopkins32 7a86084
Finish changing multiplier -> batch_size; Fix some untyped imports
thomashopkins32 ed02c6b
Add more type ignores
thomashopkins32 cc944f9
Add extra first dimension to tests' outputs
thomashopkins32 0d2ca62
Added some questions and TODOs that need to be resolved; Otherwise, f…
thomashopkins32 753eee8
Get the initial frame index after opening the writer
thomashopkins32 26387e5
Remove batch_size from any writer __init__
thomashopkins32 f6a4f30
Call tiff_writer.open before collect_stream_docs
thomashopkins32 e7ffb80
Merge branch 'main' of https://github.com/bluesky/ophyd-async into mo…
thomashopkins32 dcc1566
Fixed tests by adding mocked directory creation callback to tiff and …
thomashopkins32 bc60d41
Merge branch 'main' of https://github.com/bluesky/ophyd-async into mo…
thomashopkins32 2bd6186
Change batch_size -> frames_per_event
thomashopkins32 df48897
Remove frames_per_event from HDFDataset, use as first dimension of sh…
thomashopkins32 bdda567
Cleanup + ruff checks
thomashopkins32 93f2f97
Added unit tests for describe with > 1 frames_per_event
thomashopkins32 9410c4f
Add unit tests for collect with > 1 frames_per_event
thomashopkins32 9ca8f2a
Fix docs indentation
thomashopkins32 871326a
Merge branch 'main' of https://github.com/bluesky/ophyd-async into mo…
thomashopkins32 4208d51
Merge branch 'main' of https://github.com/bluesky/ophyd-async into mo…
thomashopkins32 33b6b21
Remove shape from stream resource parameters
thomashopkins32 3fde1d2
Ruff check fixes
thomashopkins32 161f022
Make the first dimension for scalar values always the frames_per_event
thomashopkins32 2a92b9d
Ruff format
thomashopkins32 1935d69
Forgot one test
thomashopkins32 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need the
# type: ignore
here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get the following mypy issue. It looks like event-model does not have a py.typed marker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does
pyright
also complain? If it needs apy.typed
then please could you make an event-model PR to add it?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pyright does not seem to complain, event-model is missing a py.typed marker so I can add it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR here: bluesky/event-model#346
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@coretl It looks like adding this
py.typed
file to event-model breaks bluesky's tests since there are a lot of unresolved typing issues. I can work on these typing issues but I don't think this should be a blocker for this PR to be merged. Let me know if you think otherwise.