Skip to content

Commit 1c2d9ea

Browse files
clatapiepyansys-ci-botgerma89
authored
feat: session submodule (#3895)
* feat: ``session`` submodule * chore: adding changelog file 3894.documentation.md [dependabot-skip] * chore: adding changelog file 3895.documentation.md [dependabot-skip] * feat: commands ordered by name * feat: commands ordered by pyname * fix: removing ``slashexit`` + commenting ``mypy`` as it is not working * fix: update no abort logging and command execution in MapdlGrpc class to use `run` since the `abort` argument is not public. * fix: uncomment mypy hook configuration in pre-commit settings * delete: remove duplicated fragment * fix: improve cwd method to validate directory paths and handle quotes in instead of the original class. * feat: adding latest enhancements * feat: applying latest ``pyconverter-xml2py`` changes * chore: adding changelog file 3895.miscellaneous.md [dependabot-skip] * feat: adding warnings and latest enhancements --------- Co-authored-by: pyansys-ci-bot <[email protected]> Co-authored-by: German <[email protected]>
1 parent c3a3401 commit 1c2d9ea

File tree

13 files changed

+1662
-1126
lines changed

13 files changed

+1662
-1126
lines changed

doc/changelog.d/3895.miscellaneous.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Feat: ``session`` submodule
Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
1-
.. _ref_files_commands_api:
21

3-
*****
2+
.. _ref_files:
3+
4+
45
Files
5-
*****
6+
=====
7+
68

7-
.. currentmodule:: ansys.mapdl.core
9+
.. currentmodule:: ansys.mapdl.core._commands.session.files
810

9-
These SESSION commands are for file operations, such as deleting,
10-
copying, and listing.
11+
.. autoclass:: ansys.mapdl.core._commands.session.files.Files
1112

1213
.. autosummary::
13-
:toctree: _autosummary/
14-
15-
Mapdl.anstoaqwa
16-
Mapdl.anstoasas
17-
Mapdl.assign
18-
Mapdl.copy
19-
Mapdl.slashdelete
20-
Mapdl.fcomp
21-
Mapdl.lgwrite
22-
Mapdl.starlist
23-
Mapdl.slashclog
24-
Mapdl.slashfdele
25-
Mapdl.rename
14+
:template: base.rst
15+
:toctree: _autosummary
16+
17+
18+
Files.anstoaqwa
19+
Files.anstoasas
20+
Files.assign
21+
Files.copy
22+
Files.fclean
23+
Files.fcomp
24+
Files.lgwrite
25+
Files.slashclog
26+
Files.slashdelete
27+
Files.slashfdele
28+
Files.slashrename
29+
Files.starlist
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
.. _ref_session:
3+
4+
Session
5+
=======
6+
7+
.. list-table::
8+
9+
* - :ref:`ref_files`
10+
* - :ref:`ref_list_controls`
11+
* - :ref:`ref_run_controls`
12+
* - :ref:`ref_processor_entry`
13+
14+
15+
.. toctree::
16+
:maxdepth: 1
17+
:hidden:
18+
19+
files
20+
list_controls
21+
run_controls
22+
processor_entry
Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1-
.. _ref_list_controls_commands_api:
21

3-
*************
4-
List controls
5-
*************
2+
.. _ref_list_controls:
63

7-
.. currentmodule:: ansys.mapdl.core
84

9-
These SESSION commands are used to control listings and printed program output.
5+
ListControls
6+
============
7+
8+
9+
.. currentmodule:: ansys.mapdl.core._commands.session.list_controls
10+
11+
.. autoclass:: ansys.mapdl.core._commands.session.list_controls.ListControls
1012

1113
.. autosummary::
12-
:toctree: _autosummary/
14+
:template: base.rst
15+
:toctree: _autosummary
16+
1317

14-
Mapdl.com
15-
Mapdl.golist
16-
Mapdl.gopr
17-
Mapdl.nolist
18-
Mapdl.nopr
18+
ListControls.com
19+
ListControls.golist
20+
ListControls.gopr
21+
ListControls.nolist
22+
ListControls.nopr
23+
ListControls.slashgo
Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
1-
.. _ref_processor_entry_commands_api:
21

3-
***************
4-
Processor entry
5-
***************
2+
.. _ref_processor_entry:
63

7-
.. currentmodule:: ansys.mapdl.core
84

9-
These SESSION commands are used to enter and exit the various processors in the program.
5+
ProcessorEntry
6+
==============
7+
8+
9+
.. currentmodule:: ansys.mapdl.core._commands.session.processor_entry
10+
11+
.. autoclass:: ansys.mapdl.core._commands.session.processor_entry.ProcessorEntry
1012

1113
.. autosummary::
12-
:toctree: _autosummary/
13-
14-
Mapdl.aux2
15-
Mapdl.aux3
16-
Mapdl.aux12
17-
Mapdl.aux15
18-
Mapdl.finish
19-
Mapdl.map
20-
Mapdl.post1
21-
Mapdl.post26
22-
Mapdl.prep7
23-
Mapdl.quit
24-
Mapdl.slashsolu
14+
:template: base.rst
15+
:toctree: _autosummary
16+
17+
18+
ProcessorEntry.finish
19+
ProcessorEntry.post1
20+
ProcessorEntry.post26
21+
ProcessorEntry.prep7
22+
ProcessorEntry.quit
23+
ProcessorEntry.slashsolu
Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,34 @@
1-
.. _ref_run_controls_commands_api:
21

3-
************
4-
Run controls
5-
************
2+
.. _ref_run_controls:
63

7-
.. currentmodule:: ansys.mapdl.core
84

9-
These SESSION commands control the overall characteristics of the
10-
session, including the job name, Graphical User Interface behavior, and
11-
file switching.
5+
RunControls
6+
===========
7+
8+
9+
.. currentmodule:: ansys.mapdl.core._commands.session.run_controls
10+
11+
.. autoclass:: ansys.mapdl.core._commands.session.run_controls.RunControls
1212

1313
.. autosummary::
14-
:toctree: _autosummary/
15-
16-
Mapdl.config
17-
Mapdl.cwd
18-
Mapdl.exit
19-
Mapdl.filname
20-
Mapdl.input
21-
Mapdl.keyw
22-
Mapdl.memm
23-
Mapdl.nerr
24-
Mapdl.pause
25-
Mapdl.slashstatus
26-
Mapdl.starstatus
27-
Mapdl.syp
28-
Mapdl.sys
29-
Mapdl.unpause
14+
:template: base.rst
15+
:toctree: _autosummary
16+
17+
18+
RunControls.config
19+
RunControls.cwd
20+
RunControls.filname
21+
RunControls.input
22+
RunControls.keyw
23+
RunControls.memm
24+
RunControls.menu
25+
RunControls.mstart
26+
RunControls.nerr
27+
RunControls.output
28+
RunControls.pause
29+
RunControls.slashstatus
30+
RunControls.syp
31+
RunControls.sys
32+
RunControls.ui
33+
RunControls.uis
34+
RunControls.unpause

src/ansys/mapdl/core/_commands/session/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,9 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222

23-
from . import files, list_controls, processor_entry, run_controls
23+
from . import (
24+
files,
25+
list_controls,
26+
processor_entry,
27+
run_controls,
28+
)

0 commit comments

Comments
 (0)