Skip to content

Commit e805ea8

Browse files
authored
Remove Unused Keyword Arguments (ansys#293)
* fix/refactor_unused * fixed syntax and output * remove python3.5 build
1 parent d10a362 commit e805ea8

File tree

6 files changed

+3167
-3003
lines changed

6 files changed

+3167
-3003
lines changed

azure-pipelines.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ jobs:
2020
- job: Linux
2121
strategy:
2222
matrix:
23-
Python35:
24-
python.version: '3.5'
2523
Python36:
2624
python.version: '3.6'
2725
Python37:

pyansys/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# major, minor, patch
2-
version_info = 0, 44, 6
2+
version_info = 0, 44, 7
33

44
# Nice string for the version
55
__version__ = '.'.join(map(str, version_info))

pyansys/launcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,12 +485,12 @@ def launch_mapdl(exec_file=None, run_location=None, mode=None, jobname='file',
485485
if exec_file is None:
486486
raise FileNotFoundError('Invalid or path or cannot load cached '
487487
'ansys path. Enter one manually using '
488-
'pyansys.Mapdl(exec_file=...)')
488+
'launch_mapdl(exec_file=)')
489489
else: # verify ansys exists at this location
490490
if not os.path.isfile(exec_file):
491491
raise FileNotFoundError('Invalid ANSYS executable at "%s"\n'
492492
% exec_file + 'Enter one manually using '
493-
'pyansys.Mapdl(exec_file=)')
493+
'launch_mapdl(exec_file=)')
494494

495495
if run_location is None:
496496
temp_dir = tempfile.gettempdir()

pyansys/mapdl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ def open_gui(self, include_result=True): # pragma: no cover
499499
self.exit()
500500

501501
# copy result file to temp directory
502-
if include_result:
502+
if include_result and self._result_file is not None:
503503
if os.path.isfile(resultfile):
504504
tmp_resultfile = os.path.join(save_path, '%s.rst' % name)
505505
copyfile(resultfile, tmp_resultfile)

0 commit comments

Comments
 (0)