Skip to content

Conversation

germa89
Copy link
Collaborator

@germa89 germa89 commented Mar 4, 2022

The mapdl.non_interactive context redirect the output to a file which is not deleted and it is always named the same.

Some commands or pymapdl functions (for example _get_array_parameter) use this file to do their job, but they need this file to have only that output.

Hence, to avoid issues, PyMAPDL will delete the files after reading them.

@germa89 germa89 added the Bug label Mar 4, 2022
@germa89 germa89 self-assigned this Mar 4, 2022
@codecov
Copy link

codecov bot commented Mar 4, 2022

Codecov Report

Merging #943 (d84d48c) into main (97fcdf1) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #943      +/-   ##
==========================================
+ Coverage   72.79%   72.82%   +0.03%     
==========================================
  Files          39       39              
  Lines        5675     5675              
==========================================
+ Hits         4131     4133       +2     
+ Misses       1544     1542       -2     

@akaszynski
Copy link
Collaborator

There will be a minor slow down to delete files, but if this improves stability, please merge.

@akaszynski akaszynski merged commit ee93005 into main Mar 9, 2022
@akaszynski akaszynski deleted the fix/redirect-non_interactive-to-its-own-file- branch March 9, 2022 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants