Skip to content

Commit caa2441

Browse files
authored
disable download bar always on (#1143)
1 parent f40b9f1 commit caa2441

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ansys/mapdl/core/mapdl_grpc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,7 @@ def _download(
17311731
chunk_size=DEFAULT_CHUNKSIZE,
17321732
progress_bar=None,
17331733
):
1734-
"""Download a file from the gRPC instance
1734+
"""Download a file from the gRPC instance.
17351735
17361736
Parameters
17371737
----------
@@ -1758,7 +1758,7 @@ def _download(
17581758
>>> mapdl.download('file.rst', 'my_result.rst')
17591759
"""
17601760

1761-
if not progress_bar and _HAS_TQDM:
1761+
if progress_bar and _HAS_TQDM:
17621762
progress_bar = True
17631763

17641764
if out_file_name is None:
@@ -1772,7 +1772,7 @@ def _download(
17721772
)
17731773

17741774
if not file_size:
1775-
raise FileNotFoundError(f'File "{target_name}" is empty or does not exist')
1775+
raise FileNotFoundError(f'File "{target_name}" is empty or does not exist.')
17761776

17771777
@protect_grpc
17781778
def upload(self, file_name, progress_bar=True):

0 commit comments

Comments
 (0)