Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reuploading file on CDREAD #3355

Merged
merged 3 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/3355.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix: reuploading file on CDREAD
17 changes: 14 additions & 3 deletions src/ansys/mapdl/core/mapdl_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1764,9 +1764,20 @@ def input(
fname = tmp_modified_file

# Running method
# always check if file is present as the grpc and MAPDL errors
# are unclear
filename = self._get_file_path(fname, progress_bar)
#
if "CDRE" in orig_cmd.upper():
# CDREAD already uploads the file, and since the priority in
# `_get_file_path` is for the files in the python working directory,
# we skip that function here.
self._log.debug(
f"Avoid uploading the file {fname} because `CDREAD` should have upload it already."
)
filename = fname

else:
# Always check if file is present as the grpc and MAPDL errors
# are unclear
filename = self._get_file_path(fname, progress_bar)

if time_step_stream is not None:
if time_step_stream <= 0:
Expand Down
Loading