Skip to content

Commit

Permalink
fix for power spectrum
Browse files Browse the repository at this point in the history
  • Loading branch information
boryanah committed Oct 5, 2023
1 parent e9b3b42 commit 975c534
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion abacusnbody/metadata/abacussummit.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def get_meta(simname, redshift=None):
metadata[sim] = {}
metadata[sim]['param'] = msgpack.loads(af_tree[sim]['param'].data, strict_map_key=False)
metadata[sim]['state'] = msgpack.loads(af_tree[sim]['state'].data, strict_map_key=False)

if 'CLASS_power_spectrum' in af_tree[sim]:
metadata[sim]['CLASS_power_spectrum'] = af_tree[sim]['CLASS_power_spectrum']
if simname not in metadata:
raise ValueError(f'Simulation "{simname}" is not in metadata file "{metadata_fn}"')

Expand Down

0 comments on commit 975c534

Please sign in to comment.