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
7dd9fc5d
Commit
7dd9fc5d
authored
7 months ago
by
Karim Ahmed
Browse files
Options
Downloads
Patches
Plain Diff
fix: remove code based on wrong assumptions of missing a named placeholder
parent
a8f45b0a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1039
fix(GH2): Avoid getting wrong data sources or including control devices' sources.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cal_tools/gotthard2/gotthard2lib.py
+5
-8
5 additions, 8 deletions
src/cal_tools/gotthard2/gotthard2lib.py
with
5 additions
and
8 deletions
src/cal_tools/gotthard2/gotthard2lib.py
+
5
−
8
View file @
7dd9fc5d
...
@@ -6,14 +6,11 @@ import extra_data
...
@@ -6,14 +6,11 @@ import extra_data
def
map_da_to_source
(
dc
,
das
,
source_template
,
karabo_id
,
affixes
):
def
map_da_to_source
(
dc
,
das
,
source_template
,
karabo_id
,
affixes
):
if
"
{input_source_affixes}
"
in
source_template
:
source_names
=
[
source_names
=
[
source_template
.
format
(
source_template
.
format
(
karabo_id
=
karabo_id
,
input_source_affixes
=
aff
)
# noqa
karabo_id
=
karabo_id
,
input_source_affixes
=
aff
)
for
aff
in
affixes
for
aff
in
affixes
]
]
else
:
# e.g 50um doesnt need to have affixes.
source_names
=
[
source_template
.
format
(
karabo_id
=
karabo_id
)]
if
len
(
source_names
)
!=
len
(
das
):
if
len
(
source_names
)
!=
len
(
das
):
raise
ValueError
(
raise
ValueError
(
"
Number of source names (and given affixes)
"
"
Number of source names (and given affixes)
"
...
...
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