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 Common errors
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
Warnings
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.
Imports
- FXrays
from fxrays import FXrays - compute_extremal_rays
from fxrays import compute_extremal_rays
Quickstart
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)