-
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.
Merge pull request #21 from slaclab/development
Development into main
- Loading branch information
Showing
47 changed files
with
44 additions
and
14 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
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,9 +1,39 @@ | ||
# beamtime-calibration-suite | ||
[![Build Status](https://github.com/slaclab/beamtime-calibration-suite/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/slaclab/beamtime-calibration-suite/actions/workflows/run-tests.yml) | ||
|
||
To run tests: | ||
ssh into psana | ||
source /sdf/group/lcls/ds/ana/sw/conda2/manage/bin/psconda.sh | ||
clone this repo | ||
cd beamtime-calibration-suite/tests | ||
pytest . | ||
To run any suite_scripts or use the library in scripts outside the project directory, you need to append the project directory to your PYTHONPATH, for example: | ||
export PYTHONPATH="${PYTHONPATH}:~/beamtime_slaclab/beamtime-calibration-suite" | ||
|
||
(can add this to your ~/.bashrc so persists between terminal sessions. Library can later have | ||
a better release method than cloning and adding to path (pip?)) | ||
|
||
File organization: | ||
/calibrationSuite: The library code lives here, and the functions can be imported into other scripts as such: | ||
|
||
from calibrationSuite.basicSuiteScript import * | ||
from calibrationSuite.fitFunctions import * | ||
from calibrationSuite.Stats import * | ||
from calibrationSuite.cluster import * | ||
|
||
(documentation on the library functionality is still to come, but example usage is seen in the /suite_scripts folder) | ||
|
||
/suite_scripts: scripts that use the calibrationSuite library code | ||
|
||
/standalone_scripts: scripts that do not use the calibrationSuite library code | ||
|
||
/tests: tests files, can be ran with 'pytest .' from the root project directory | ||
(Currently only test for the fitFunctions libraryh file is running, more tests are to be added) | ||
|
||
|
||
Current Status: | ||
|
||
main branch tag v1.0.0 are the scripts used for the 2/17/24 beamtime | ||
-only changes made are to file organization, and to import statements so work with new organization | ||
-large changes will be merged into ontop of this, but original scripts can be accessed by checking out this tag | ||
-future beamtimes can be tagged as well | ||
|
||
Developers: | ||
|
||
If you are new to git/github, start here: https://confluence.slac.stanford.edu/pages/viewpage.action?pageId=428802060 | ||
|
||
Then read the following for an overview of the development process: https://confluence.slac.stanford.edu/pages/viewpage.action?pageId=429562464 |
File renamed without changes.
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
standalone_scripts/analyze_npy.py → suite_scripts/analyze_npy.py
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.