Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
calng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
calng
Commits
beda6c41
Commit
beda6c41
authored
3 years ago
by
David Hammer
Browse files
Options
Downloads
Patches
Plain Diff
Removing stale TODOs
parent
60f74673
No related branches found
No related tags found
2 merge requests
!12
Snapshot: field test deployed version as of end of run 202201
,
!3
Base correction device, CalCat interaction, DSSC and AGIPD devices
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/calng/AgipdCorrection.py
+0
-2
0 additions, 2 deletions
src/calng/AgipdCorrection.py
src/calng/DsscCorrection.py
+0
-1
0 additions, 1 deletion
src/calng/DsscCorrection.py
with
0 additions
and
3 deletions
src/calng/AgipdCorrection.py
+
0
−
2
View file @
beda6c41
...
...
@@ -227,7 +227,6 @@ class AgipdCorrection(BaseCorrection):
# cell_table = cell_table[self.pulse_filter]
pulse_table
=
np
.
squeeze
(
data
.
get
(
"
image.pulseId
"
))
# [self.pulse_filter]
cell_table_max
=
np
.
max
(
cell_table
)
# TODO: all this checking and warning can go into GPU runner
if
cell_table_max
>=
correction_cell_num
:
self
.
log_status_info
(
f
"
Max cell ID (
{
cell_table_max
}
) exceeds range for loaded
"
...
...
@@ -247,7 +246,6 @@ class AgipdCorrection(BaseCorrection):
preview_slice_index
=
self
.
_schema_cache
[
"
preview.pulse
"
]
if
preview_slice_index
>=
0
:
# look at pulse_table to find which index this pulse ID is in
# TODO: move this to GPU
pulse_id_found
=
np
.
where
(
pulse_table
==
preview_slice_index
)[
0
]
if
len
(
pulse_id_found
)
==
0
:
pulse_found_instead
=
pulse_table
[
0
]
...
...
This diff is collapsed.
Click to expand it.
src/calng/DsscCorrection.py
+
0
−
1
View file @
beda6c41
...
...
@@ -55,7 +55,6 @@ class DsscCorrection(BaseCorrection):
def
process_input
(
self
,
data
,
metadata
):
"""
Registered for dataInput, handles all processing and sending
"""
# TODO: compare KARABO_ON_INPUT (old) against KARABO_ON_DATA (current)
source
=
metadata
.
get
(
"
source
"
)
if
source
not
in
self
.
sources
:
...
...
This diff is collapsed.
Click to expand it.
David Hammer
@hammerd
mentioned in commit
3566342d
·
2 years ago
mentioned in commit
3566342d
mentioned in commit 3566342d031db1bb435b6430f100afdbaaa6c4bf
Toggle commit list
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