...
Table of Contents |
---|
Prerequisites
- Join #srf_pydm_tutorial on Slack for any questions about the setup or exercises
- Complete a Local PyDM/Simulacrum Setup
- Run through the GitHub quick start tutorial
- Run through the GitHub tutorial on contributing to projects
- Note that I recommend using the ssh approach as it leverages what we did in step 12
- Read through the Microsoft OOP training and really try to get a conceptual handle on objects
- Read through the description of Qt signals and slots
- Join the slaclab tutorial team
- Download and install PyCharm.
- Other IDEs are available, but we will be leveraging PyCharm specific features such as refactoring on save
- Fork the tutorial repository and clone it to your machine (see step 3)
- navigate to the solutions subdirectory and follow the instructions in
solutions.txt
- navigate to the solutions subdirectory and follow the instructions in
Info |
---|
Unless otherwise specified, everything hereafter will be done in the PyDM conda environment set up in prerequisites step 2 |
...
- Navigate to the pv_readout directory in your personal subdirectory and open pv_readout.ui in designer and pv_readout.py in PyCharm
- Make the widget resizable and make it so that the elements are aligned nicely horizontally
- Rename the widgets to have helpful names
- Edit the python file so that it uses pv_readout.ui
- Connect the returnPressed signal from the line edit to a custom slot that updates the pydm label's channel to the line edit's text
- Git add, git commit, and git push your changes to your fork
Merging into production
Once all your work is complete and pushed to your fork, navigate to your fork's page on GitHub and open a pull request. Please request the slaclab/srf_tutorial team as a reviewer and await feedback.
Related articles
Content by Label | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...