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

Feature/machine progress bar #56

Merged
merged 11 commits into from
Feb 28, 2025
Merged

Conversation

AryanSV5
Copy link

Added a machine status progress bar to the dashboard by creating another row. I made this subpanel in utils.py and check for updates from the interlocks and pmon subsystems to determine if they are active or not.

image

@AryanSV5 AryanSV5 requested a review from mslaffin February 27, 2025 23:37
@mslaffin mslaffin added the enhancement New feature or request label Feb 28, 2025
@mslaffin mslaffin requested a review from bwalkerMIR February 28, 2025 01:47
Copy link
Collaborator

@mslaffin mslaffin left a comment

Choose a reason for hiding this comment

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

Nice work, I think this looks clean

),
'Oil System': subsystem.OilSubsystem(
self.frames['Oil System'],
logger=self.logger
logger=self.logger,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if we should add a MACHINE_STATUS for the oil system? And for the VTRX system?

It seems like that would give us consistency across all subsystems at basically no cost. As long as we can fit the text.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes Arundhati and I talked about this just now and think this is a great idea

utils.py Outdated
Comment on lines 409 to 412
if status_dict is None:
status_dict = self.MACHINE_STATUS
self.update_labels(status_dict)
self.parent.after(self.update_interval, self.update_status) # Schedule the next update
Copy link
Collaborator

Choose a reason for hiding this comment

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

this update method is getting called repeatedly even when there are no changes. We'll probably want to track if any status in the dict has actually changed before scheduling the update.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Awesome it looks like you fixed this in commit 4d3af84

Copy link
Collaborator

@bwalkerMIR bwalkerMIR left a comment

Choose a reason for hiding this comment

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

Arundhati and I looked through the file changes and this looks great. It already includes the Machine Status changes in all the panels so far from Michael's latest commit. Creates panel for Machine Status in the bottom of the GUI.

@bwalkerMIR bwalkerMIR merged commit bbaf1c6 into develop Feb 28, 2025
1 check passed
@bwalkerMIR bwalkerMIR deleted the feature/machine-progress-bar branch February 28, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants