Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
ToolBox
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
SCS
ToolBox
Commits
6697c1f0
Commit
6697c1f0
authored
2 years ago
by
BenVK
Browse files
Options
Downloads
Patches
Plain Diff
added a second threshold to control what is a double count in centroid_one
parent
8026e420
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!239
New/Updated Centroiding Methods
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/toolbox_scs/detectors/hrixs.py
+2
-1
2 additions, 1 deletion
src/toolbox_scs/detectors/hrixs.py
with
2 additions
and
1 deletion
src/toolbox_scs/detectors/hrixs.py
+
2
−
1
View file @
6697c1f0
...
...
@@ -230,6 +230,7 @@ class hRIXS:
# centroid
THRESHOLD
=
None
# pixel counts above which a hit candidate is assumed
STD_THRESHOLD
=
3.5
# same as THRESHOLD, in standard deviations
DBL_THRESHOLD
=
7.5
# factor used for double hits in centroid_one
CURVE_A
=
0
# curvature parameters as determined elsewhere
CURVE_B
=
0
...
...
@@ -354,7 +355,7 @@ class hRIXS:
threshold
=
self
.
THRESHOLD
# Threshold for double photons chosen to be the same ratio to single
# photons as found in the ESRF method
SpotHIGH
=
7.5
*
threshold
SpotHIGH
=
self
.
DBL_THRESHOLD
*
threshold
if
self
.
AVOID_DBL
:
SpotHIGH
=
100000
middle
=
corners
[
1
:
-
1
,
1
:
-
1
]
...
...
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