save¶
-
gala.potential.save(potential, f)[source]¶ Write a
PotentialBaseobject out to a text (YAML) file.Parameters: potential :
PotentialBaseThe instantiated
PotentialBaseobject.f : str, file_like
A filename or file-like object to write the input potential object to.