FXrays

raw JSON →
1.3.6 verified Fri May 01 auth: no python

Computes extremal rays with filtering for 3-manifolds. Supports Python >=3.7. Current version: 1.3.6 (released 2025). Maintenance-mode releases with no user-facing changes.

pip install fxrays
error ModuleNotFoundError: No module named 'fxrays'
cause Library not installed or imported incorrectly.
fix
Run: pip install fxrays
error AttributeError: module 'fxrays' has no attribute 'fxrays'
cause Wrong import path. The class is FXrays with capital letters.
fix
Use: from fxrays import FXrays
gotcha The function compute_extremal_rays expects a 2D numpy array with shape (n_points, n_dims). Passing a list of lists may cause unexpected behavior.
fix Convert input to numpy array: np.array(points)
gotcha The class name is FXrays (capital F, capital X). Importing as fxrays.FXrays is correct, not fxrays.FXRays or fxrays.fxrays.
fix Use exactly: from fxrays import FXrays
deprecated Python 3.6 and below are not supported. The package requires Python >=3.7.
fix Upgrade Python to 3.7 or later.

Basic usage to compute extremal rays from a set of points.

from fxrays import compute_extremal_rays
import numpy as np

# Generate random points (example usage)
points = np.random.rand(10, 3)
rays = compute_extremal_rays(points)
print(rays)