Skip to content

from_input_file writing file without permissions #2139

@mishapadidar

Description

@mishapadidar

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions