Commit 25136843 authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

formatting

parent 59427c9d
Loading
Loading
Loading
Loading
Loading
+7 −8
Original line number Diff line number Diff line
@@ -260,7 +260,6 @@ def generate_ism1_scene(
        # superimpose
        y.audio += noise


    # process azimuth and elevation
    source_azi = scene["azimuth"]
    source_ele = scene["elevation"]
@@ -275,7 +274,7 @@ def generate_ism1_scene(
            azi = np.arange(
                float(eval(source_azi[0])),
                float(eval(source_azi[0])) + N_frames * float(eval(source_azi[1])),
                float(eval(source_azi[1]))
                float(eval(source_azi[1])),
            )
        else:
            # replicate static azimuth value N_frames times
@@ -302,7 +301,7 @@ def generate_ism1_scene(
            ele = np.arange(
                float(eval(source_ele[0])),
                np.sign(float(eval(source_ele[1]))) * 90,
                float(eval(source_ele[1]))
                float(eval(source_ele[1])),
            )[:N_frames]

            # repeat the last elevation value, if array is shorter than N_frames
+4 −4
Original line number Diff line number Diff line
@@ -310,7 +310,7 @@ def generate_ism2_scene(
                azi = np.arange(
                    float(eval(source_azi[0])),
                    float(eval(source_azi[0])) + N_frames * float(eval(source_azi[1])),
                    float(eval(source_azi[1]))
                    float(eval(source_azi[1])),
                )
            else:
                # replicate static azimuth value N_frames times
@@ -337,7 +337,7 @@ def generate_ism2_scene(
                ele = np.arange(
                    float(eval(source_ele[0])),
                    np.sign(float(eval(source_ele[1]))) * 90,
                    float(eval(source_ele[1]))
                    float(eval(source_ele[1])),
                )[:N_frames]

                # repeat the last elevation value, if array is shorter than N_frames