Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CCS
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marko Mecina
CCS
Commits
0e45666f
Commit
0e45666f
authored
1 year ago
by
Marko Mecina
Browse files
Options
Downloads
Patches
Plain Diff
fix array indices
parent
727b04d5
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
Ccs/tools/dataprocessing/smile_raw_ce_converter.py
+16
-6
16 additions, 6 deletions
Ccs/tools/dataprocessing/smile_raw_ce_converter.py
with
16 additions
and
6 deletions
Ccs/tools/dataprocessing/smile_raw_ce_converter.py
+
16
−
6
View file @
0e45666f
...
@@ -118,12 +118,22 @@ def _mk_bin_entry(data, timestamp):
...
@@ -118,12 +118,22 @@ def _mk_bin_entry(data, timestamp):
return
timestamp
,
fc
,
ccdnr
,
col
,
row
,
node
,
evts
return
timestamp
,
fc
,
ccdnr
,
col
,
row
,
node
,
evts
def
_assemble_ft_frames_to_fp_view
(
arr3d
):
def
_assemble_ft_frames_to_fp_view
(
arrnd
):
n00
=
arr3d
[
0
,
:,
:]
# CCD2 F-side (lower left in FP view)
# FT
n01
=
arr3d
[
1
,
:,
::
-
1
]
# CCD2 E-side (lower right in FP view)
if
arrnd
.
ndim
==
3
:
n10
=
arr3d
[
2
,
::
-
1
,
::
-
1
]
# CCD4 F-side (upper right in FP view)
n00
=
arrnd
[
0
,
:,
:]
# CCD2 F-side (lower left in FP view)
n11
=
arr3d
[
3
,
::
-
1
,
:]
# CCD4 E-side (upper left in FP view)
n01
=
arrnd
[
1
,
:,
::
-
1
]
# CCD2 E-side (lower right in FP view)
n10
=
arrnd
[
2
,
::
-
1
,
::
-
1
]
# CCD4 F-side (upper right in FP view)
n11
=
arrnd
[
3
,
::
-
1
,
:]
# CCD4 E-side (upper left in FP view)
# ED
elif
arrnd
.
ndim
==
4
:
n00
=
arrnd
[
0
,
0
,
:,
:]
# CCD2 F-side
n01
=
arrnd
[
0
,
1
,
:,
:][:,
::
-
1
]
# CCD2 E-side
n10
=
arrnd
[
1
,
0
,
:,
:][::
-
1
,
::
-
1
]
# CCD4 F-side
n11
=
arrnd
[
1
,
1
,
:,
:][::
-
1
,
:]
# CCD4 E-side
else
:
return
n0
=
np
.
concatenate
((
n00
,
n01
),
axis
=
1
)
# CCD2
n0
=
np
.
concatenate
((
n00
,
n01
),
axis
=
1
)
# CCD2
n1
=
np
.
concatenate
((
n11
,
n10
),
axis
=
1
)
# CCD4
n1
=
np
.
concatenate
((
n11
,
n10
),
axis
=
1
)
# CCD4
...
...
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