Skip to content

Commit faf70e2

Browse files
authored
Fix ambigious imports (#340)
* use non-ambigious import * version bump to 0.57.4
1 parent 89ba3dd commit faf70e2

File tree

17 files changed

+17
-17
lines changed

17 files changed

+17
-17
lines changed

ansys/mapdl/core/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Version of ansys-mapdl-core module."""
22

33
# major, minor, patch
4-
version_info = 0, 57, 3
4+
version_info = 0, 57, 4
55

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

ansys/mapdl/core/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def convert_script(filename_in, filename_out, loglevel='WARNING', auto_exit=True
4646
4747
Examples
4848
--------
49-
>>> import ansys.mapdl.core as pymapdl
49+
>>> from ansys.mapdl import core as pymapdl
5050
>>> from ansys.mapdl.core import examples
5151
>>> clines = pymapdl.convert_script(examples.vmfiles['vm1'], 'vm1.py')
5252
"""

ansys/mapdl/core/examples/downloads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import urllib.request
66
import zipfile
77

8-
import ansys.mapdl.core as pymapdl
8+
from ansys.mapdl import core as pymapdl
99

1010

1111
def get_ext(filename):

ansys/mapdl/core/launcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import time
1111
import subprocess
1212

13-
import ansys.mapdl.core as pymapdl
13+
from ansys.mapdl import core as pymapdl
1414
from ansys.mapdl.core.misc import is_float, random_string, create_temp_dir
1515
from ansys.mapdl.core.errors import LockFileException, VersionError
1616
from ansys.mapdl.core.mapdl_grpc import MapdlGrpc

ansys/mapdl/core/mapdl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from ansys.mapdl.reader import Archive
1717

18-
import ansys.mapdl.core as pymapdl
18+
from ansys.mapdl import core as pymapdl
1919
from ansys.mapdl.core.mapdl_functions import _MapdlCommands
2020
from ansys.mapdl.core.misc import (random_string, supress_logging,
2121
run_as_prep7, last_created)

ansys/mapdl/core/mapdl_grpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class MapdlGrpc(_MapdlCore):
158158
Connect to an instance of MAPDL already running on locally on the
159159
default port 50052.
160160
161-
>>> import ansys.mapdl.core as pymapdl
161+
>>> from ansys.mapdl import core as pymapdl
162162
>>> mapdl = pymapdl.Mapdl()
163163
164164
Connect to an instance of MAPDL running on the LAN on a default port

ansys/mapdl/core/parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from ansys.mapdl.reader._reader import write_array
88

9-
import ansys.mapdl.core as pymapdl
9+
from ansys.mapdl import core as pymapdl
1010
from ansys.mapdl.core.mapdl import _MapdlCore
1111
from ansys.mapdl.core.misc import supress_logging
1212

docs/source/user_guide/convert.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ This verification file was translated using:
131131

132132
.. code:: python
133133
134-
>>> import ansys.mapdl.core as pymapdl
134+
>>> from ansys.mapdl import core as pymapdl
135135
>>> from ansys.mapdl.core import examples
136136
>>> pymapdl.convert_script(examples.vmfiles['vm1'], 'vm1.py')
137137

docs/source/user_guide/launcher.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ the path again. If you need to change the default ansys path
3232

3333
.. code:: python
3434
35-
import ansys.mapdl.core as pymapdl
35+
from ansys.mapdl import core as pymapdl
3636
new_path = 'C:\\Program Files\\ANSYS Inc\\v211\\ANSYS\\bin\\winx64\\ansys211.exe'
3737
pymapdl.change_default_ansys_path(new_path)
3838

docs/source/user_guide/mapdl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ using the ``convert_script`` function and setting
9696

9797
.. code:: python
9898
99-
>>> import ansys.mapdl.core as pymapdl
99+
>>> from ansys.mapdl import core as pymapdl
100100
>>> pymapdl.convert_script(apdl_inputfile, pyscript, macros_as_functions=True)
101101
102102

0 commit comments

Comments
 (0)