Initial import
This commit is contained in:
commit
56a50eead3
820 changed files with 192077 additions and 0 deletions
17
libLSS/tests/data/gen_reference_data.py
Normal file
17
libLSS/tests/data/gen_reference_data.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
#+
|
||||
# ARES/HADES/BORG Package -- ./libLSS/tests/data/gen_reference_data.py
|
||||
# Copyright (C) 2014-2020 Guilhem Lavaux <guilhem.lavaux@iap.fr>
|
||||
# Copyright (C) 2009-2020 Jens Jasche <jens.jasche@fysik.su.se>
|
||||
#
|
||||
# Additional contributions from:
|
||||
# Guilhem Lavaux <guilhem.lavaux@iap.fr> (2023)
|
||||
#
|
||||
#+
|
||||
import h5py as h5
|
||||
import numpy as np
|
||||
|
||||
with h5.File("reference_data.h5", mode="w") as f:
|
||||
for N in [32]:
|
||||
numbers = np.random.normal(size=(N,N,N))
|
||||
f[f'/f_size_{N}'] = numbers
|
||||
f[f'/c_size_{N}'] = np.fft.rfftn(numbers)
|
BIN
libLSS/tests/data/reference_data.h5
Normal file
BIN
libLSS/tests/data/reference_data.h5
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue