Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 20, 2024
1 parent fcaf0d8 commit 95d2c2a
Showing 1 changed file with 27 additions and 11 deletions.
38 changes: 27 additions & 11 deletions src/ansys/sound/core/examples_helpers/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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):
Expand All @@ -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):
Expand All @@ -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):
Expand All @@ -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):
Expand All @@ -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):
Expand All @@ -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):
Expand All @@ -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):
Expand All @@ -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
)

0 comments on commit 95d2c2a

Please sign in to comment.