-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOCS: trying to get docs formatting fixed
- Loading branch information
1 parent
aeeb248
commit 4b7a57c
Showing
7 changed files
with
82 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,44 +6,45 @@ | |
# Step-by-step to get running quick! | ||
* First, follow steps **1** through **7**: [Github and Git Setup](https://slaclab.github.io/beamtime-calibration-suite/setup/) | ||
* Next, run the following commands in a terminal (linux or mac terminal should work): | ||
 -_(note: lines starting with '#' are comments with explanation and don't need to be ran)_ | ||
 -_(note: in the 1st command: replace \<slac-username> with your slac linux-username)_ | ||
 -_(note: lines starting with '//' are comments with explanation and don't need to be ran)_ | ||
 -_(note: in the 1st command: replace \<slac-username> with your slac linux-username)_ | ||
``` | ||
# ssh into the s3df machines | ||
// ssh into the s3df machines | ||
ssh -Yt <slac-username>@s3dflogin.slac.stanford.edu | ||
ssh psana | ||
# do setup for s3df environment | ||
// do setup for s3df environment | ||
source /sdf/group/lcls/ds/ana/sw/conda2/manage/bin/psconda.sh | ||
# download the code | ||
// download the code | ||
mkdir repos && cd repos | ||
git clone [email protected]:slaclab/beamtime-calibration-suite.git | ||
cd beamtime-calibration-suite | ||
git fetch | ||
git switch development | ||
# do more environment setup for suite-scripts | ||
// do more environment setup for suite-scripts | ||
source setup.sh | ||
# run an example script | ||
// setup for running an example script | ||
mkdir setup_test_output | ||
cd suite_scripts | ||
python EventScanParallel.py -r 457 | ||
``` | ||
If everything is working, the script should start spitting terminal-output like: | ||
``` | ||
... | ||
3259 True | ||
3257 True | ||
3256 True | ||
3260 True | ||
Event number foo | ||
// run an example script | ||
OUTPUT_ROOT= python EventScanParallelSlice.py -r 457 -p ../setup_test_output | ||
//let the script run to completion... | ||
// now check the example ran correctly | ||
ls ../setup_test_output | ||
//if things are working correctly, you should see these non-empty files: | ||
eventNumbers_c0_r457_rixx1003721.npy means_c0_r457_rixx1003721.npy | ||
EventScanParallel_c0_r457_n1.h5 | ||
``` | ||
|
||
## Developers: | ||
|
||
If you are new to git/github, start [here](https://slaclab.github.io/beamtime-calibration-suite/learning_git/) | ||
If you are new to git/github, start with [Learning Git](https://slaclab.github.io/beamtime-calibration-suite/learning_git/) | ||
|
||
An overview of the development process is found [here](https://slaclab.github.io/beamtime-calibration-suite/workflow/) | ||
|
||
For commit messages, we can try to follow the PyDM guidelines: https://slaclab.github.io/pydm/development/development.html#commit-guidelines | ||
For commit messages, we can try to follow the PyDM guidelines: https://slaclab.github.io/pydm/development/development.html#commit-guidelines |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# Learning Git | ||
|
||
this project uses _git_ as a version control system, along with the [GitHub](https://github.com/) website for hosting the code and multiple other features | ||
this project uses [git](https://git-scm.com/) as a version control system, along with the [GitHub](https://github.com/) website for hosting the code and multiple other features | ||
|
||
if you want a good understanding of git, suggest to read the first 3 chapters of [https://git-scm.com/book/en/v2](https://git-scm.com/book/en/v2): | ||
* the following sections could be skipped: _1.5, 1.6, 2.6, 2.7, 3.5, 3.6_ | ||
* the book is a recommended resource by the git community but many other tutorials exist, so feel free to use other 'intro to git/github' videos/websites | ||
|
||
short presentation that summaries the book's content can be found [here](https://courses.cs.washington.edu/courses/cse403/13au/lectures/git.ppt.pdf) | ||
|
||
presentation by SLAC that explains git, github, git workflow, etc can be found [here](https://docs.google.com/presentation/d/1AXcH17xDfum4mZsdV5lfjn_mvSMp2ye796xrVuSM3w8/edit#slide=id.gf4dca9affc_0_7) | ||
presentation from SLAC that explains git, github, git workflow, etc can be found [here](https://docs.google.com/presentation/d/1AXcH17xDfum4mZsdV5lfjn_mvSMp2ye796xrVuSM3w8/edit#slide=id.gf4dca9affc_0_7) | ||
|
||
git commands cheat-sheet can be found here [here](https://www.jrebel.com/system/files/git-cheat-sheet.pdf) (**link will start download of pdf cheat sheet) | ||
git commands cheat-sheet can be found [here](https://www.jrebel.com/system/files/git-cheat-sheet.pdf) (**link will start download of pdf cheat sheet) | ||
|
||
(if you plan on developing the library) read about GitHub's 'Pull Request' feature here [here](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests) | ||
(if you plan on developing the library) read about GitHub's 'Pull Request' feature [here](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests) | ||
|
||
for commit messages, we can try to follow the PyDM guidelines: https://slaclab.github.io/pydm/development/development.html#commit-guidelines | ||
for commit messages, we can try to follow the PyDM [guidelines](https://slaclab.github.io/pydm/development/development.html#commit-guidelines) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,16 @@ | |
|
||
These steps will get you setup for running and developing the calibration suite! | ||
|
||
The steps describe the setup for using the scripts on the [SLAC Shared Scientific Data Facility (S3DF)](https://s3df.slac.stanford.edu/public/doc/#/) A S3DF account is needed before following these steps, and info on how to get one is [here](https://s3df.slac.stanford.edu/public/doc/#/accounts-and-access) | ||
These steps describe the setup for running on the [SLAC Shared Scientific Data Facility (S3DF)](https://s3df.slac.stanford.edu/public/doc/#/) A S3DF account is needed before following these steps, and info on how to get one is [here](https://s3df.slac.stanford.edu/public/doc/#/accounts-and-access) | ||
|
||
The only other prerequisites should be a terminal that can run Unix commands (mac and linux have this by default), and basic knowledge of using the terminal! | ||
The only other prerequisites should be a terminal that can run Unix commands (mac and linux have this by default), and basic knowledge of using this terminal | ||
|
||
## 1: Make a github.com account | ||
|
||
* if you already have github account and want to use it, skip to step **2)** | ||
* else to make a new account following the steps here: [https://github.com/join](https://github.com/join) | ||
* your username can be anything, some people like to use the _\<username>-slac_ convention (ex: _nstelter-slac_) | ||
* for the email you can use your _@slac.stanford.edu_ address or any other address if you want (just make sure to use the same email in step **4)** | ||
* your username can be anything, some people like to use the `<username>-slac` convention (ex: _nstelter-slac_) | ||
* for the email you can use your _@slac.stanford.edu_ address or any other address if you want (just make sure to use the same email in step **5)** | ||
* you will need a code from your email when creating the account | ||
|
||
## 2: Register your github account with ‘SLAC Lab’ github group | ||
|
@@ -29,8 +29,8 @@ The only other prerequisites should be a terminal that can run Unix commands (ma | |
|
||
## 4: Setup your terminal for next steps | ||
|
||
* for the following steps **5)**, **6)**, **7)**: make sure you terminal (linux or mac) is setup first with the following commands: | ||
(note: in the 1st command replace _\<slac-username\>_ with your slac unix account-name) | ||
* for the following steps **5)**, **6)**, **7)**, **8)**, make sure you terminal is setup first with the following commands: | ||
(note: in the 1st command replace `<slac-username>` with your slac unix account-name) | ||
``` | ||
ssh -Yt <slac-username>@s3dflogin.slac.stanford.edu | ||
//now enter your info to login to s3df... | ||
|
@@ -54,6 +54,7 @@ git config --global core.editor emacs | |
|
||
* first make sure you are logged into your github account in your web browser | ||
* for the next two bullet-points, make sure you have selected the 'Linux' tab near the top of the page, not 'Mac'! | ||
* note: the commands on the following pages have to be ran in the terminal setup in step **4)**, which is ssh'd into S3DF | ||
* Follow instructions under “Generating a new SSH key” and “Adding your SSH key to the ssh-agent”: [https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key) | ||
* Follow instructions under “Adding a new SSH key to your account”: [https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account#adding-a-new-ssh-key-to-your-account](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account#adding-a-new-ssh-key-to-your-account) | ||
|
||
|
@@ -70,12 +71,12 @@ git clone [email protected]:slaclab/beamtime-calibration-suite.git | |
cd beamtime-calibration-suite | ||
git switch development | ||
ls | ||
//should see a bunch of folders! | ||
//should see a bunch of folders | ||
cd suite_scripts | ||
ls | ||
//now should see a bunch of python scripts! | ||
//now should see a bunch of python scripts | ||
``` | ||
* if an error occurs during these commands, SSH setup in step **6)** may have had an issue and might need to be debugged | ||
* if an error occurs with these commands, SSH setup in step **6)** may have had an issue and might need to be debugged | ||
|
||
|
||
## 8: Run an example script | ||
|
@@ -88,7 +89,7 @@ source setup.sh | |
mkdir setup_test_output | ||
cd suite_scripts | ||
//'OUTPUT_ROOT=' sets the OUTPUT_ROOT environment var to an empty value, | ||
//which causes the script to look relative to the current directory for the output folder | ||
//which makes the script to look relative to the current directory for the output-folder | ||
OUTPUT_ROOT= python EventScanParallelSlice.py -r 457 -p ../setup_test_output | ||
//let the script run to completion... | ||
ls -lt ../setup_test_output | ||
|
Oops, something went wrong.