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

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

parent 300a8553
No related branches found
No related tags found
1 merge request!114Plot horizon distance from ranking statistics
This commit is part of merge request !114. Comments created here will be created in the context of that merge request.
......@@ -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