From 5cbbf7ccd8d6b45d8a40b820079c26a5f4e88987 Mon Sep 17 00:00:00 2001 From: Laura Mendoza Date: Tue, 21 Jan 2020 17:29:56 +0100 Subject: [PATCH 1/2] [doc] updated gallery tuto: bf #329 --- .../tutorials/tuto_plot_gallery_fusion_machines.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/tutorials/tuto_plot_gallery_fusion_machines.py b/examples/tutorials/tuto_plot_gallery_fusion_machines.py index 20fbfab7b..4dcbd73fb 100644 --- a/examples/tutorials/tuto_plot_gallery_fusion_machines.py +++ b/examples/tutorials/tuto_plot_gallery_fusion_machines.py @@ -15,20 +15,20 @@ # `tofu` provides a geometry helper function that allows creating a # configuration with a single call. # -# Calling with empty arguments results in a default configuration. At the time -# of writing, this is ITER. -# By printing the `config` object, a text representation of its components is -# printed. This allows inspecting -# component names, number of sections, color or visibility. +# Some configurations are pre-defined, for example ITER's configuration. +# +# By printing the `config` object created, a text representation of its +# components is printed. This allows inspecting the component names, number +# of sections, color or visibility. -config = tf.geom.utils.create_config() # create default configuration +config = tf.geom.utils.create_config("ITER") # create ITER configuration print(config) ############################################################################### # To get a list of all available built-in configs, one has to know some details # about `tofu`. Configurations can be accessed by names (ITER, WEST, JET, etc). -print(tf.geom.utils._DCONFIG_TABLE.keys()) +print(tf.geom.utils.get_available_config()) ############################################################################### # With that being said, let's create a gallery of the "top 3" fusion machines From e312f125631656cb9ffb87b2d012a2d55ed58531 Mon Sep 17 00:00:00 2001 From: Laura Mendoza Date: Fri, 24 Jan 2020 17:34:51 +0100 Subject: [PATCH 2/2] [doc] new aug geom --- examples/tutorials/tuto_plot_gallery_fusion_machines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/tutorials/tuto_plot_gallery_fusion_machines.py b/examples/tutorials/tuto_plot_gallery_fusion_machines.py index 4dcbd73fb..2ecb2261a 100644 --- a/examples/tutorials/tuto_plot_gallery_fusion_machines.py +++ b/examples/tutorials/tuto_plot_gallery_fusion_machines.py @@ -34,6 +34,6 @@ # With that being said, let's create a gallery of the "top 3" fusion machines # provided by `tofu` to accelerate diagnostic development. -for fusion_machine in ['ITER', 'WEST', 'JET', 'NSTX']: +for fusion_machine in ['ITER', 'WEST', 'JET', 'NSTX', 'AUG']: config = tf.geom.utils.create_config(fusion_machine) config.plot()