IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 50bcf95d authored by Alan Coleman's avatar Alan Coleman
Browse files

Fix RadioProcess indexing in python io lib

parent 012f9777
No related branches found
No related tags found
1 merge request!621Fix RadioProcess indexing in python io lib
......@@ -60,7 +60,7 @@ class RadioProcess(Output):
"""
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())
# check that we got some events
......@@ -79,8 +79,8 @@ class RadioProcess(Output):
# loop over each of the antennas
for name in antennas:
sampling_period = self.config["antennas"][name]["number of bins"]
start = ant_nr * sampling_period
stop = (ant_nr + 1) * sampling_period
start = int(ant_nr * sampling_period)
stop = int((ant_nr + 1) * sampling_period)
antenna_data = data[start:stop].to_pandas()
times = antenna_data["Time"]
Ex = antenna_data["Ex"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment