fix(debug log): avoinding spamming warning log with debug log

This commit is contained in:
CarolinePascal
2026-07-03 13:37:02 +02:00
parent 98052e5f6e
commit 67b18d87b2
+3 -2
View File
@@ -519,9 +519,10 @@ def compute_episode_stats(
if features[key]["dtype"] in {"string", "language"}:
continue
# Features with zero-width shapes are skipped (no data to compute stats on)
if any(d == 0 for d in features[key].get("shape", ())):
logging.warning(
f"Skipping stats for feature '{key}' with a zero-width shape {features[key]['shape']}."
logging.debug(
f"Skipping statistics computation for feature '{key}' with a zero-width shape {features[key]['shape']}."
)
continue