-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Migrate report tool #26
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
46e8aa6
feat: Migrate report tool
AlejandroFernandezLuces 94a7029
fix: Ansys local env var
AlejandroFernandezLuces 99fb559
fix: remove env var
AlejandroFernandezLuces 627489e
fix: Report tests with installation
AlejandroFernandezLuces 5ad654c
fix: env vars
AlejandroFernandezLuces 4bad0a4
doc: Add documentation for report tool
AlejandroFernandezLuces 5f3bdc6
fix: API reference reference
AlejandroFernandezLuces efef387
fix: Titles and links
AlejandroFernandezLuces File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,147 @@ | ||
| .. _ref_report: | ||
|
|
||
| User guide | ||
| ============ | ||
|
|
||
| This section explains how to use ``pyansys-tools-report`` and its features. | ||
|
|
||
| Using PyAnsys Tools Report | ||
| -------------------------- | ||
|
|
||
| Once the ``pyansys-tools-report`` package is installed in your own personal environment (if not, please proceed | ||
| to :ref:`ref_getting_started`), you can start importing the package and using it. | ||
|
|
||
| In order to import the package, please run: | ||
|
|
||
| .. code:: python | ||
|
|
||
| import ansys.tools.report as pyansys_report | ||
|
|
||
| The ``pyansys-tools-report`` contains a main class called ``Report``. This class is basically an extension of the | ||
| ``scooby.Report``, but customized for showing Ansys libraries and variables in a common format. | ||
|
|
||
| The possible arguments that the ``Report`` class accepts can be found in the `API reference <../api/index.html>`_. Please, have a look | ||
| at it to understand the arguments you may use. A simple example of Ansys variables and libraries is shown below. | ||
|
|
||
| .. code:: python | ||
|
|
||
| # After defining my_ansys_libs and my_ansys_vars with the needed format (see API Reference) | ||
| # we can start the instantiation of the report | ||
| # | ||
| # Instantiate a Report object | ||
| rep = report.Report(ansys_libs=my_ansys_libs, ansys_vars=my_ansys_vars) | ||
|
|
||
| # For printing the report | ||
| rep | ||
|
|
||
| The typical output of a ``Report`` would look as follows: | ||
|
|
||
| .. code-block:: text | ||
|
|
||
| >>> ------------------------------------------------------------------------------- | ||
| >>> PyAnsys Software and Environment Report | ||
| >>> ------------------------------------------------------------------------------- | ||
| >>> Date: Wed Nov 30 14:54:58 2022 Romance Standard Time | ||
| >>> | ||
| >>> OS : Windows | ||
| >>> CPU(s) : 16 | ||
| >>> Machine : AMD64 | ||
| >>> Architecture : 64bit | ||
| >>> Environment : Python | ||
| >>> GPU Vendor : Intel | ||
| >>> GPU Renderer : Intel(R) UHD Graphics | ||
| >>> GPU Version : 4.5.0 - Build 30.0.100.9955 | ||
| >>> | ||
| >>> Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] | ||
| >>> | ||
| >>> ansys-mapdl-core : X.Y.Z | ||
| >>> ansys-dpf-core : X.Y.Z | ||
| >>> ansys-dpf-post : X.Y.Z | ||
| >>> ansys-dpf-gate : X.Y.Z | ||
| >>> ansys-fluent-core : X.Y.Z | ||
| >>> pyaedt : X.Y.Z | ||
| >>> ansys-platform-instancemanagement : X.Y.Z | ||
| >>> ansys-grantami-bomanalytics : X.Y.Z | ||
| >>> ansys-openapi-common : X.Y.Z | ||
| >>> ansys-mapdl-reader : X.Y.Z | ||
| >>> ansys-fluent-visualization : X.Y.Z | ||
| >>> ansys-fluent-parametric : X.Y.Z | ||
| >>> ansys-sphinx-theme : X.Y.Z | ||
| >>> ansys-seascape : X.Y.Z | ||
| >>> pyansys-tools-report : X.Y.Z | ||
| >>> pyansys-tools-versioning : X.Y.Z | ||
| >>> matplotlib : X.Y.Z | ||
| >>> numpy : X.Y.Z | ||
| >>> pyvista : X.Y.Z | ||
| >>> appdirs : X.Y.Z | ||
| >>> tqdm : X.Y.Z | ||
| >>> pyiges : X.Y.Z | ||
| >>> scipy : X.Y.Z | ||
| >>> grpc : X.Y.Z | ||
| >>> google.protobuf : X.Y.Z | ||
| >>> | ||
| >>> | ||
| >>> ------------------------------------------------------------------------------- | ||
| >>> Ansys Environment Report | ||
| >>> ------------------------------------------------------------------------------- | ||
| >>> | ||
| >>> | ||
| >>> Ansys Installation | ||
| >>> ****************** | ||
| >>> Version Location | ||
| >>> ------------------ | ||
| >>> MyLib1 v1.2 | ||
| >>> MyLib2 v1.3 | ||
| >>> | ||
| >>> | ||
| >>> Ansys Environment Variables | ||
| >>> *************************** | ||
| >>> MYVAR_1 VAL_1 | ||
| >>> MYVAR_2 VAL_2 | ||
|
|
||
|
|
||
| By default, the ``Report`` class would look for a certain set of environment variables. The following | ||
| strings are searched for in the available environment variables. If any match is found, they are included | ||
| in the report: | ||
|
|
||
| * ``AWP_ROOT`` | ||
| * ``ANS`` | ||
| * ``MAPDL`` | ||
| * ``FLUENT`` | ||
| * ``AEDT`` | ||
| * ``DPF`` | ||
|
|
||
| Also, several Python packages are reported by default. The set of reported packages always includes | ||
| the following list: | ||
|
|
||
| * ``ansys-mapdl-core`` | ||
| * ``ansys-dpf-core`` | ||
| * ``ansys-dpf-post`` | ||
| * ``ansys-dpf-gate`` | ||
| * ``ansys-fluent-core`` | ||
| * ``pyaedt`` | ||
| * ``ansys-platform-instancemanagement`` | ||
| * ``ansys-grantami-bomanalytics`` | ||
| * ``ansys-openapi-common`` | ||
| * ``ansys-mapdl-reader`` | ||
| * ``ansys-fluent-visualization`` | ||
| * ``ansys-fluent-parametric`` | ||
| * ``ansys-sphinx-theme`` | ||
| * ``ansys-seascape`` | ||
| * ``pyansys-tools-report`` | ||
| * ``pyansys-tools-versioning`` | ||
| * ``matplotlib`` | ||
| * ``numpy`` | ||
| * ``pyvista`` | ||
| * ``appdirs`` | ||
| * ``tqdm`` | ||
| * ``pyiges`` | ||
| * ``scipy`` | ||
| * ``grpc`` | ||
| * ``google.protobuf`` | ||
|
|
||
| If you want the ``Report`` class to look for some extra environment variables by default, please | ||
| `raise an issue <https://github.com/ansys/pyansys-tools-report/issues>`_. | ||
|
|
||
| Enjoy its use. If you have any doubts, please raise a question/issue in the | ||
| `PyAnsys Tools Report Issues <https://github.com/ansys/pyansys-tools-report/issues>`_ site. | ||
RobPasMue marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| (?i)Ansys | ||
| pytest | ||
| pytest | ||
| ANS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.