Skip to content
Merged
Changes from all 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
16 changes: 8 additions & 8 deletions examples/tutorials/tuto_plot_gallery_fusion_machines.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()