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

Fixing failing CICD #171

Merged
merged 8 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
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
6 changes: 3 additions & 3 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ on:

env:
MAIN_PYTHON_VERSION: '3.9'
RESET_EXAMPLES_CACHE: 0
RESET_DOC_BUILD_CACHE: 0
USE_CACHE: true
RESET_EXAMPLES_CACHE: 9
RESET_DOC_BUILD_CACHE: 9
USE_CACHE: false

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
7 changes: 6 additions & 1 deletion doc/.vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
StylesPath = "styles"

# The options are `suggestion`, `warning`, or `error` (defaults to “warning”).
MinAlertLevel = error
MinAlertLevel = warning

# By default, `code` and `tt` are ignored.
IgnoredScopes = code, tt
Expand All @@ -26,3 +26,8 @@ Vocab = ANSYS

# Apply the following styles
BasedOnStyles = Vale, Google

TokenIgnores = (:(func|class|meth|attr|py):`(?:.|\n)*?`)|(<.*>)|(.. (code|jupyter-execute)::.*\n| .*)

# Removing Google-specific rule - Not applicable under some circumstances
Google.Colons = NO
2 changes: 1 addition & 1 deletion doc/source/common_jupyter_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
pyvista.global_theme.show_scalar_bar = True
pyvista.global_theme.return_cpos = False

pyvista.set_jupyter_backend("panel")
pyvista.set_jupyter_backend("trame")

mytheme = pyvista.global_theme
4 changes: 2 additions & 2 deletions doc/source/contributing/write_examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ The more visual your example is, the better.
Python facilitates the creation of sophisticate graphics and plots: take advantage
of that.

Packages like `matplotlib <matplotlib_org_>`_, `pandas <pandas_org_>`_
or `pyvista <pandas_org_>`_ can help you create nice graphics, tables, or plots .
Packages like `Matplotlib <matplotlib_org_>`_, `Pandas <pandas_org_>`_
or `PyVista <pandas_org_>`_ can help you create nice graphics, tables, or plots .
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ Start this example by launching MAPDL and loading the model.
pyvista.set_plot_theme('document')

from ansys.mapdl.core import launch_mapdl, Mapdl
from ansys.mapdl.core.examples import download_tech_demo_data, ansys_colormap
from ansys.mapdl.core.examples.downloads import download_tech_demo_data
from ansys.mapdl.core.examples.examples import ansys_colormap

cdb_path = download_tech_demo_data("td-1", "disc_pad_model.cdb")

Expand Down Expand Up @@ -217,7 +218,7 @@ Start this example by launching MAPDL and loading the model.
:hide-code:

from ansys.mapdl.core import examples
from ansys.mapdl.core.examples import download_vtk_rotor, download_tech_demo_data
from ansys.mapdl.core.examples.downloads import download_vtk_rotor, download_tech_demo_data

rotor = pyvista.read(download_vtk_rotor())
rotor.plot(color='w', show_edges=True)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ between the IC packages and the circuit board.
import _.pyplot as plt

from ansys.mapdl.core import launch_mapdl
from ansys.mapdl.core.examples import download_tech_demo_data
from ansys.mapdl.core.examples.downloads import download_tech_demo_data

# start MAPDL as a service
mapdl = launch_mapdl()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Starting MAPDL as a service and importing an external model


from ansys.mapdl.core import launch_mapdl
from ansys.mapdl.core.examples import download_tech_demo_data
from ansys.mapdl.core.examples.downloads import download_tech_demo_data

# define geometric parameters
bs = 95.3 # Ring spacing (mm)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ cylindrical shape tool, as shown in the following figure:
:hide-code:

from ansys.mapdl.core import examples
from ansys.mapdl.core.examples import download_vtk_rotor, download_tech_demo_data
from ansys.mapdl.core.examples.downloads import download_vtk_rotor, download_tech_demo_data

cdbfile = download_tech_demo_data("td-28", "fsw.cdb")
# Generating geometry, just for plotting purposes.
Expand Down
1 change: 1 addition & 0 deletions doc/styles/Vocab/ANSYS/accept.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Prasanna
pres
Prestressed
prestressed
PyVista
Rao
ROTY
Schroth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
#

from ansys.mapdl.core import launch_mapdl
from ansys.mapdl.core.examples import download_tech_demo_data
from ansys.mapdl.core.examples.downloads import download_tech_demo_data

# define geometric parameters
bs = 95.3 # Ring spacing (mm)
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements_doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ nest-asyncio==1.5.7
pandas==2.0.3
plotly==5.16.1
pythreejs==2.4.2
pyvista==0.42.3
pyvista[jupyter]==0.42.3
vtk==9.2.6

# Documentation dependencies
Expand Down
Loading