Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
ToolBox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SCS
ToolBox
Merge requests
!170
hRIXS functions
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
hRIXS functions
hrixs
into
master
Overview
14
Commits
7
Pipelines
0
Changes
1
4 unresolved threads
Hide all comments
Merged
Cammille Carinan
requested to merge
hrixs
into
master
3 years ago
Overview
14
Commits
7
Pipelines
0
Changes
1
4 unresolved threads
Hide all comments
Expand
0
0
Merge request reports
Viewing commit
eb1841a8
Prev
Next
Show latest version
1 file
+
2
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
eb1841a8
Improve SCS_slowTrain call
· eb1841a8
Cammille Carinan
authored
3 years ago
src/toolbox_scs/detectors/hrixs.py
+
2
−
4
Options
@@ -307,12 +307,10 @@ class hRIXS:
if
proposal
is
None
:
proposal
=
cls
.
PROPOSAL
run
,
data
=
tb
.
load
(
proposal
,
runNB
=
runNB
,
fields
=
[
'
hRIXS_det
'
,
'
SCS_slowTrain
'
])
run
,
data
=
tb
.
load
(
proposal
,
runNB
=
runNB
,
fields
=
[
'
hRIXS_det
'
])
# Get slow train data
mnemo
=
tb
.
mnemonics
[
'
SCS_slowTrain
'
]
[
0
]
mnemo
=
tb
.
mnemonics
_for_run
(
run
)
[
'
SCS_slowTrain
'
]
slow_train
=
run
[
mnemo
[
'
source
'
],
mnemo
[
'
key
'
]].
ndarray
().
sum
()
return
cls
(
images
=
data
[
'
hRIXS_det
'
][
1
if
first_wrong
else
0
:].
data
,
Loading