galpy.potential.flatten

galpy.potential.flatten(Pot)[source]

NAME:

flatten

PURPOSE:

flatten a possibly nested list of Potential instances into a flat list

INPUT:

Pot - list (possibly nested) of Potential instances

OUTPUT:

Flattened list of Potential instances

HISTORY:

2018-03-14 - Written - Bovy (UofT)