galpy.potential.flatten¶
- galpy.potential.flatten(Pot)[source]¶
Flatten a possibly nested list of Potential instances into a flat list.
- Parameters:
Pot (list or Potential instance) – List (possibly nested) of Potential instances.
- Returns:
Flattened list of Potential instances.
- Return type:
list
Notes
2018-03-14 - Written - Bovy (UofT).