mirror of
https://github.com/Findus23/halo_comparison.git
synced 2024-09-19 16:03:50 +02:00
fixed function name in spectra
This commit is contained in:
parent
7403aa23f6
commit
2dccc663c2
1 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@ import wave
|
|||
from paths import base_dir, spectra_dir
|
||||
|
||||
|
||||
def spectra(waveform: str, resolution_1: int, resolution_2: int, Lbox: float, time: str):
|
||||
def run_spectra(waveform: str, resolution_1: int, resolution_2: int, Lbox: float, time: str):
|
||||
setup_1 = f'{waveform}_{resolution_1}_{Lbox}'
|
||||
setup_2 = f'{waveform}_{resolution_2}_{Lbox}'
|
||||
|
||||
|
@ -46,12 +46,12 @@ def spectra(waveform: str, resolution_1: int, resolution_2: int, Lbox: float, ti
|
|||
def power_run(waveforms: list, resolutions: list, Lbox: float, time: str):
|
||||
for waveform in enumerate(waveforms):
|
||||
for resolution in enumerate(resolutions):
|
||||
spectra(waveform=waveform, resolution_1=resolution, resolution_2=resolution, Lbox=Lbox, time=time)
|
||||
run_spectra(waveform=waveform, resolution_1=resolution, resolution_2=resolution, Lbox=Lbox, time=time)
|
||||
|
||||
def cross_run(waveforms: list, resolutions: list, Lbox: float, time: str):
|
||||
for waveform in enumerate(waveforms):
|
||||
for resolution_pair in itertools.combinations(resolutions, 2):
|
||||
spectra(waveform=waveform, resolution_1=resolution_pair[0], resolution_2=resolution_pair[1], Lbox=Lbox, time=time)
|
||||
run_spectra(waveform=waveform, resolution_1=resolution_pair[0], resolution_2=resolution_pair[1], Lbox=Lbox, time=time)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in a new issue