fusionsc.devices.w7x.CoilPack
- class fusionsc.devices.w7x.CoilPack(val=None, msgSize=1024, byReference=False)
 Set of coils that can be used to obtain W7-X specific configurations
Methods
  | 
Creates a new instance by either: - Allocating a new message of size msgSize (if val is None) - Storing a reference to the target (if byReference is set) - Copying the message from the given target (accepts Cap'n'proto messages, YAML strings, lists, dicts, and NumPy arrays)  | 
  | 
Note Has asynchronous variant '.asnc(...)' that returns Promise[...]  | 
  | 
Returns a new coil pack consisting of precomputed fields Note Has asynchronous variant '.asnc(...)' that returns Promise[...]  | 
  | 
Visualizes the contents in a graph structure.  | 
  | 
Loads an instance of this class from a previously written archive file.  | 
  | 
Prints a tree version of this object.  | 
  | 
Saves the object into an archive file (including all referenced data)  | 
  | 
Prints the contents as block-structured YAML  | 
  | 
Note Has asynchronous variant '.asnc(...)' that returns Promise[...]  | 
Attributes
  | 
Underlying Cap'n'proto struct (usually a builder type).  | 
  | 
Methods
- CoilPack.__init__(val=None, msgSize=1024, byReference=False)
 Creates a new instance by either: - Allocating a new message of size msgSize (if val is None) - Storing a reference to the target (if byReference is set) - Copying the message from the given target (accepts Cap’n’proto messages,
YAML strings, lists, dicts, and NumPy arrays)
- CoilPack.cache(filename) Any
 Note Has asynchronous variant ‘.asnc(…)’ that returns Promise[…]
- CoilPack.computeFields(grid) CoilPack
 Returns a new coil pack consisting of precomputed fields Note Has asynchronous variant ‘.asnc(…)’ that returns Promise[…]
- CoilPack.graph(**kwargs)
 Visualizes the contents in a graph structure. Requires graphviz
- CoilPack.load() Any
 Loads an instance of this class from a previously written archive file.
Note Has asynchronous variant ‘.asnc(…)’ that returns Promise[…]
- CoilPack.ptree()
 Prints a tree version of this object. Requires the printree library.
- CoilPack.save(filename) Any
 Saves the object into an archive file (including all referenced data)
Note Has asynchronous variant ‘.asnc(…)’ that returns Promise[…]
- CoilPack.toYaml(flow=False)
 Prints the contents as block-structured YAML
- CoilPack.upload() Any
 Note Has asynchronous variant ‘.asnc(…)’ that returns Promise[…]