Skip to content

Conversation

@clatapie
Copy link
Contributor

@clatapie clatapie commented Oct 27, 2025

Description

This PR follows the PyConverter-XML2Py integration plan to automate the PyMAPDL_commands documentation.
The changes have been generated using pyconverter-xml2py and more specifically mapdl-cmd-conv.

This PR focus on the first part of the solution submodule integration.

You can check the mapdl-cmd-conv documentation to have a look at the output of each methods.

Pinging @ansys/pymapdl-developers for visibility. Feel free to provide any feedback on the way the docstrings and the source code generation are handled.

Issue linked

This PR is meant to be merged within the feat/main_solu branch. The latter will gather all the parts of the submodule prior to be merged to the main branch.

Checklist

@clatapie clatapie requested a review from a team as a code owner October 27, 2025 14:36
@clatapie clatapie requested review from germa89 and pyansys-ci-bot and removed request for a team October 27, 2025 14:36
@clatapie clatapie self-assigned this Oct 27, 2025
@github-actions github-actions bot added documentation Documentation related (improving, adding, etc) new feature Request or proposal for a new feature labels Oct 27, 2025
@clatapie
Copy link
Contributor Author

clatapie commented Nov 5, 2025

This PR is ready to be reviewed @germa89

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR is part 3 of automating PyMAPDL command documentation for the solution submodule, using the pyconverter-xml2py tool to generate enhanced docstrings with improved formatting, type hints, and references.

Key changes include:

  • Renaming and reorganizing solution status and 2D-to-3D analysis modules
  • Enhanced documentation with reStructuredText formatting, hyperlinks, and improved parameter descriptions
  • Added type hints to function signatures throughout multiple solution modules

Reviewed Changes

Copilot reviewed 24 out of 25 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/ansys/mapdl/core/commands.py Renamed solution_status.SolutionStatus to status.Status and removed twod_to_3d_analysis.TwoDTo3DAnalysis
src/ansys/mapdl/core/_commands/solution/twod_to_3d_analysis.py Deleted file containing the TwoDTo3DAnalysis class
src/ansys/mapdl/core/_commands/solution/status.py New file replacing solution_status.py with enhanced documentation
src/ansys/mapdl/core/_commands/solution/solid_surface_loads.py Enhanced docstrings and added type hints for surface load commands
src/ansys/mapdl/core/_commands/solution/solid_forces.py Enhanced docstrings and added type hints for force commands
src/ansys/mapdl/core/_commands/solution/solid_constraints.py Enhanced docstrings and added type hints for constraint commands
src/ansys/mapdl/core/_commands/solution/solid_body_loads.py Enhanced docstrings and added type hints for body load commands
src/ansys/mapdl/core/_commands/solution/rezoning.py Enhanced docstrings, reordered methods, and added type hints
src/ansys/mapdl/core/_commands/solution/radiosity.py Enhanced docstrings with extensive additions for radiosity methods
src/ansys/mapdl/core/_commands/solution/ocean.py Enhanced docstrings and refined parameter handling for ocean loading
doc/source/mapdl_commands/solution/*.rst Updated documentation structure to match renamed modules

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Warning:: : On previously meshed areas, all constraints on affected
nodes will be deleted, whether or not they were specified by the DA
command.
On previously meshed areas, allconstraints on affected nodes will be deleted, whether or not
Copy link

Copilot AI Nov 19, 2025

Choose a reason for hiding this comment

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

Missing space between 'all' and 'constraints' in the warning text.

Suggested change
On previously meshed areas, allconstraints on affected nodes will be deleted, whether or not
On previously meshed areas, all constraints on affected nodes will be deleted, whether or not

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

all is written in bold in the original documentation. I will look into it

.. warning::
On previously meshed lines, allconstraints on affected nodes will also be deleted, whether or
Copy link

Copilot AI Nov 19, 2025

Choose a reason for hiding this comment

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

Missing space between 'all' and 'constraints' in the warning text.

Suggested change
On previously meshed lines, allconstraints on affected nodes will also be deleted, whether or
On previously meshed lines, all constraints on affected nodes will also be deleted, whether or

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same here

val13: str = "",
val14: str = "",
**kwargs,
self, val1: str = "", val2: str = "", val3: str = "", val14: str = "", **kwargs
Copy link

Copilot AI Nov 19, 2025

Choose a reason for hiding this comment

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

Function signature only includes val1, val2, val3, and val14 but documentation references val4 through val13. The intermediate parameters are missing from the signature.

Suggested change
self, val1: str = "", val2: str = "", val3: str = "", val14: str = "", **kwargs
self,
val1: str = "",
val2: str = "",
val3: str = "",
val4: str = "",
val5: str = "",
val6: str = "",
val7: str = "",
val8: str = "",
val9: str = "",
val10: str = "",
val11: str = "",
val12: str = "",
val13: str = "",
val14: str = "",
**kwargs

Copilot uses AI. Check for mistakes.
Comment on lines +35 to +44
val1 : str
Values describing the basic ocean load or a wave condition.
val2 : str
Values describing the basic ocean load or a wave condition.
val3 : str
Values describing the basic ocean load or a wave condition.
val14 : str
Copy link
Collaborator

Choose a reason for hiding this comment

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

image

following our previous approach, the convert should write ALL the arguments.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Interesting. Let me check it

@germa89
Copy link
Collaborator

germa89 commented Nov 19, 2025

@clatapie also check the bot comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation related (improving, adding, etc) new feature Request or proposal for a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants