save

gala.potential.save(potential, f)[source]

Write a PotentialBase object out to a text (YAML) file.

Parameters:

potential : PotentialBase

The instantiated PotentialBase object.

f : str, file_like

A filename or file-like object to write the input potential object to.