f2e989565ab89af58dff63ab3cf89fe63af38327,examples/raytracing.py,,,#,65

Before Change



if __name__ == "__main__":

    if len(sys.argv) != 3:
        print("Usage: {} [small/medium/large] [low/medium/high]".format(sys.argv[0]))

    else:

        size = sys.argv[1]
        absorption = sys.argv[2]

        new_rir, room = get_rir(size=size, absorption=absorption)

        fs, old_rir = wavfile.read("notebooks/rir_{}_{}.wav".format(size, absorption))

        plt.figure()
        plt.plot(old_rir, label="old")
        plt.plot(new_rir, label="new")
        plt.legend()
        plt.show()

        // print("Max error (rel):", np.max(np.abs(new_rir - old_rir))/np.max(np.abs(new_rir)))
        // print("Mean error (rel):", np.mean(np.abs(new_rir - old_rir))/np.max(np.abs(new_rir)))

After Change


            "different size and reverberation time"
        )
    )
    size_choices = list(size_opts.keys())
    reverb_choices = list(reverb_opts.keys())
    parser.add_argument(
        "size", choices=size_choices, default=size_choices[0], help="room size"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: LCAV/pyroomacoustics
Commit Name: f2e989565ab89af58dff63ab3cf89fe63af38327
Time: 2020-06-02
Author: fakufaku@gmail.com
File Name: examples/raytracing.py
Class Name:
Method Name:


Project Name: Esri/raster-functions
Commit Name: 6b642c8e0fa07c971a89e4fb70bdf539b04042cc
Time: 2015-05-25
Author: rsumbaly@esri.com
File Name: functions/KeyMetadata.py
Class Name: KeyMetadata
Method Name: updateKeyMetadata


Project Name: daavoo/pyntcloud
Commit Name: 4de35e3bf617cd61a86da762a1fe29af5e2db1f7
Time: 2018-02-25
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/plot/points.py
Class Name:
Method Name: plot_PyntCloud