Compare commits

...

1 Commits

Author SHA1 Message Date
ben
23ea53b1f5 2d-arrary-support 2026-03-04 14:58:23 -05:00
3 changed files with 4 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 130 B

View File

@ -88,7 +88,10 @@ def _check_dataset_compatibility(dataset, plot_type: str) -> tuple[bool, str]:
# Check if we can access sample data (basic test)
try:
sample_data = dataset[0] if hasattr(dataset, "__getitem__") else None
if sample_data is None or len(sample_data) < 32:
if sample_data is None:
return False, "Insufficient sample data for spectrogram (need at least 32 points)"
n_pts = sample_data.shape[-1] if hasattr(sample_data, "shape") and sample_data.ndim > 1 else len(sample_data)
if n_pts < 32:
return False, "Insufficient sample data for spectrogram (need at least 32 points)"
except Exception:
# If we can't access data, we'll rely on synthetic data generation