From 6c52a471a47c069b92447a2dcceb4b017eed9672 Mon Sep 17 00:00:00 2001 From: dkunhamb Date: Mon, 28 Oct 2024 11:54:59 -0500 Subject: [PATCH] remove explicit version number --- .github/workflows/ci_cd_nightly.yml | 4 ---- examples/00_tips/tips_01.py | 2 +- examples/00_tips/tips_02.py | 2 +- examples/00_tips/tips_03.py | 2 +- examples/01_basic/bolt_pretension.py | 2 +- examples/01_basic/fracture_analysis_contact_debonding.py | 2 +- examples/01_basic/harmonic_acoustics.py | 2 +- examples/01_basic/modal_acoustics_analysis.py | 2 +- examples/01_basic/steady_state_thermal_analysis.py | 2 +- examples/01_basic/topology_optimization_cantilever_beam.py | 2 +- examples/01_basic/valve.py | 2 +- examples/02_technology_showcase/Rotor_Blade_Inverse_solve.py | 2 +- examples/02_technology_showcase/conact_wear_simulation.py | 2 +- .../non_linear_analsis_rubber_boot_seal.py | 2 +- 14 files changed, 13 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci_cd_nightly.yml b/.github/workflows/ci_cd_nightly.yml index 54f71930..dd0029de 100644 --- a/.github/workflows/ci_cd_nightly.yml +++ b/.github/workflows/ci_cd_nightly.yml @@ -95,10 +95,6 @@ jobs: pip install --upgrade pip pip install -r requirements/requirements_doc.txt - - name: Update PyMechanical version in examples for 251 - run: | - find ./examples -type f -name "*.py" -exec sed -i 's/version=242/version=251/g' {} + - - name: Build docs env: SPHINXOPTS: '-j auto' diff --git a/examples/00_tips/tips_01.py b/examples/00_tips/tips_01.py index ea0f2d15..d5b0bd9a 100644 --- a/examples/00_tips/tips_01.py +++ b/examples/00_tips/tips_01.py @@ -17,7 +17,7 @@ # %% # Embed mechanical and set global variables -app = mech.App(version=242) +app = mech.App() app.update_globals(globals()) print(app) diff --git a/examples/00_tips/tips_02.py b/examples/00_tips/tips_02.py index 4f3cb53b..2d6ce13e 100644 --- a/examples/00_tips/tips_02.py +++ b/examples/00_tips/tips_02.py @@ -18,7 +18,7 @@ # %% # Embed Mechanical and set global variables -app = mech.App(version=242) +app = mech.App() app.update_globals(globals()) print(app) diff --git a/examples/00_tips/tips_03.py b/examples/00_tips/tips_03.py index 0cf9baa0..fc66f8b4 100644 --- a/examples/00_tips/tips_03.py +++ b/examples/00_tips/tips_03.py @@ -17,7 +17,7 @@ # %% # Embed Mechanical and set global variables -app = mech.App(version=242) +app = mech.App() app.update_globals(globals()) print(app) diff --git a/examples/01_basic/bolt_pretension.py b/examples/01_basic/bolt_pretension.py index 1c7d1e36..af00e992 100644 --- a/examples/01_basic/bolt_pretension.py +++ b/examples/01_basic/bolt_pretension.py @@ -26,7 +26,7 @@ # %% # Embed mechanical and set global variables -app = mech.App(version=242) +app = mech.App() app.update_globals(globals()) print(app) diff --git a/examples/01_basic/fracture_analysis_contact_debonding.py b/examples/01_basic/fracture_analysis_contact_debonding.py index fcd52cc8..8fa63c29 100644 --- a/examples/01_basic/fracture_analysis_contact_debonding.py +++ b/examples/01_basic/fracture_analysis_contact_debonding.py @@ -25,7 +25,7 @@ # %% # Embed mechanical and set global variables -app = mech.App(version=242) +app = mech.App() app.update_globals(globals()) print(app) diff --git a/examples/01_basic/harmonic_acoustics.py b/examples/01_basic/harmonic_acoustics.py index 7384162d..8f4c3a60 100644 --- a/examples/01_basic/harmonic_acoustics.py +++ b/examples/01_basic/harmonic_acoustics.py @@ -25,7 +25,7 @@ # %% # Embed mechanical and set global variables -app = mech.App(version=242) +app = mech.App() app.update_globals(globals()) print(app) diff --git a/examples/01_basic/modal_acoustics_analysis.py b/examples/01_basic/modal_acoustics_analysis.py index 4de85c51..016ef076 100644 --- a/examples/01_basic/modal_acoustics_analysis.py +++ b/examples/01_basic/modal_acoustics_analysis.py @@ -31,7 +31,7 @@ # %% # Embed mechanical and set global variables -app = mech.App(version=242) +app = mech.App() app.update_globals(globals()) print(app) diff --git a/examples/01_basic/steady_state_thermal_analysis.py b/examples/01_basic/steady_state_thermal_analysis.py index 3460bd5a..ced2a00f 100644 --- a/examples/01_basic/steady_state_thermal_analysis.py +++ b/examples/01_basic/steady_state_thermal_analysis.py @@ -28,7 +28,7 @@ # %% # Embed mechanical and set global variables -app = mech.App(version=242) +app = mech.App() app.update_globals(globals()) print(app) diff --git a/examples/01_basic/topology_optimization_cantilever_beam.py b/examples/01_basic/topology_optimization_cantilever_beam.py index 2cb8c2f2..1ea9e165 100644 --- a/examples/01_basic/topology_optimization_cantilever_beam.py +++ b/examples/01_basic/topology_optimization_cantilever_beam.py @@ -22,7 +22,7 @@ # %% # Embed Mechanical and set global variables -app = mech.App(version=242) +app = mech.App() app.update_globals(globals()) print(app) diff --git a/examples/01_basic/valve.py b/examples/01_basic/valve.py index 5bbc9f6b..c6d8cbf5 100644 --- a/examples/01_basic/valve.py +++ b/examples/01_basic/valve.py @@ -22,7 +22,7 @@ # %% # Embed mechanical and set global variables -app = mech.App(version=242) +app = mech.App() app.update_globals(globals()) print(app) diff --git a/examples/02_technology_showcase/Rotor_Blade_Inverse_solve.py b/examples/02_technology_showcase/Rotor_Blade_Inverse_solve.py index 9d734399..afee0bb5 100644 --- a/examples/02_technology_showcase/Rotor_Blade_Inverse_solve.py +++ b/examples/02_technology_showcase/Rotor_Blade_Inverse_solve.py @@ -57,7 +57,7 @@ # %% # Embed mechanical and set global variables -app = mech.App(version=242) +app = mech.App() app.update_globals(globals()) print(app) diff --git a/examples/02_technology_showcase/conact_wear_simulation.py b/examples/02_technology_showcase/conact_wear_simulation.py index f4f6714a..4ecacf7f 100644 --- a/examples/02_technology_showcase/conact_wear_simulation.py +++ b/examples/02_technology_showcase/conact_wear_simulation.py @@ -37,7 +37,7 @@ # %% # Embed mechanical and set global variables -app = mech.App(version=242) +app = mech.App() app.update_globals(globals()) print(app) diff --git a/examples/02_technology_showcase/non_linear_analsis_rubber_boot_seal.py b/examples/02_technology_showcase/non_linear_analsis_rubber_boot_seal.py index 18abad72..5a2bc4f3 100644 --- a/examples/02_technology_showcase/non_linear_analsis_rubber_boot_seal.py +++ b/examples/02_technology_showcase/non_linear_analsis_rubber_boot_seal.py @@ -30,7 +30,7 @@ # %% # Embed mechanical and set global variables -app = mech.App(version=242) +app = mech.App() app.update_globals(globals()) print(app)