Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor 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
calibration
pycalibration
Commits
e65a2d3e
Commit
e65a2d3e
authored
1 year ago
by
Karim Ahmed
Browse files
Options
Downloads
Patches
Plain Diff
Workaround for SPB_CFEL_JF1M as the modules start with 09 not 01
parent
c1552168
No related branches found
No related tags found
1 merge request
!847
[Jungfrau] Workaround for `SPB_CFEL_JF1M` as the modules start with `09` not `01`
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cal_tools/plotting.py
+5
-1
5 additions, 1 deletion
src/cal_tools/plotting.py
with
5 additions
and
1 deletion
src/cal_tools/plotting.py
+
5
−
1
View file @
e65a2d3e
...
@@ -447,7 +447,11 @@ def init_jungfrau_geom(
...
@@ -447,7 +447,11 @@ def init_jungfrau_geom(
(
-
1
,
-
1
)
for
_
in
range
(
4
)]
+
[(
1
,
1
)
for
_
in
range
(
4
)]
(
-
1
,
-
1
)
for
_
in
range
(
4
)]
+
[(
1
,
1
)
for
_
in
range
(
4
)]
elif
"
JF1M
"
in
karabo_id
:
elif
"
JF1M
"
in
karabo_id
:
nmods
=
2
nmods
=
2
expected_modules
=
[
f
"
JNGFR
{
i
:
02
d
}
"
for
i
in
range
(
1
,
nmods
+
1
)]
st_modno
=
1
# TODO: This is a temporary workaround. A proper solution is needed.
if
karabo_id
==
"
SPB_CFEL_JF1M
"
:
st_modno
=
9
expected_modules
=
[
f
"
JNGFR
{
i
:
02
d
}
"
for
i
in
range
(
st_modno
,
st_modno
+
nmods
)]
module_pos
=
((
-
mod_width
//
2
,
33
),
(
-
mod_width
//
2
,
-
mod_height
-
33
))
module_pos
=
((
-
mod_width
//
2
,
33
),
(
-
mod_width
//
2
,
-
mod_height
-
33
))
orientations
=
[(
-
1
,
-
1
),
(
1
,
1
)]
orientations
=
[(
-
1
,
-
1
),
(
1
,
1
)]
else
:
# e.g. HED_IA1_JF500K1, FXE_XAD_JF500K, FXE_XAD_JFHZ
else
:
# e.g. HED_IA1_JF500K1, FXE_XAD_JF500K, FXE_XAD_JFHZ
...
...
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