-
Notifications
You must be signed in to change notification settings - Fork 123
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
Renaming remove_temp_files
to remove_temp_dir_on_exit
#1466
Renaming remove_temp_files
to remove_temp_dir_on_exit
#1466
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1466 +/- ##
==========================================
+ Coverage 80.32% 80.42% +0.09%
==========================================
Files 43 43
Lines 6780 6773 -7
==========================================
+ Hits 5446 5447 +1
+ Misses 1334 1326 -8 |
The option warnings.warn(
"The option ``remove_temp_files`` is being deprecated and it will be removed by PyMAPDL version 0.66.0.\n"
"Please use ``remove_temp_dir_on_exit`` instead.",
DeprecationWarning,
stacklevel=2,
) is useful to make the warning shows in the main process and also to:
Reference: https://docs.python.org/3/library/warnings.html#warnings.warn |
Pinging @pyansys/pyansys-core FYI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Close #1387 by renaming
remove_temp_files
toremove_temp_dir_on_exit
which I believe it is more accurate and self descriptive.I have also implemented a warning.