-
Notifications
You must be signed in to change notification settings - Fork 47
Replace first TODO instruction to import the wrapper of the instrument #33
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
Replace first TODO instruction to import the wrapper of the instrument #33
Conversation
… The previous instruction was a bit misleading and lead to copy-paste the content of the wrapper file.
| # TODO Replace this fake class with the import of the real python wrapper of your instrument | ||
| pass | ||
| # TODO Replace this fake import with the import of the real python wrapper of your instrument | ||
| from pymodaq_plugins_template.hardware.PythonWrapperFileOfYourInstrument import PythonWrapperObjectOfYourInstrument |
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.
maybe say the import is not exclusive from hardware but could be from another package: pymeasure, pylablib...
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.
for the file (module) write it in lowercase with underscore
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.
Done.
| pass | ||
|
|
||
| # TODO Replace this fake import with the import of the real python wrapper of your instrument | ||
| from pymodaq_plugins_template.hardware.PythonWrapperFileOfYourInstrument import PythonWrapperObjectOfYourInstrument |
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.
same as above
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.
Done
* consider the possibility of import from an external librairy like Pylablib or PyMeasure. * use lower case for wrapper file name
Modification of the first TODO instruction that was a bit misleading for the newcomer, and could lead him to copy-paste the content of his instrument wrapper in the plugin.
The good practise is rather to lead him to import the wrapper object.