Skip to content
Snippets Groups Projects
Commit 09e77087 authored by ChiWai Chan's avatar ChiWai Chan
Browse files

horizon.py: convert dict keys and dict values to list.

parent 218ade2b
No related branches found
No related tags found
No related merge requests found
Pipeline #307941 failed
......@@ -182,8 +182,8 @@ class HorizonDistance:
mint = int(min([min(horizon_history.keys()) for _, horizon_history in self.horizon_history_dict.items()]))
for ifo, horizon_history in self.horizon_history_dict.items():
GPSTime = numpy.array(horizon_history.keys())
horizon_dist = horizon_history.values()
GPSTime = numpy.array(list(horizon_history.keys()))
horizon_dist = list(horizon_history.values())
minh, maxh = (float("inf"), 0)
maxh = max(maxh, max(horizon_dist))
......
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