save#

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

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

Parameters:
potentialPotentialBase

The instantiated PotentialBase object.

fstr, file_like

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