You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Git

Local

GitHub

SLAC has a GitHub organization called SLAC Lab. Access to it isn't granted automatically, but it's pretty easy to get! Make a GitHub account (or use one that you already have) and send your username to Brian Van Klaveren (email bvan@slac.stanford.edu or ping brianv on Slack) asking for access. Note: This step has very high potential to end up out of date if someone else ends up managing SLAC Lab, so keep that in mind.

Production repositories locally live in ~/opsTools, and remotely live on GitHub.

PyDM

Tutorial

  1. Go to https://github.com/slaclab/devPanel
  2. Click "Fork" in the upper right corner 
  3. Click the link that says [Your User Name]/devPanel (Mine says that I've already forked it, but yours should ask you where you want to fork it)
  4. Click the green "Clone or Download" button and copy the ssh path. If you see what looks like a URL, click the blue "Use SSH" link right above it
  5. Back on an OPI (or ssh'ed in), go to your physics directory and make a devPanel subdirectory
  6. In that subdirectory, run "git init"
  7. Still in that subdirectory, type "~/mgibbs/link_repo_to_github/link_repo_to_github.sh -i" and follow the prompts (if you don't feel like thinking about it, you can use these defaults. You'll get slightly different messages since I've already run this before)
  8. Type "git pull origin master" and type in your password when prompted (again, messages will be slightly different since I've done this before)
  9. Type "mkdir [Your Name]" and head into that directory  
  10. Type "source use_pydm.sh" 
  11. Type "designer &" 
  12. In the program that opens, click "Widget" and then "Create" 
  13. In the Widget box on the left, scroll all the way down and drag a drop a PyDMShellCommand somewhere in the widget that popped up in the last step
  14. Right click anywhere in the widget that isn't the tiny shell command button, hover over "layout" at the bottom, and click "lay out in a grid" 
  15. Click "open" and then pick "opsDevPanel.ui" 

 

 

 

 

 

 

 

 

  • No labels