diff --git a/src/ansys/sound/core/examples_helpers/download.py b/src/ansys/sound/core/examples_helpers/download.py index fadc8c0f3..4ffb89749 100644 --- a/src/ansys/sound/core/examples_helpers/download.py +++ b/src/ansys/sound/core/examples_helpers/download.py @@ -98,8 +98,8 @@ def download_file_and_retrieve_path_in_dpf_server( filename, directory=None, server=None ): # pragma no cover """Download a file from the PyAnsys Sound examples repository and upload it to the DPF server. - - This function downloads a file from the PyAnsys Sound examples repository and uploads it to + + This function downloads a file from the PyAnsys Sound examples repository and uploads it to the DPF server. This allows to be independent on the server configuration. Parameters @@ -108,7 +108,7 @@ def download_file_and_retrieve_path_in_dpf_server( File name. directory : str, optional - Directory where the file is located. + Directory where the file is located. For PyAnsys Sound repository, should be set to 'pyansys-sound' server : ansys.dpf.core.server.Server, optional @@ -156,7 +156,9 @@ def download_flute_psd(server=None): Path on the Docker container for the ``flute_psd.txt`` file. """ - return download_file_and_retrieve_path_in_dpf_server("flute_psd.txt", "pyansys-sound", server=server) + return download_file_and_retrieve_path_in_dpf_server( + "flute_psd.txt", "pyansys-sound", server=server + ) def download_flute_wav(server=None): @@ -167,7 +169,9 @@ def download_flute_wav(server=None): str Path for the ``flute.wav`` file. """ - return download_file_and_retrieve_path_in_dpf_server("flute.wav", "pyansys-sound", server=server) + return download_file_and_retrieve_path_in_dpf_server( + "flute.wav", "pyansys-sound", server=server + ) def download_flute_2_wav(server=None): @@ -178,7 +182,9 @@ def download_flute_2_wav(server=None): str Path for the ``flute2.wav`` file. """ - return download_file_and_retrieve_path_in_dpf_server("flute2.wav", "pyansys-sound", server=server) + return download_file_and_retrieve_path_in_dpf_server( + "flute2.wav", "pyansys-sound", server=server + ) def download_accel_with_rpm_wav(server=None): @@ -189,7 +195,9 @@ def download_accel_with_rpm_wav(server=None): str Path for the ``accel_with_rpm.wav`` file. """ - return download_file_and_retrieve_path_in_dpf_server("accel_with_rpm.wav", "pyansys-sound", server=server) + return download_file_and_retrieve_path_in_dpf_server( + "accel_with_rpm.wav", "pyansys-sound", server=server + ) def download_accel_with_rpm_2_wav(server=None): @@ -200,7 +208,9 @@ def download_accel_with_rpm_2_wav(server=None): str Path for the ``accel_with_rpm_2.wav`` file. """ - return download_file_and_retrieve_path_in_dpf_server("accel_with_rpm_2.wav", "pyansys-sound", server=server) + return download_file_and_retrieve_path_in_dpf_server( + "accel_with_rpm_2.wav", "pyansys-sound", server=server + ) def download_accel_with_rpm_3_wav(server=None): @@ -211,7 +221,9 @@ def download_accel_with_rpm_3_wav(server=None): str Path for the ``accel_with_rpm_3.wav`` file. """ - return download_file_and_retrieve_path_in_dpf_server("accel_with_rpm_3.wav", "pyansys-sound", server=server) + return download_file_and_retrieve_path_in_dpf_server( + "accel_with_rpm_3.wav", "pyansys-sound", server=server + ) def download_xtract_demo_signal_1_wav(server=None): @@ -222,7 +234,9 @@ def download_xtract_demo_signal_1_wav(server=None): str Path for the ``xtract_demo_signal_1.wav`` file. """ - return download_file_and_retrieve_path_in_dpf_server("xtract_demo_signal_1.wav", "pyansys-sound", server=server) + return download_file_and_retrieve_path_in_dpf_server( + "xtract_demo_signal_1.wav", "pyansys-sound", server=server + ) def download_xtract_demo_signal_2_wav(server=None): @@ -233,4 +247,6 @@ def download_xtract_demo_signal_2_wav(server=None): str Path for the ``xtract_demo_signal_2.wav`` file. """ - return download_file_and_retrieve_path_in_dpf_server("xtract_demo_signal_2.wav", "pyansys-sound", server=server) + return download_file_and_retrieve_path_in_dpf_server( + "xtract_demo_signal_2.wav", "pyansys-sound", server=server + )