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
b412ee5e
Commit
b412ee5e
authored
9 months ago
by
Thomas Kluyver
Browse files
Options
Downloads
Patches
Plain Diff
Check markdown table creation in tests
parent
f373a9bf
No related branches found
No related tags found
1 merge request
!992
New CalCat API: port markdown tables of found constants
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_calcat_interface2.py
+5
-0
5 additions, 0 deletions
tests/test_calcat_interface2.py
with
5 additions
and
0 deletions
tests/test_calcat_interface2.py
+
5
−
0
View file @
b412ee5e
import
numpy
as
np
import
numpy
as
np
import
pytest
import
pytest
import
re
import
xarray
as
xr
import
xarray
as
xr
from
cal_tools.calcat_interface2
import
(
from
cal_tools.calcat_interface2
import
(
...
@@ -36,6 +37,10 @@ def test_AGIPD_CalibrationData_metadata():
...
@@ -36,6 +37,10 @@ def test_AGIPD_CalibrationData_metadata():
assert
isinstance
(
agipd_cd
[
"
Offset
"
,
"
AGIPD00
"
],
SingleConstant
)
assert
isinstance
(
agipd_cd
[
"
Offset
"
,
"
AGIPD00
"
],
SingleConstant
)
assert
agipd_cd
[
"
Offset
"
,
"
Q1M2
"
]
==
agipd_cd
[
"
Offset
"
,
"
AGIPD01
"
]
assert
agipd_cd
[
"
Offset
"
,
"
Q1M2
"
]
==
agipd_cd
[
"
Offset
"
,
"
AGIPD01
"
]
assert
re
.
search
(
r
"
\[2022-\d{2}-\d{2} \d{2}:\d{2}\]\(https://in.xfel.eu/
"
,
agipd_cd
.
markdown_table
()
)
@pytest.mark.requires_gpfs
@pytest.mark.requires_gpfs
def
test_AGIPD_merge
():
def
test_AGIPD_merge
():
...
...
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