-
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 #130 from slaclab/beamtime_september_1_2024
merging in changes from beamtime september 1 2024
- Loading branch information
Showing
8 changed files
with
81 additions
and
34 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from psana import * | ||
import sys | ||
|
||
##N.b. - this is psana2 | ||
|
||
exp = 'rixc00122' | ||
run = eval(sys.argv[1]) | ||
ds = DataSource(exp=exp,run=run, | ||
intg_det='archon', max_events=666666) | ||
|
||
smd = ds.smalldata(filename="foo.h5") | ||
print(help(smd.event)) | ||
|
||
myrun = next(ds.runs()) | ||
det = myrun.Detector('archon') | ||
|
||
nGood = 0 | ||
nBad = 0 | ||
for nevt, evt in enumerate(myrun.events()): | ||
##print(dir(evt)) | ||
##print(help(evt)) | ||
if det.raw.raw(evt) is None: | ||
if nBad<3: print("event %d is None" %(nevt)) | ||
nBad += 1 | ||
else: | ||
if nGood<3: print("good event") | ||
nGood += 1 | ||
|
||
|
||
print("good vs evil:", nGood, nBad) |
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
Submodule test_data
updated
1 files
+2 −2 | test_linearity_scan/LinearityPlotsParallel_r102_sliceFits_fooBar_raw.npy |