-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
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.
Nice work, I think this looks clean
), | ||
'Oil System': subsystem.OilSubsystem( | ||
self.frames['Oil System'], | ||
logger=self.logger | ||
logger=self.logger, |
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 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.
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.
Yes Arundhati and I talked about this just now and think this is a great idea
utils.py
Outdated
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 |
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.
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.
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.
Awesome it looks like you fixed this in commit 4d3af84
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.
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.
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.