diff --git a/src/ansys/geometry/core/modeler.py b/src/ansys/geometry/core/modeler.py index 261cf9774f..9f1144fb95 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)