diff --git a/examples/tutorials/tuto_plot_gallery_fusion_machines.py b/examples/tutorials/tuto_plot_gallery_fusion_machines.py index 20fbfab7b..2ecb2261a 100644 --- a/examples/tutorials/tuto_plot_gallery_fusion_machines.py +++ b/examples/tutorials/tuto_plot_gallery_fusion_machines.py @@ -15,25 +15,25 @@ # `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 # 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()