From 1ff650c17b680a10a374c819981bd8725333f9f3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Mar 2025 15:40:40 +0000 Subject: [PATCH] chore: auto fixes from pre-commit hooks --- src/ansys/geometry/core/modeler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ansys/geometry/core/modeler.py b/src/ansys/geometry/core/modeler.py index eaa4739bc6..9e3bbdaf0f 100644 --- a/src/ansys/geometry/core/modeler.py +++ b/src/ansys/geometry/core/modeler.py @@ -425,7 +425,7 @@ def open_file( # Format-specific logic - upload the whole containing folder for assemblies if upload_to_server: fp_path = Path(file_path) - file_size_mb = file_path.stat().st_size / (1024*1024) + file_size_mb = file_path.stat().st_size / (1024 * 1024) if any( ext in str(file_path) for ext in [".CATProduct", ".asm", ".solution", ".sldasm"] ): @@ -433,11 +433,11 @@ def open_file( for file in dir.iterdir(): full_path = file.resolve() if full_path != fp_path: - if(file_size_mb < MAX_MESSAGE_LENGTH): + if file_size_mb < MAX_MESSAGE_LENGTH: self._upload_file(full_path) else: self._upload_file_stream(full_path) - if(file_size_mb < MAX_MESSAGE_LENGTH): + if file_size_mb < MAX_MESSAGE_LENGTH: self._upload_file(file_path, True, import_options) else: self._upload_file_stream(file_path, True, import_options)