style: format to length 100

This commit is contained in:
2026-07-02 12:52:45 +02:00
parent 40b12c12db
commit dc6218e45f
23 changed files with 124 additions and 362 deletions
+4 -15
View File
@@ -69,15 +69,11 @@ class _SeedConfig:
SEED_CATALOGUE: dict[int, _SeedConfig] = {
# --- 1: single crystal, centred, compact, strong signal ----------------
1: _SeedConfig(
clusters=[
_ClusterParams(cx=0.50, cy=0.50, ax=0.15, ay=0.15, theta=0.0, peak=120),
]
clusters=[_ClusterParams(cx=0.50, cy=0.50, ax=0.15, ay=0.15, theta=0.0, peak=120)]
),
# --- 2: single crystal, off-centre, slightly elongated -----------------
2: _SeedConfig(
clusters=[
_ClusterParams(cx=0.25, cy=0.70, ax=0.12, ay=0.18, theta=0.35, peak=90),
]
clusters=[_ClusterParams(cx=0.25, cy=0.70, ax=0.12, ay=0.18, theta=0.35, peak=90)]
),
# --- 3: two well-separated crystals ------------------------------------
3: _SeedConfig(
@@ -111,11 +107,7 @@ SEED_CATALOGUE: dict[int, _SeedConfig] = {
def _gaussian_cluster(
ix: np.ndarray,
iy: np.ndarray,
p: _ClusterParams,
n_x: int,
n_y: int,
ix: np.ndarray, iy: np.ndarray, p: _ClusterParams, n_x: int, n_y: int
) -> np.ndarray:
"""Return a 2-D Gaussian signal array for one cluster.
@@ -135,10 +127,7 @@ def _gaussian_cluster(
return p.peak * np.exp(-2.0 * (dx_r**2 + dy_r**2))
def generate_no_beam_scan_result(
request: RasterGridRequest,
seed: int | None = None,
) -> ScanResult:
def generate_no_beam_scan_result(request: RasterGridRequest, seed: int | None = None) -> ScanResult:
"""Build a synthetic ScanResult for no-beam / offline operation.
Parameters