PotentialSymmetry#
- class gala.potential.potential.PotentialSymmetry[source]#
Bases:
ABCBase class for potential coordinate symmetries.
This abstract base class defines the interface for converting between symmetry-specific coordinates and the Cartesian coordinates used internally by potential calculations.
Attributes Summary
Tuple of coordinate names for this symmetry.
Methods Summary
to_cartesian(**coords)Convert symmetry coordinates to Cartesian coordinates.
validate_coords(**coords)Validate that the provided coordinates are appropriate for this symmetry.
Attributes Documentation
- coord_names#
Tuple of coordinate names for this symmetry.
Methods Documentation
- abstractmethod to_cartesian(**coords)[source]#
Convert symmetry coordinates to Cartesian coordinates.
- Parameters:
- **coords
Coordinate values in the symmetry system. Keys must match the names in
coord_names.
- Returns:
- xyz
Quantity Cartesian coordinates with shape (3, n_points). If inputs are unitless, output will also be unitless.
- xyz
- validate_coords(**coords)[source]#
Validate that the provided coordinates are appropriate for this symmetry.
- Parameters:
- **coords
Coordinate keyword arguments to validate.
- Raises:
ValueErrorIf the coordinates are invalid or incomplete.