-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from schmidtfa/minor_fixes
Improved Knee Testing
- Loading branch information
Showing
116 changed files
with
498 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# GitHub syntax highlighting | ||
pixi.lock linguist-language=YAML linguist-generated=true | ||
tests/test_data/knee_data/*.npy filter=lfs diff=lfs merge=lfs -text | ||
tests/test_data/knee_osc_data/*.npy filter=lfs diff=lfs merge=lfs -text |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#%% | ||
from neurodsp.sim import sim_combined, sim_knee | ||
import numpy as np | ||
from os.path import join | ||
|
||
n_secs=60 | ||
fs_list=[500, 750, 1000] | ||
exp1=0 | ||
exp2_list=[-1., -1.5, -2.0] | ||
knee_freq_list=[10, 15, 25] | ||
osc_list = [5, 10, 20] | ||
|
||
base_folder = '/Users/fabian.schmidt/git/pyrasa/tests/test_data/' | ||
|
||
for fs in fs_list: | ||
for exp2 in exp2_list: | ||
for osc_freq in osc_list: | ||
for knee_freq in knee_freq_list: | ||
#% generate and save knee osc | ||
knee = knee_freq ** np.abs(exp2) | ||
components = {'sim_knee': {'exponent1': exp1, 'exponent2': exp2, 'knee': knee}, | ||
'sim_oscillation': {'freq': osc_freq} | ||
} | ||
cmb_sim = sim_combined(n_seconds=n_secs, fs=fs, components=components) | ||
|
||
fname = f'cmb_sim__fs_{fs}__exp1_{np.abs(exp1)}__exp2_{np.abs(exp2)}_knee_{np.round(knee, 0)}__osc_freq_{osc_freq}_.npy' | ||
np.save(join(base_folder + 'knee_osc_data', fname), cmb_sim, allow_pickle=False) | ||
|
||
#% generate and save knee | ||
knee_sim = sim_knee(n_seconds=n_secs, fs=fs, exponent1=exp1, exponent2=exp2, knee=knee) | ||
|
||
fname = f'knee_sim__fs_{fs}__exp1_{np.abs(exp1)}__exp2_{np.abs(exp2)}_knee_{np.round(knee, 0)}_.npy' | ||
np.save(join(base_folder + 'knee_data', fname), knee_sim, allow_pickle=False) | ||
|
||
# %% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_1000__exp1_0__exp2_1.0_knee_10.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_1000__exp1_0__exp2_1.0_knee_15.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_1000__exp1_0__exp2_1.0_knee_25.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_1000__exp1_0__exp2_1.5_knee_125.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_1000__exp1_0__exp2_1.5_knee_32.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_1000__exp1_0__exp2_1.5_knee_58.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_1000__exp1_0__exp2_2.0_knee_100.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_1000__exp1_0__exp2_2.0_knee_225.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_1000__exp1_0__exp2_2.0_knee_625.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_500__exp1_0__exp2_1.0_knee_10.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_500__exp1_0__exp2_1.0_knee_15.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_500__exp1_0__exp2_1.0_knee_25.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_500__exp1_0__exp2_1.5_knee_125.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_500__exp1_0__exp2_1.5_knee_32.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_500__exp1_0__exp2_1.5_knee_58.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_500__exp1_0__exp2_2.0_knee_100.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_500__exp1_0__exp2_2.0_knee_225.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_500__exp1_0__exp2_2.0_knee_625.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_750__exp1_0__exp2_1.0_knee_10.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_750__exp1_0__exp2_1.0_knee_15.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_750__exp1_0__exp2_1.0_knee_25.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_750__exp1_0__exp2_1.5_knee_125.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_750__exp1_0__exp2_1.5_knee_32.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_750__exp1_0__exp2_1.5_knee_58.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_750__exp1_0__exp2_2.0_knee_100.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_750__exp1_0__exp2_2.0_knee_225.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_data/knee_sim__fs_750__exp1_0__exp2_2.0_knee_625.0_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_osc_data/cmb_sim__fs_1000__exp1_0__exp2_1.0_knee_10.0__osc_freq_10_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_osc_data/cmb_sim__fs_1000__exp1_0__exp2_1.0_knee_10.0__osc_freq_20_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_osc_data/cmb_sim__fs_1000__exp1_0__exp2_1.0_knee_10.0__osc_freq_5_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_osc_data/cmb_sim__fs_1000__exp1_0__exp2_1.0_knee_15.0__osc_freq_10_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_osc_data/cmb_sim__fs_1000__exp1_0__exp2_1.0_knee_15.0__osc_freq_20_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_osc_data/cmb_sim__fs_1000__exp1_0__exp2_1.0_knee_15.0__osc_freq_5_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_osc_data/cmb_sim__fs_1000__exp1_0__exp2_1.0_knee_25.0__osc_freq_10_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_osc_data/cmb_sim__fs_1000__exp1_0__exp2_1.0_knee_25.0__osc_freq_20_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_osc_data/cmb_sim__fs_1000__exp1_0__exp2_1.0_knee_25.0__osc_freq_5_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...s/test_data/knee_osc_data/cmb_sim__fs_1000__exp1_0__exp2_1.5_knee_125.0__osc_freq_10_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...s/test_data/knee_osc_data/cmb_sim__fs_1000__exp1_0__exp2_1.5_knee_125.0__osc_freq_20_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_osc_data/cmb_sim__fs_1000__exp1_0__exp2_1.5_knee_125.0__osc_freq_5_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_osc_data/cmb_sim__fs_1000__exp1_0__exp2_1.5_knee_32.0__osc_freq_10_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_osc_data/cmb_sim__fs_1000__exp1_0__exp2_1.5_knee_32.0__osc_freq_20_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_osc_data/cmb_sim__fs_1000__exp1_0__exp2_1.5_knee_32.0__osc_freq_5_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_osc_data/cmb_sim__fs_1000__exp1_0__exp2_1.5_knee_58.0__osc_freq_10_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_osc_data/cmb_sim__fs_1000__exp1_0__exp2_1.5_knee_58.0__osc_freq_20_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/test_data/knee_osc_data/cmb_sim__fs_1000__exp1_0__exp2_1.5_knee_58.0__osc_freq_5_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...s/test_data/knee_osc_data/cmb_sim__fs_1000__exp1_0__exp2_2.0_knee_100.0__osc_freq_10_.npy
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...s/test_data/knee_osc_data/cmb_sim__fs_1000__exp1_0__exp2_2.0_knee_100.0__osc_freq_20_.npy
Git LFS file not shown
Oops, something went wrong.