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
44abfdb9
"README.md" did not exist on "91b56521bd741dcaad141baa99c304a60549fea7"
Commit
44abfdb9
authored
1 year ago
by
David Hammer
Browse files
Options
Downloads
Patches
Plain Diff
Reorder correct / preview / reshape
parent
cb902408
No related branches found
No related tags found
1 merge request
!35
Frame selection
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/calng/corrections/AgipdCorrection.py
+7
-4
7 additions, 4 deletions
src/calng/corrections/AgipdCorrection.py
with
7 additions
and
4 deletions
src/calng/corrections/AgipdCorrection.py
+
7
−
4
View file @
44abfdb9
...
...
@@ -775,13 +775,11 @@ class AgipdCorrection(base_correction.BaseCorrection):
self
.
log_status_warn
(
f
"
Unknown exception when loading data to GPU:
{
e
}
"
)
buffer_handle
,
buffer_array
=
self
.
_shmem_buffer
.
next_slot
()
self
.
kernel_runner
.
correct
(
self
.
_correction_flag_enabled
)
# previews are generated before any addons are run
# first prepare previews (not affected by addons
)
self
.
kernel_runner
.
correct
(
self
.
_correction_flag_preview
)
with
self
.
warning_context
(
"
processingState
"
,
base_correction
.
WarningLampType
.
PREVIEW_SETTINGS
)
as
warn
:
if
self
.
_correction_flag_enabled
!=
self
.
_correction_flag_preview
:
self
.
kernel_runner
.
correct
(
self
.
_correction_flag_preview
)
(
preview_slice_index
,
preview_cell
,
...
...
@@ -800,6 +798,11 @@ class AgipdCorrection(base_correction.BaseCorrection):
preview_raw_gain
,
preview_gain_map
,
)
=
self
.
kernel_runner
.
compute_previews
(
preview_slice_index
)
# TODO: start writing out previews asynchronously in the background
# then prepare full corrected data
if
self
.
_correction_flag_enabled
!=
self
.
_correction_flag_preview
:
self
.
kernel_runner
.
correct
(
self
.
_correction_flag_enabled
)
for
addon
in
self
.
_enabled_addons
:
addon
.
post_correction
(
self
.
kernel_runner
.
processed_data
,
cell_table
,
pulse_table
,
data_hash
...
...
This diff is collapsed.
Click to expand it.
David Hammer
@hammerd
mentioned in commit
68a601ed
·
1 year ago
mentioned in commit
68a601ed
mentioned in commit 68a601edb11346df2916dc2340aded299f656e8a
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