Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cfel_fmt
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
dataAnalysis
cfel_fmt
Commits
2d42bb6b
Commit
2d42bb6b
authored
6 years ago
by
Valerio Mariani
Browse files
Options
Downloads
Patches
Plain Diff
Fixed pixel map generation function for new expanded pixel maps tuple
parent
f5b949e5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cfelpyutils/geometry_utils.py
+3
-3
3 additions, 3 deletions
cfelpyutils/geometry_utils.py
with
3 additions
and
3 deletions
cfelpyutils/geometry_utils.py
+
3
−
3
View file @
2d42bb6b
...
...
@@ -205,8 +205,8 @@ def compute_visualization_pix_maps(geometry):
PixelMaps: A PixelMaps tuple containing the adjusted pixel
maps. The first two fields, named
"
x
"
and
"
y
"
respectively,
store the pixel maps for the x coordinate and the y
coordinates (as ndarrays of type int). The third f
iel
d
(
"
r
"
) is
just set to None.
coordinates (as ndarrays of type int). The third
,
f
ourth an
d
fifth fields (
"
z
"
,
"
r
"
and
"
phi
"
) are
just set to None.
"""
# Shift the origin of the reference system from the beam position
# to the top-left of the image that will be displayed. Compute the
...
...
@@ -224,4 +224,4 @@ def compute_visualization_pix_maps(geometry):
dtype
=
numpy
.
int
)
+
min_shape
[
0
]
//
2
-
1
return
PixelMaps
(
new_x_map
,
new_y_map
,
None
)
return
PixelMaps
(
new_x_map
,
new_y_map
,
None
,
None
,
None
)
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