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

Use ansys-tools-path package #1995

Merged
merged 27 commits into from
Apr 23, 2023
Merged

Use ansys-tools-path package #1995

merged 27 commits into from
Apr 23, 2023

Conversation

germa89
Copy link
Collaborator

@germa89 germa89 commented Apr 17, 2023

As the title.

Notes:

I have intentionally left some functions to check the API of that package.

@germa89 germa89 self-assigned this Apr 17, 2023
@germa89 germa89 added the Enhancement Improve any current implemented feature label Apr 17, 2023
@germa89 germa89 requested review from a team and clatapie and removed request for a team April 17, 2023 04:28
@github-actions github-actions bot added Dependencies Documentation Documentation related (improving, adding, etc) Maintenance General maintenance of the repo (libraries, cicd, etc) New Feature Request or proposal for a new feature labels Apr 17, 2023
@codecov
Copy link

codecov bot commented Apr 17, 2023

Codecov Report

Merging #1995 (1e12778) into main (a25fa9e) will decrease coverage by 0.09%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1995      +/-   ##
==========================================
- Coverage   82.98%   82.89%   -0.09%     
==========================================
  Files          44       44              
  Lines        7932     7850      -82     
==========================================
- Hits         6582     6507      -75     
+ Misses       1350     1343       -7     

Copy link
Contributor

@clatapie clatapie left a comment

Choose a reason for hiding this comment

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

LGTM!

@germa89
Copy link
Collaborator Author

germa89 commented Apr 18, 2023

I'm having some issues with injecting documentation in docstring. It does not make sense. Only #1991 #1996 has been implemented, and I dont see why these should change anything...


Error:

/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/solution/fe_constraints.py:docstring of ansys.mapdl.core._commands.solution.fe_constraints.FeConstraints.dlist:26: ERROR: Unexpected indentation.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/solution/fe_constraints.py:docstring of ansys.mapdl.core._commands.solution.fe_constraints.FeConstraints.dlist:23: WARNING: Block quote ends without a blank line; unexpected unindent.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/solution/fe_forces.py:docstring of ansys.mapdl.core._commands.solution.fe_forces.FeForces.flist:25: ERROR: Unexpected indentation.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/solution/fe_forces.py:docstring of ansys.mapdl.core._commands.solution.fe_forces.FeForces.flist:22: WARNING: Block quote ends without a blank line; unexpected unindent.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/preproc/elements.py:docstring of ansys.mapdl.core._commands.preproc.elements.Elements.swlist:21: ERROR: Unexpected indentation.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/preproc/elements.py:docstring of ansys.mapdl.core._commands.preproc.elements.Elements.swlist:18: WARNING: Block quote ends without a blank line; unexpected unindent.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/preproc/nodes.py:docstring of ansys.mapdl.core._commands.preproc.nodes.Nodes.nlist:48: ERROR: Unexpected indentation.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/preproc/nodes.py:docstring of ansys.mapdl.core._commands.preproc.nodes.Nodes.nlist:45: WARNING: Block quote ends without a blank line; unexpected unindent.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post26_/status.py:docstring of ansys.mapdl.core._commands.post26_.status.Status.print:16: ERROR: Unexpected indentation.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post26_/status.py:docstring of ansys.mapdl.core._commands.post26_.status.Status.print:13: WARNING: Block quote ends without a blank line; unexpected unindent.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/results.py:docstring of ansys.mapdl.core._commands.post1_.results.Results.prcint:64: ERROR: Unexpected indentation.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/results.py:docstring of ansys.mapdl.core._commands.post1_.results.Results.prcint:61: WARNING: Block quote ends without a blank line; unexpected unindent.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/results.py:docstring of ansys.mapdl.core._commands.post1_.results.Results.prenergy:32: ERROR: Unexpected indentation.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/results.py:docstring of ansys.mapdl.core._commands.post1_.results.Results.prenergy:29: WARNING: Block quote ends without a blank line; unexpected unindent.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/listing.py:docstring of ansys.mapdl.core._commands.post1_.listing.Listing.prerr:16: ERROR: Unexpected indentation.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/listing.py:docstring of ansys.mapdl.core._commands.post1_.listing.Listing.prerr:13: WARNING: Block quote ends without a blank line; unexpected unindent.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/results.py:docstring of ansys.mapdl.core._commands.post1_.results.Results.presol:27: ERROR: Unexpected indentation.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/results.py:docstring of ansys.mapdl.core._commands.post1_.results.Results.presol:24: WARNING: Block quote ends without a blank line; unexpected unindent.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/element_table.py:docstring of ansys.mapdl.core._commands.post1_.element_table.ElementTable.pretab:27: ERROR: Unexpected indentation.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/element_table.py:docstring of ansys.mapdl.core._commands.post1_.element_table.ElementTable.pretab:24: WARNING: Block quote ends without a blank line; unexpected unindent.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/listing.py:docstring of ansys.mapdl.core._commands.post1_.listing.Listing.priter:16: ERROR: Unexpected indentation.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/listing.py:docstring of ansys.mapdl.core._commands.post1_.listing.Listing.priter:13: WARNING: Block quote ends without a blank line; unexpected unindent.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/results.py:docstring of ansys.mapdl.core._commands.post1_.results.Results.prjsol:40: ERROR: Unexpected indentation.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/results.py:docstring of ansys.mapdl.core._commands.post1_.results.Results.prjsol:37: WARNING: Block quote ends without a blank line; unexpected unindent.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/results.py:docstring of ansys.mapdl.core._commands.post1_.results.Results.prnld:44: ERROR: Unexpected indentation.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/results.py:docstring of ansys.mapdl.core._commands.post1_.results.Results.prnld:41: WARNING: Block quote ends without a blank line; unexpected unindent.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/results.py:docstring of ansys.mapdl.core._commands.post1_.results.Results.prnsol:27: ERROR: Unexpected indentation.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/results.py:docstring of ansys.mapdl.core._commands.post1_.results.Results.prnsol:24: WARNING: Block quote ends without a blank line; unexpected unindent.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/results.py:docstring of ansys.mapdl.core._commands.post1_.results.Results.prorb:16: ERROR: Unexpected indentation.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/results.py:docstring of ansys.mapdl.core._commands.post1_.results.Results.prorb:13: WARNING: Block quote ends without a blank line; unexpected unindent.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/path_operations.py:docstring of ansys.mapdl.core._commands.post1_.path_operations.PathOperations.prpath:22: ERROR: Unexpected indentation.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/path_operations.py:docstring of ansys.mapdl.core._commands.post1_.path_operations.PathOperations.prpath:19: WARNING: Block quote ends without a blank line; unexpected unindent.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/results.py:docstring of ansys.mapdl.core._commands.post1_.results.Results.prrfor:22: ERROR: Unexpected indentation.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/results.py:docstring of ansys.mapdl.core._commands.post1_.results.Results.prrfor:19: WARNING: Block quote ends without a blank line; unexpected unindent.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/results.py:docstring of ansys.mapdl.core._commands.post1_.results.Results.prrsol:21: ERROR: Unexpected indentation.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/results.py:docstring of ansys.mapdl.core._commands.post1_.results.Results.prrsol:18: WARNING: Block quote ends without a blank line; unexpected unindent.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/path_operations.py:docstring of ansys.mapdl.core._commands.post1_.path_operations.PathOperations.prsect:36: ERROR: Unexpected indentation.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/path_operations.py:docstring of ansys.mapdl.core._commands.post1_.path_operations.PathOperations.prsect:33: WARNING: Block quote ends without a blank line; unexpected unindent.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/results.py:docstring of ansys.mapdl.core._commands.post1_.results.Results.prvect:38: ERROR: Unexpected indentation.
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/ansys/mapdl/core/_commands/post1_/results.py:docstring of ansys.mapdl.core._commands.post1_.results.Results.prvect:35: WARNING: Block quote ends without a blank line; unexpected unindent.
looking for now-outdated files... none found
pickling environment... done
checking consistency... done

@akaszynski akaszynski changed the title Using ansys-tools-path package Use ansys-tools-path package Apr 18, 2023
@akaszynski
Copy link
Collaborator

I'm having some issues with injecting documentation in docstring. It does not make sense

My guess is that this is due to bumping the cache.

@germa89 germa89 merged commit 8bd085f into main Apr 23, 2023
23 checks passed
@germa89 germa89 deleted the feat/using-ansys-tools-path branch April 23, 2023 06:39
germa89 added a commit that referenced this pull request May 22, 2023
* adding ansys-tools-path dependencies

* Removing functions

* Reorg a bit

* Removing tests

* Updating docs

* Removing orphan test

* fixing one test

* Getting rid of get_ansys_bin

* Getting rid of get_ansys_bin

* fix

* Removing calls to _get_available_ansys_installations.

* Fixing test ubuntu

* Using find_ansys to get latest.

* Fixing tests

* Removing duplicated skipif

* fixing version number on remote instance

* Small improvement in makefile

* resetting cache

* adding tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fixing doc warnings

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* removing warning directive

* Adding missing pyiges package

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependencies Documentation Documentation related (improving, adding, etc) Enhancement Improve any current implemented feature Maintenance General maintenance of the repo (libraries, cicd, etc) New Feature Request or proposal for a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants