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
Commits
1aedfd68
Commit
1aedfd68
authored
4 months ago
by
Laurent Mercadier
Browse files
Options
Downloads
Patches
Plain Diff
fix when gh2_dim is not in dataset
parent
e5fec4a8
No related branches found
No related tags found
1 merge request
!311
fix when gh2_dim is not in dataset
Pipeline
#157013
passed
4 months ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/toolbox_scs/detectors/gotthard2.py
+1
-1
1 addition, 1 deletion
src/toolbox_scs/detectors/gotthard2.py
with
1 addition
and
1 deletion
src/toolbox_scs/detectors/gotthard2.py
+
1
−
1
View file @
1aedfd68
...
@@ -53,7 +53,7 @@ def extract_GH2(ds, run, firstFrame=0, bunchPattern='scs_ppl',
...
@@ -53,7 +53,7 @@ def extract_GH2(ds, run, firstFrame=0, bunchPattern='scs_ppl',
pattern
=
XrayPulses
(
run
)
pattern
=
XrayPulses
(
run
)
dim
=
'
sa3_pId
'
dim
=
'
sa3_pId
'
others
=
[
var
for
var
in
ds
if
dim
in
ds
[
var
].
coords
]
others
=
[
var
for
var
in
ds
if
dim
in
ds
[
var
].
coords
]
nds
=
ds
.
drop_dims
(
dim
)
nds
=
ds
.
drop_dims
(
dim
,
errors
=
'
ignore
'
)
if
pattern
.
is_constant_pattern
():
if
pattern
.
is_constant_pattern
():
pulse_ids
=
pattern
.
peek_pulse_ids
(
labelled
=
False
)
pulse_ids
=
pattern
.
peek_pulse_ids
(
labelled
=
False
)
nds
=
nds
.
isel
({
gh2_dim
:
pulse_ids
+
firstFrame
})
nds
=
nds
.
isel
({
gh2_dim
:
pulse_ids
+
firstFrame
})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment