Skip to content

Commit

Permalink
run pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
roosre committed Sep 5, 2024
1 parent 771b299 commit 638528b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/ansys/dpf/composites/example_helper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def _get_file_url(directory: str, filename: str) -> str:


def _download_and_upload_file(
directory: str, filename: str, tmpdir: str, server: dpf.server
directory: str, filename: str, tmpdir: str, server: dpf.server
) -> str:
"""Download example file from example_data repo and upload it the dpf server."""
file_url = _get_file_url(directory, filename)
Expand All @@ -196,8 +196,8 @@ def _download_and_upload_file(


def get_short_fiber_example_files(
server: dpf.server,
example_key: str,
server: dpf.server,
example_key: str,
) -> ShortFiberCompositesFiles:
"""Get short fiber example file by example key.
Expand All @@ -211,6 +211,7 @@ def get_short_fiber_example_files(
"""
example_files = _short_fiber_examples[example_key]
with tempfile.TemporaryDirectory() as tmpdir:

def get_server_path(filename: str) -> str:
return _download_and_upload_file(example_files.directory, filename, tmpdir, server)

Expand All @@ -223,9 +224,9 @@ def get_server_path(filename: str) -> str:


def get_continuous_fiber_example_files(
server: dpf.server,
example_key: str,
skip_acp_layup_files: bool = False,
server: dpf.server,
example_key: str,
skip_acp_layup_files: bool = False,
) -> ContinuousFiberCompositesFiles:
"""Get continuous fiber example file by example key.
Expand Down

0 comments on commit 638528b

Please sign in to comment.