From df929ae27bfac2f9ebef7f9a09c83deb99bdf729 Mon Sep 17 00:00:00 2001 From: Sebastien Morais Date: Wed, 7 Feb 2024 09:07:55 +0100 Subject: [PATCH] MISC: fix examples --- examples/00-EDB/index.rst | 2 +- examples/03-Maxwell/Maxwell2D_DCConduction.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/00-EDB/index.rst b/examples/00-EDB/index.rst index 1577b1ccb2d..b989ef9ede4 100644 --- a/examples/00-EDB/index.rst +++ b/examples/00-EDB/index.rst @@ -19,7 +19,7 @@ electronics desktop user interface. 06_Advanced_EDB.py 09_Configuration.py 10_GDS_workflow.py - 11_post_layout_parametrization.py + 11_post_layout_parameterization.py 12_edb_sma_connector_on_board.py 13_edb_create_component.py 14_edb_create_parametrized_design.py diff --git a/examples/03-Maxwell/Maxwell2D_DCConduction.py b/examples/03-Maxwell/Maxwell2D_DCConduction.py index b072e2d8c10..4f1ab90b276 100644 --- a/examples/03-Maxwell/Maxwell2D_DCConduction.py +++ b/examples/03-Maxwell/Maxwell2D_DCConduction.py @@ -115,6 +115,7 @@ # # Create R. vs. material report. +# + variations = {"MaterialIndex": ["All"], "MaterialThickness": ["Nominal"]} report = m2d.post.create_report( expressions="1/Matrix1.G(1V,1V)/MaterialThickness", @@ -135,6 +136,7 @@ for i in range(len(d.primary_sweep_values)): material_index_vs_resistance.append([str(d.primary_sweep_values[i]), str(resistence[i])]) colors.append([None, None]) +# - # ## Field overlay # @@ -179,16 +181,14 @@ animated.azimuth_angle = 0 animated.animate() -################################################################################ -# Export model picture -# ~~~~~~~~~~~~~~~~~~~~ +# ## Export model picture +# # Export model picture. model_picture = m2d.post.export_model_picture() -################################################################################ -# Generate PDF report -# ~~~~~~~~~~~~~~~~~~~ +# ## Generate PDF report +# # Generate a PDF report with output of simulation. pdf_report = AnsysReport(project_name=m2d.project_name, design_name=m2d.design_name, version="2023.2")