Skip to content
Snippets Groups Projects
Commit 0c06a4b3 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Resolve !558

Convert the loaded numpy data to a dictionary ensuring it is loaded into
memory.
parent 70aa5fd2
No related branches found
No related tags found
1 merge request!558Resolve "Performance issue with ROQ"
Pipeline #69565 passed
......@@ -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):
......
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