load¶
-
gala.potential.
load
(f, module=None)[source]¶ Read a potential specification file and return a
PotentialBase
object instantiated with parameters specified in the spec file.Parameters: f : str, file_like
A block of text, filename, or file-like object to parse and read a potential from.
module : namespace (optional)