Skip to content

Dataclasses - #39

Merged
M-Chan merged 63 commits into
new-mainfrom
dataclasses
Sep 18, 2026
Merged

M-Chan merged 63 commits into
new-mainfrom
dataclasses

Conversation

@M-Chan

@M-Chan M-Chan commented Aug 3, 2026

Copy link
Copy Markdown

Use dataclasses for polling status

M-Chan and others added 30 commits June 19, 2026 13:27
only motor_responses are parsed into the nested dataclass

still need to parse the other statuses in
bring across changes from comms_qtthread to original comms_thread file
remove now duplicate file
bring across changes from comms_qtthread_2 to original comms_thread file and now use the original file in program
remove now duplicate file
needs to be picked apart later as some code may still be needed (ie. watches)
@M-Chan
M-Chan requested a review from JamesOHeaDLS August 19, 2026 08:43

@JamesOHeaDLS JamesOHeaDLS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @M-Chan - these changes are all good, I've just suggested a couple of refinements.

With these changes to comms_thread.py and status_dataclasses.py, main.py should now be revisited to work with this new structure

Comment thread src/dls_pmac_control/__main__.py Outdated
Comment thread src/dls_pmac_control/__main__.py Outdated
Comment thread src/dls_pmac_control/status_dataclasses.py Outdated
Comment thread src/dls_pmac_control/status_dataclasses.py Outdated
Comment thread src/dls_pmac_control/comms_thread.py
Comment thread src/dls_pmac_control/__main__.py Outdated
Comment thread src/dls_pmac_control/comms_thread.py Outdated
Comment thread src/dls_pmac_control/comms_thread.py Outdated
@M-Chan
M-Chan requested a review from JamesOHeaDLS September 15, 2026 07:39

@JamesOHeaDLS JamesOHeaDLS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cool! Looks good, thanks @M-Chan

I have made one note for the deletion of a line of commented code, but otherwise it is ready for a squash merge!

Comment thread src/dls_pmac_control/__main__.py Outdated
@M-Chan
M-Chan merged commit 61c700c into new-main Sep 18, 2026
9 of 12 checks passed
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