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
Merge requests
!186
Improved BOZ flat field
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Improved BOZ flat field
boz_flat_field
into
master
Overview
0
Commits
23
Pipelines
0
Changes
7
Merged
Loïc Le Guyader
requested to merge
boz_flat_field
into
master
2 years ago
Overview
0
Commits
23
Pipelines
0
Changes
1
Expand
adds low and high threshold on product and ratio of ROIs to calculate flat field correction
adds default flat field guess for the fit as parameters
implement hexagonal lattice for DSSC pixels
breaks left/right symmetry for flat field fitting since zone plate can be slightly rotated
implements a refine fit with regularization for flat field calculation
implements dask auto rechunking
Closes
#53 (closed)
#55 (closed)
Edited
2 years ago
by
Loïc Le Guyader
0
0
Merge request reports
Compare
version 8
version 21
9e9dfc4e
2 years ago
version 20
a92b3aae
2 years ago
version 19
3599f88c
2 years ago
version 18
e933e01d
2 years ago
version 17
b4eb414f
2 years ago
version 16
d4025d44
2 years ago
version 15
e790f635
2 years ago
version 14
81cf364a
2 years ago
version 13
0b06586f
2 years ago
version 12
46d7b773
2 years ago
version 11
a0996f77
2 years ago
version 10
5f83a338
2 years ago
version 9
1d8905f4
2 years ago
version 8
ca91ca0f
2 years ago
version 7
cce2870a
2 years ago
version 6
80080259
2 years ago
version 5
6cae94f2
2 years ago
version 4
e6cc785e
2 years ago
version 3
5312b270
2 years ago
version 2
f3b6ae69
2 years ago
version 1
2e65ab37
2 years ago
master (base)
and
version 9
latest version
b07442d9
23 commits,
2 years ago
version 21
9e9dfc4e
22 commits,
2 years ago
version 20
a92b3aae
21 commits,
2 years ago
version 19
3599f88c
20 commits,
2 years ago
version 18
e933e01d
19 commits,
2 years ago
version 17
b4eb414f
18 commits,
2 years ago
version 16
d4025d44
17 commits,
2 years ago
version 15
e790f635
16 commits,
2 years ago
version 14
81cf364a
15 commits,
2 years ago
version 13
0b06586f
14 commits,
2 years ago
version 12
46d7b773
13 commits,
2 years ago
version 11
a0996f77
16 commits,
2 years ago
version 10
5f83a338
15 commits,
2 years ago
version 9
1d8905f4
14 commits,
2 years ago
version 8
ca91ca0f
13 commits,
2 years ago
version 7
cce2870a
12 commits,
2 years ago
version 6
80080259
11 commits,
2 years ago
version 5
6cae94f2
10 commits,
2 years ago
version 4
e6cc785e
6 commits,
2 years ago
version 3
5312b270
4 commits,
2 years ago
version 2
f3b6ae69
3 commits,
2 years ago
version 1
2e65ab37
2 commits,
2 years ago
Show latest version
1 file
+
12
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/toolbox_scs/routines/boz.py
+
12
−
5
Options
@@ -284,21 +284,28 @@ def _get_pixel_hexagons(module):
Parameters:
-----------
module: int, module number
module: either int, for the module number or a 2-d array of corners to
get hexagons from
Returns:
a list of hexagons
--------
a 1-d list of hexagons where corners position are in mm
"""
hexes
=
[]
corners
=
_get_pixel_corners
(
module
)
for
y
in
range
(
128
):
for
x
in
range
(
512
):
if
type
(
module
)
is
int
:
corners
=
_get_pixel_corners
(
module
)
else
:
corners
=
module
for
y
in
range
(
corners
.
shape
[
0
]):
for
x
in
range
(
corners
.
shape
[
1
]):
c
=
1e3
*
corners
[
y
,
x
,
:,
:]
# convert to mm
hexes
.
append
(
Polygon
(
c
))
return
hexes
def
_add_colorbar
(
im
,
ax
,
loc
=
'
right
'
,
size
=
'
5%
'
,
pad
=
0.05
):
"""
Add a colobar on a new axes so it match the plot size.
Loading