Commit 0c06a4b3 authored by Gregory Ashton's avatar Gregory Ashton

Resolve !558

Convert the loaded numpy data to a dictionary ensuring it is loaded into
parent 70aa5fd2
Pipeline #69565 passed with stage
in 5 minutes and 39 seconds
......@@ -1058,7 +1058,8 @@ class ROQGravitationalWaveTransient(GravitationalWaveTransient):
with open(filename, 'r') as file:
weights = json.load(file, object_hook=decode_bilby_json)
elif format == "npz":
weights = np.load(filename)
# Wrap in dict to load data into memory
weights = dict(np.load(filename))
return weights
def _get_time_resolution(self):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment