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
f98ad852
Commit
f98ad852
authored
3 years ago
by
Karim Ahmed
Browse files
Options
Downloads
Patches
Plain Diff
use get_run_value instead of as_single_value and split functions for adding tests later
parent
7f825541
Loading
Loading
1 merge request
!646
[AGIPD][TESTs]test_agipdlib AGIPDCtrl and get_bias_voltage for AGIPD1M and AGIPD500K
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cal_tools/agipdlib.py
+3
-0
3 additions, 0 deletions
src/cal_tools/agipdlib.py
with
3 additions
and
0 deletions
src/cal_tools/agipdlib.py
+
3
−
0
View file @
f98ad852
...
@@ -82,6 +82,9 @@ class AgipdCtrl:
...
@@ -82,6 +82,9 @@ class AgipdCtrl:
# about bucketing the rate for managing meta-data.
# about bucketing the rate for managing meta-data.
return
round
(
float
(
self
.
run_dc
[
rep_rate_src
].
as_single_value
()),
1
)
return
round
(
float
(
self
.
run_dc
[
rep_rate_src
].
as_single_value
()),
1
)
def
_get_acq_rate_instr
(
self
)
->
Optional
[
float
]:
"""
Get acquisition (repetition rate) from INSTRUMENT source.
"""
def
_get_acq_rate_instr
(
self
)
->
Optional
[
float
]:
def
_get_acq_rate_instr
(
self
)
->
Optional
[
float
]:
"""
Get acquisition (repetition rate) from INSTRUMENT source.
"""
"""
Get acquisition (repetition rate) from INSTRUMENT source.
"""
...
...
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