Skip to content

Commit 4bb943d

Browse files
committed
Fixing order import (#1386)
* Fixing order import * fixing docstring for jupyter launch_mapdl * fixing circular import error. * Fixing coverage
1 parent 50e1aa6 commit 4bb943d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/ansys/mapdl/core/__init__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,15 @@
3434
close_all_local_instances,
3535
find_ansys,
3636
get_ansys_path,
37-
launch_mapdl,
3837
save_ansys_path,
3938
)
39+
40+
# override default launcher when on pyansys.com
41+
if "ANSJUPHUB_VER" in os.environ: # pragma: no cover
42+
from ansys.mapdl.core.jupyter import launch_mapdl_on_cluster as launch_mapdl
43+
else:
44+
from ansys.mapdl.core.launcher import launch_mapdl
45+
4046
from ansys.mapdl.core.mapdl_grpc import MapdlGrpc as Mapdl
4147
from ansys.mapdl.core.misc import Information, Report, _check_has_ansys
4248
from ansys.mapdl.core.pool import LocalMapdlPool
@@ -57,10 +63,4 @@
5763
except: # pragma: no cover
5864
pass
5965

60-
61-
# override default launcher when on pyansys.com
62-
if "ANSJUPHUB_VER" in os.environ:
63-
from ansys.mapdl.core.jupyter import launch_mapdl_on_cluster as launch_mapdl
64-
65-
6666
BUILDING_GALLERY = False

src/ansys/mapdl/core/jupyter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def launch_mapdl_on_cluster(
4949
may segfault.
5050
loglevel : str, optional
5151
Sets which messages are printed to the console. Default
52-
``'INFO'`` logs out all MAPDL messages, ``'WARNING``` prints only
52+
``'INFO'`` logs out all MAPDL messages, ``'WARNING'`` prints only
5353
messages containing MAPDL warnings, and ``'ERROR'`` prints only
5454
error messages.
5555
additional_switches : str, optional

0 commit comments

Comments
 (0)