IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue 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
Air Shower Physics
corsika
Commits
50bcf95d
Commit
50bcf95d
authored
10 months ago
by
Alan Coleman
Browse files
Options
Downloads
Patches
Plain Diff
Fix RadioProcess indexing in python io lib
parent
012f9777
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!621
Fix RadioProcess indexing in python io lib
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/corsika/io/outputs/radio_process.py
+3
-3
3 additions, 3 deletions
python/corsika/io/outputs/radio_process.py
with
3 additions
and
3 deletions
python/corsika/io/outputs/radio_process.py
+
3
−
3
View file @
50bcf95d
...
@@ -60,7 +60,7 @@ class RadioProcess(Output):
...
@@ -60,7 +60,7 @@ class RadioProcess(Output):
"""
"""
data
=
pq
.
read_table
(
op
.
join
(
path
,
"
antennas.parquet
"
))
data
=
pq
.
read_table
(
op
.
join
(
path
,
"
antennas.parquet
"
))
nshowers
=
data
.
to_pandas
()[
"
shower
"
].
iloc
[
-
1
]
+
1
nshowers
=
int
(
data
.
to_pandas
()[
"
shower
"
].
iloc
[
-
1
]
+
1
)
antennas
=
list
(
self
.
config
[
"
antennas
"
].
keys
())
antennas
=
list
(
self
.
config
[
"
antennas
"
].
keys
())
# check that we got some events
# check that we got some events
...
@@ -79,8 +79,8 @@ class RadioProcess(Output):
...
@@ -79,8 +79,8 @@ class RadioProcess(Output):
# loop over each of the antennas
# loop over each of the antennas
for
name
in
antennas
:
for
name
in
antennas
:
sampling_period
=
self
.
config
[
"
antennas
"
][
name
][
"
number of bins
"
]
sampling_period
=
self
.
config
[
"
antennas
"
][
name
][
"
number of bins
"
]
start
=
ant_nr
*
sampling_period
start
=
int
(
ant_nr
*
sampling_period
)
stop
=
(
ant_nr
+
1
)
*
sampling_period
stop
=
int
(
(
ant_nr
+
1
)
*
sampling_period
)
antenna_data
=
data
[
start
:
stop
].
to_pandas
()
antenna_data
=
data
[
start
:
stop
].
to_pandas
()
times
=
antenna_data
[
"
Time
"
]
times
=
antenna_data
[
"
Time
"
]
Ex
=
antenna_data
[
"
Ex
"
]
Ex
=
antenna_data
[
"
Ex
"
]
...
...
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