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