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
71eac33d
Commit
71eac33d
authored
1 year ago
by
Thomas Kluyver
Browse files
Options
Downloads
Patches
Plain Diff
from_condition() no longer accepts a modules parameter
parent
e0b9da2b
No related branches found
No related tags found
1 merge request
!885
Revised CalCat API
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_calcat_interface2.py
+2
-4
2 additions, 4 deletions
tests/test_calcat_interface2.py
with
2 additions
and
4 deletions
tests/test_calcat_interface2.py
+
2
−
4
View file @
71eac33d
...
@@ -22,11 +22,10 @@ def test_AGIPD_CalibrationData_metadata():
...
@@ -22,11 +22,10 @@ def test_AGIPD_CalibrationData_metadata():
cond
,
cond
,
"
MID_DET_AGIPD1M-1
"
,
"
MID_DET_AGIPD1M-1
"
,
event_at
=
"
2022-09-01 13:26:48.00
"
,
event_at
=
"
2022-09-01 13:26:48.00
"
,
modules
=
[
'
AGIPD00
'
],
calibrations
=
[
'
Offset
'
,
'
SlopesFF
'
],
calibrations
=
[
'
Offset
'
,
'
SlopesFF
'
],
)
)
assert
'
Offset
'
in
agipd_cd
assert
'
Offset
'
in
agipd_cd
assert
set
(
agipd_cd
[
'
Offset
'
].
constants
)
==
{
'
AGIPD
00
'
}
assert
set
(
agipd_cd
[
'
Offset
'
].
constants
)
==
{
'
AGIPD
{i:02}
'
for
i
in
range
(
16
)
}
assert
isinstance
(
agipd_cd
[
'
Offset
'
].
constants
[
'
AGIPD00
'
],
SingleConstantVersion
)
assert
isinstance
(
agipd_cd
[
'
Offset
'
].
constants
[
'
AGIPD00
'
],
SingleConstantVersion
)
...
@@ -47,10 +46,9 @@ def test_AGIPD_CalibrationData_metadata_SPB():
...
@@ -47,10 +46,9 @@ def test_AGIPD_CalibrationData_metadata_SPB():
cond
,
cond
,
"
SPB_DET_AGIPD1M-1
"
,
"
SPB_DET_AGIPD1M-1
"
,
event_at
=
"
2020-01-07 13:26:48.00
"
,
event_at
=
"
2020-01-07 13:26:48.00
"
,
modules
=
[
'
AGIPD00
'
],
)
)
assert
'
Offset
'
in
agipd_cd
assert
'
Offset
'
in
agipd_cd
assert
set
(
agipd_cd
[
'
Offset
'
].
constants
)
==
{
'
AGIPD
00
'
}
assert
set
(
agipd_cd
[
'
Offset
'
].
constants
)
==
{
'
AGIPD
{i:02}
'
for
i
in
range
(
16
)
}
assert
isinstance
(
agipd_cd
[
'
Offset
'
].
constants
[
'
AGIPD00
'
],
SingleConstantVersion
)
assert
isinstance
(
agipd_cd
[
'
Offset
'
].
constants
[
'
AGIPD00
'
],
SingleConstantVersion
)
...
...
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