desc.io.InputReader
- class desc.io.InputReader(cl_args=None)[source]
Reads command line arguments and parses input files.
- Parameters:
cl_args (None, str, or list (Default = None)) – command line arguments to parse
Methods
parse_args
([cl_args])Parse command line arguments.
parse_inputs
([fname])Read input from DESC input file; converts from VMEC input if necessary.
parse_vmec_inputs
(vmec_fname[, threshold])Parse a VMEC input file into a dictionary of DESC inputs.
vmec_to_desc_input
(vmec_fname, desc_fname)Convert a VMEC input file to an equivalent DESC input file.
write_desc_input
(filename, inputs[, header])Generate a DESC input file from a dictionary of parameters.
Attributes
parsed namespace of all command line arguments.
Path to input file.
List of dictionaries with values from input file.
Path to output file.