Skip to content

Commit a347128

Browse files
committed
Update warning with detail about unstable data.
1 parent dc5b1f1 commit a347128

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

eitprocessing/features/pixel_breath.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,11 @@ def find_pixel_breaths( # noqa: C901, PLR0912, PLR0915
228228
if len(peak_distances) == 0:
229229
# no peaks found, skip pixel
230230
warnings.warn(
231-
f"Skipping pixel ({row}, {col}) because no cross correlation peak found.",
231+
(
232+
f"Skipping pixel ({row}, {col}) because no cross correlation peak found. "
233+
"This may be due to unstable (pixel) impedance. "
234+
"This algorithm does not handle unstable impedance data well."
235+
),
232236
RuntimeWarning,
233237
stacklevel=2,
234238
)

0 commit comments

Comments
 (0)