An Equilibrium object can be loaded from a vmec input file using the from_input_file(path) method. When path is a vmec input file, an InputReader object will attempt to write a Desc input file. One problem that can appear here is that a user may not have the necessary permissions to write the desc input file. Another problem, is that a user may not want to code to write any files, not to mention non-temporary files. Concretely, we could fix this by writing desc input file to a temporary file, or we could write to a string and read the string later on as needed.
A second minor issue occurs with using explicit print statements instead of using a logger or a verbose flag. This one is easy to fix.
An
Equilibriumobject can be loaded from a vmec input file using thefrom_input_file(path)method. Whenpathis a vmec input file, anInputReaderobject will attempt to write a Desc input file. One problem that can appear here is that a user may not have the necessary permissions to write the desc input file. Another problem, is that a user may not want to code to write any files, not to mention non-temporary files. Concretely, we could fix this by writing desc input file to a temporary file, or we could write to a string and read the string later on as needed.A second minor issue occurs with using explicit print statements instead of using a logger or a verbose flag. This one is easy to fix.