@@ -985,14 +985,9 @@ def compute_normalized_incident_irradiance_moteki_kondo(
985985 - sigma_hat
986986 - tau_best
987987 and ideally fit_start / fit_stop.
988- h : float, optional
989- Sampling interval. Required if `t` is not provided.
990- t : array-like, optional
991- Explicit time axis to evaluate on. If provided, this is used directly.
992- n_samples : int, optional
993- If `t` is not provided, use this many samples starting at 0 with spacing `h`.
994- If omitted, and `fit_start` / `fit_stop` are present in sigma_out, the function
995- evaluates only over the fitted window [fit_start, fit_stop).
988+ t_vals : 1D array-like, optional
989+ Explicit time axis (same units as tau_best and sigma_hat). If None,
990+ defaults to 0–39.6 µs at 0.4 µs spacing.
996991 sample_dim : str, default "time"
997992 Name of the returned sample dimension.
998993
@@ -1006,8 +1001,8 @@ def compute_normalized_incident_irradiance_moteki_kondo(
10061001 if "tau_best" not in sigma_out :
10071002 raise ValueError ("sigma_out must contain 'tau_best'." )
10081003
1009- sigma_hat = float (np .asarray (sigma_out ["sigma_hat" ].values ))
1010- tau_best = float (np .asarray (sigma_out ["tau_best" ].values ))
1004+ sigma_hat = float (np .asarray (sigma_out ["sigma_hat" ].item () ))
1005+ tau_best = float (np .asarray (sigma_out ["tau_best" ].item () ))
10111006
10121007 if not np .isfinite (sigma_hat ) or sigma_hat <= 0 :
10131008 raise ValueError (f"Invalid sigma_hat={ sigma_hat } ." )
0 commit comments