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
0261705f
Commit
0261705f
authored
3 years ago
by
David Hammer
Browse files
Options
Downloads
Patches
Plain Diff
Revert support for snapshot_at in get_from_db
parent
088a0cc4
No related branches found
No related tags found
1 merge request
!492
[AGIPD][DARK] Correctly retrieve old constants for comparison
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cal_tools/tools.py
+1
-6
1 addition, 6 deletions
src/cal_tools/tools.py
with
1 addition
and
6 deletions
src/cal_tools/tools.py
+
1
−
6
View file @
0261705f
...
@@ -461,7 +461,6 @@ def get_from_db(karabo_id: str, karabo_da: str,
...
@@ -461,7 +461,6 @@ def get_from_db(karabo_id: str, karabo_da: str,
empty_constant
:
np
.
array
,
empty_constant
:
np
.
array
,
cal_db_interface
:
str
,
cal_db_interface
:
str
,
creation_time
:
Optional
[
datetime
.
datetime
]
=
None
,
creation_time
:
Optional
[
datetime
.
datetime
]
=
None
,
snapshot_at
:
Optional
[
datetime
.
datetime
]
=
None
,
verbosity
:
int
=
1
,
verbosity
:
int
=
1
,
timeout
:
int
=
30000
,
timeout
:
int
=
30000
,
ntries
:
int
=
7
,
ntries
:
int
=
7
,
...
@@ -508,9 +507,6 @@ def get_from_db(karabo_id: str, karabo_da: str,
...
@@ -508,9 +507,6 @@ def get_from_db(karabo_id: str, karabo_da: str,
if
creation_time
is
not
None
and
hasattr
(
creation_time
,
'
isoformat
'
):
if
creation_time
is
not
None
and
hasattr
(
creation_time
,
'
isoformat
'
):
when
=
creation_time
.
isoformat
()
when
=
creation_time
.
isoformat
()
if
snapshot_at
is
not
None
and
hasattr
(
snapshot_at
,
'
isoformat
'
):
snapshot_at
=
snapshot_at
.
isoformat
()
metadata
.
calibration_constant_version
.
karabo_id
=
karabo_id
metadata
.
calibration_constant_version
.
karabo_id
=
karabo_id
metadata
.
calibration_constant_version
.
karabo_da
=
karabo_da
metadata
.
calibration_constant_version
.
karabo_da
=
karabo_da
...
@@ -526,8 +522,7 @@ def get_from_db(karabo_id: str, karabo_da: str,
...
@@ -526,8 +522,7 @@ def get_from_db(karabo_id: str, karabo_da: str,
r
=
metadata
.
retrieve
(
this_interface
,
timeout
=
timeout
,
r
=
metadata
.
retrieve
(
this_interface
,
timeout
=
timeout
,
when
=
when
,
meta_only
=
meta_only
,
when
=
when
,
meta_only
=
meta_only
,
version_info
=
version_info
,
version_info
=
version_info
,
strategy
=
strategy
,
strategy
=
strategy
)
snapshot_at
=
snapshot_at
)
if
version_info
:
if
version_info
:
return
r
return
r
break
break
...
...
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