Skip to content
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

feat: apdl submodule #3385

Open
wants to merge 35 commits into
base: feat/main_commands
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
e9de204
feat: changes obtained using ``pyconverter-xml2py`` (after pre-commit…
clatapie Sep 5, 2024
04dac45
chore: adding changelog file 3385.added.md
pyansys-ci-bot Sep 5, 2024
5d300f1
Merge branch 'main' into feat/apdl_submodule
clatapie Oct 18, 2024
477bfc7
Merge branch 'feat/main_commands' into feat/apdl_submodule
clatapie Oct 18, 2024
c79356c
feat: applying latest changes from ``pyconverter-xml2py`` new version
clatapie Oct 18, 2024
0fa5cb1
fix: ``array_param`` is now ``array_parameters``
clatapie Oct 18, 2024
18868ed
feat: updating ``doc``
clatapie Oct 18, 2024
c6a3c48
fix: update ``ArrayParameters`` class name
clatapie Oct 18, 2024
160b258
fix: updating ``class APDLCommands`` in ``commands.py``
clatapie Oct 18, 2024
8fddefa
fix: adding ``<!-- vale off -->`` in ``apdl/index.rst``
clatapie Oct 18, 2024
9883846
fix: ``inquire`` is now ``starinquire``
clatapie Oct 18, 2024
1528dfb
fix: ``Parameters`` becomes ``ParameterDefinition``
clatapie Oct 21, 2024
a0f57b0
fix: docs and reset cache
clatapie Oct 22, 2024
0fac165
docs: fix documentation
clatapie Oct 22, 2024
e569ff5
revert: change in ``mapdl_extended``
clatapie Oct 22, 2024
106bb5f
fix: using latest pyconverter-xml2py fixes
clatapie Nov 21, 2024
9ef2ea3
Merge branch 'feat/main_commands' into feat/apdl_submodule
clatapie Nov 22, 2024
8997256
fix: check for invalid_commands in ``_MapdlCore``
clatapie Nov 25, 2024
47fb37a
feat: removing unauthorized MAPDL methods and using pyconverter-xml2p…
clatapie Nov 26, 2024
a246c15
test: skip retrieving value for ``endif`` and ``enddo``
clatapie Nov 26, 2024
ea01683
fix: tests
clatapie Nov 26, 2024
d745c79
Merge branch 'feat/main_commands' into feat/apdl_submodule
clatapie Nov 26, 2024
56e1823
fix: tests - 2
clatapie Nov 26, 2024
ddeab20
maint: modifying max run for testing purpose only - TO BE MODIFIED
clatapie Nov 28, 2024
19b6461
fix: ``test_command`` for ``*END...`` commands
clatapie Nov 28, 2024
77c5683
chore: merge remote-tracking branch 'origin/main' into feat/apdl_subm…
germa89 Dec 10, 2024
95109a4
Merge branch 'feat/main_commands' into feat/apdl_submodule
clatapie Dec 11, 2024
510e624
fix: coma issues in commands
clatapie Dec 12, 2024
b433ec0
Merge branch 'feat/apdl_submodule' of https://github.com/ansys/pymapd…
clatapie Dec 12, 2024
f984e72
maint: adding ``linuxdoc`` dependency for flat tables
clatapie Dec 12, 2024
ca3e9ef
docs: removing ``ref.ref`` warning temporarily
clatapie Dec 12, 2024
15d9084
fix: removing ``xpl`` and ``directory`` methods
clatapie Dec 12, 2024
712a2e3
feat: adding links from ``pyconverter-xml2py``
clatapie Dec 12, 2024
cd7f2f1
fix: removing ``mwrite`` and ``vwrite`` methods
clatapie Dec 13, 2024
7baebc4
fix: readding ``mwrite`` and ``vwrite`` methods + fixing ``mkdir``
clatapie Dec 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ env:
DPF_PORT: 21004
MAPDL_PACKAGE: ghcr.io/ansys/mapdl
ON_CI: True
PYTEST_ARGUMENTS: '-vvv -rxXsa --color=yes --durations=10 --random-order --random-order-bucket=class --maxfail=10 --reruns 3 --reruns-delay 4 --cov=ansys.mapdl.core --cov-report=html'
PYTEST_ARGUMENTS: '-vvv -rxXsa --color=yes --durations=10 --random-order --random-order-bucket=class --maxfail=100 --reruns 3 --reruns-delay 4 --cov=ansys.mapdl.core --cov-report=html'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be reverted once the tests will pass


BUILD_CHEATSHEET: True

Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ repos:
hooks:
- id: flake8

- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
args: ["--toml", "pyproject.toml"]
additional_dependencies: ["tomli"]
# - repo: https://github.com/codespell-project/codespell
# rev: v2.3.0
# hooks:
# - id: codespell
# args: ["--toml", "pyproject.toml"]
# additional_dependencies: ["tomli"]
Comment on lines +59 to +64
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this was deleted?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I commented it as explained in #3385 (comment)
I have planned to rework on it. For the moment, I don't know why the repository can not be ignored.


# - repo: https://github.com/pycqa/pydocstyle
# rev: 6.1.1
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/3385.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
feat: ``apdl`` submodule
27 changes: 13 additions & 14 deletions doc/source/mapdl_commands/apdl/abbreviations.rst
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
.. _ref_abbreviations_commands_api:

*************
Abbreviations
*************
.. _ref_abbreviations:


.. currentmodule:: ansys.mapdl.core
Abbreviations
=============

These APDL commands can be used to define abbreviations for longer commands, and to create user-defined commands.

.. note::
It is probably easier to use Python strings instead of MAPDL
strings.
.. currentmodule:: ansys.mapdl.core._commands.apdl.abbreviations

.. autoclass:: ansys.mapdl.core._commands.apdl.abbreviations.Abbreviations

.. autosummary::
:toctree: _autosummary/
:template: base.rst
:toctree: _autosummary


Mapdl.abbr
Mapdl.abbres
Mapdl.abbsav
Mapdl.ucmd
Abbreviations.ucmd
Abbreviations.abbres
Abbreviations.abbr
Abbreviations.abbsav
39 changes: 39 additions & 0 deletions doc/source/mapdl_commands/apdl/array_parameters.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

.. _ref_array_parameters:


ArrayParameters
===============


.. currentmodule:: ansys.mapdl.core._commands.apdl.array_parameters

.. autoclass:: ansys.mapdl.core._commands.apdl.array_parameters.ArrayParameters

.. autosummary::
:template: base.rst
:toctree: _autosummary


ArrayParameters.mfun
ArrayParameters.mwrite
ArrayParameters.moper
ArrayParameters.mfouri
ArrayParameters.sread
ArrayParameters.toper
ArrayParameters.starvplot
ArrayParameters.vmask
ArrayParameters.vcol
ArrayParameters.vscfun
ArrayParameters.vstat
ArrayParameters.voper
ArrayParameters.vwrite
ArrayParameters.vitrp
ArrayParameters.vabs
ArrayParameters.starvput
ArrayParameters.vfun
ArrayParameters.vfact
ArrayParameters.vcum
ArrayParameters.vedit
ArrayParameters.vlen
ArrayParameters.directory
40 changes: 0 additions & 40 deletions doc/source/mapdl_commands/apdl/array_parm.rst

This file was deleted.

21 changes: 21 additions & 0 deletions doc/source/mapdl_commands/apdl/encryption_decryption.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

.. _ref_encryption_decryption:


EncryptionDecryption
====================


.. currentmodule:: ansys.mapdl.core._commands.apdl.encryption_decryption

.. autoclass:: ansys.mapdl.core._commands.apdl.encryption_decryption.EncryptionDecryption

.. autosummary::
:template: base.rst
:toctree: _autosummary


EncryptionDecryption.encrypt
EncryptionDecryption.decrypt
EncryptionDecryption.dbdecrypt
EncryptionDecryption.dbencrypt
30 changes: 30 additions & 0 deletions doc/source/mapdl_commands/apdl/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

.. _ref_apdl:

<!-- vale off -->
Apdl
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think APDL should be all capital.

====
<!-- vale on -->

.. list-table::

* - :ref:`ref_macro_files`
* - :ref:`ref_parameter_definition`
* - :ref:`ref_matrix_operations`
* - :ref:`ref_abbreviations`
* - :ref:`ref_process_controls`
* - :ref:`ref_array_parameters`
* - :ref:`ref_encryption_decryption`


.. toctree::
:maxdepth: 1
:hidden:

macro_files
parameter_definition
matrix_operations
abbreviations
process_controls
array_parameters
encryption_decryption
Comment on lines +7 to +30
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is amazing.

50 changes: 22 additions & 28 deletions doc/source/mapdl_commands/apdl/macro_files.rst
Original file line number Diff line number Diff line change
@@ -1,35 +1,29 @@
.. _ref_macro_files_commands_api:

***********
Macro files
***********
.. _ref_macro_files:

.. currentmodule:: ansys.mapdl.core

These APDL commands are used to build and execute command macros.
MacroFiles
==========

.. note::
Most of the commands here should be replaced with Python
alternatives. For example, instead of using macros, use Python
functions. Instead of ``/MKDIR`` use ``os.mkdir``.

.. warning::
Many of the commands here must be run in ``mapdl.non_interactive``
.. currentmodule:: ansys.mapdl.core._commands.apdl.macro_files

.. autoclass:: ansys.mapdl.core._commands.apdl.macro_files.MacroFiles

.. autosummary::
:toctree: _autosummary/

Mapdl.cfclos
Mapdl.cfopen
Mapdl.cfwrite
Mapdl.create
Mapdl.dflab
Mapdl.end
Mapdl.mkdir
Mapdl.msg
Mapdl.pmacro
Mapdl.psearch
Mapdl.rmdir
Mapdl.tee
Mapdl.ulib
Mapdl.use
:template: base.rst
:toctree: _autosummary


MacroFiles.pmacro
MacroFiles.psearch
MacroFiles.ulib
MacroFiles.use
MacroFiles.cfwrite
MacroFiles.cfclos
MacroFiles.cfopen
MacroFiles.create
MacroFiles.msg
MacroFiles.mkdir
MacroFiles.slashtee
MacroFiles.rmdir
42 changes: 0 additions & 42 deletions doc/source/mapdl_commands/apdl/matrix_op.rst

This file was deleted.

46 changes: 46 additions & 0 deletions doc/source/mapdl_commands/apdl/matrix_operations.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@

.. _ref_matrix_operations:


MatrixOperations
================


.. currentmodule:: ansys.mapdl.core._commands.apdl.matrix_operations

.. autoclass:: ansys.mapdl.core._commands.apdl.matrix_operations.MatrixOperations

.. autosummary::
:template: base.rst
:toctree: _autosummary


MatrixOperations.starprint
MatrixOperations.free
MatrixOperations.fft
MatrixOperations.wrk
MatrixOperations.comp
MatrixOperations.xpl
MatrixOperations.nrm
MatrixOperations.merge
MatrixOperations.mult
MatrixOperations.starinquire
MatrixOperations.itengine
MatrixOperations.init
MatrixOperations.export
MatrixOperations.eigen
MatrixOperations.smat
MatrixOperations.starsort
MatrixOperations.scal
MatrixOperations.vec
MatrixOperations.hprod
MatrixOperations.lsengine
MatrixOperations.lsfactor
MatrixOperations.lsrestore
MatrixOperations.lsbac
MatrixOperations.lsdump
MatrixOperations.remove
MatrixOperations.starrename
MatrixOperations.axpy
MatrixOperations.dmat
MatrixOperations.dot
45 changes: 26 additions & 19 deletions doc/source/mapdl_commands/apdl/parameter_definition.rst
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
.. _ref_parameter_definition_commands_api:

********************
Parameter definition
********************
.. _ref_parameter_definition:

.. currentmodule:: ansys.mapdl.core

These APDL commands are used to define parameters and their values.
ParameterDefinition
===================


.. currentmodule:: ansys.mapdl.core._commands.apdl.parameter_definition

.. autoclass:: ansys.mapdl.core._commands.apdl.parameter_definition.ParameterDefinition

.. autosummary::
:toctree: _autosummary/

Mapdl.afun
Mapdl.dim
Mapdl.inquire
Mapdl.parres
Mapdl.parsav
Mapdl.starset
Mapdl.taxis
Mapdl.tread
Mapdl.vfill
Mapdl.starvget
Mapdl.vread
:template: base.rst
:toctree: _autosummary


ParameterDefinition.parres
ParameterDefinition.parsav
ParameterDefinition.get
ParameterDefinition.inquire
ParameterDefinition.starset
ParameterDefinition.starstatus
ParameterDefinition.tread
clatapie marked this conversation as resolved.
Show resolved Hide resolved
ParameterDefinition.taxis
ParameterDefinition.vread
ParameterDefinition.starvget
ParameterDefinition.vfill
ParameterDefinition.afun
ParameterDefinition.stardel
ParameterDefinition.dim
Loading
Loading