-
Notifications
You must be signed in to change notification settings - Fork 2
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
Refactor using DriverModel
#3
base: master
Are you sure you want to change the base?
Conversation
@AlexN7-Shepard It looks like you've added a new file |
… the lab this week
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 don't think your code works. Have you tried it with the hardware? There are a lot of extra functions that don't need to be there and a lot of function that have to be there for the class to instantiate are missing. What's going on?
src/tomato_bronkhorst/__init__.py
Outdated
# you mentionned that the property map should be outside, check | ||
# but also that the parameters were hard coded, for more I think you asked to handle this : | ||
# here is a proposition for more flexibility : | ||
class PropertyMap: |
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 don't see the benefit of having this as a Class
, since there are no useful class methods in it. I'm not sure we'll ever need to add a property from within tomato...
src/tomato_bronkhorst/__init__.py
Outdated
else: | ||
raise ValueError(f"Unknown device type: {device_type}. Expected 90 for MFC or 91 for PC.") |
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.
Syntax error due to bad indent here.
src/tomato_bronkhorst/__init__.py
Outdated
) | ||
return attrs_dict | ||
|
||
def _capabilities(self, **kwargs) -> set: |
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 should also be on the DeviceManager, and capabilities
not _capabilities
.
…red + some debugging, the code is now fully reachable
This PR will refactor @AlexN7-Shepard's implementation using tomato's
DriverModel
.Tasks:
Tasks