1
0
Fork 0
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:
glatterf42 2022-06-08 13:27:46 +02:00
parent 7403aa23f6
commit 2dccc663c2

View file

@ -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__':