Commit e1cdb224 authored by Colm Talbot's avatar Colm Talbot

Merge branch '394-performance-issue-with-roq' into 'master'

Resolve "Performance issue with ROQ"

Closes #394

See merge request lscsoft/bilby!558
parents 8351f804 0c06a4b3
Pipeline #70437 passed with stages
in 6 minutes and 2 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