Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /ruvnet_RuView /benchmarks /wiflow-std /remote /clean_v2.py
| import numpy as np, os | |
| d = os.path.expanduser('~/wiflow-std-bench/preprocessed_csi_data') | |
| csi = np.load(os.path.join(d, 'csi_windows.npy'), mmap_mode='r+') | |
| zeroed = 0 | |
| chunk = 4000 | |
| for i in range(0, len(csi), chunk): | |
| block = csi[i:i+chunk] | |
| finite = np.isfinite(block) | |
| bad = (~finite).any(axis=(1, 2)) | (np.abs(np.where(finite, block, 0)).max(axis=(1, 2)) > 1.5) | |
| if bad.any(): | |
| block[bad] = 0.0 | |
| zeroed += int(bad.sum()) | |
| csi.flush() | |
| print(f'zeroed {zeroed} corrupted windows entirely') | |
Xet Storage Details
- Size:
- 515 Bytes
- Xet hash:
- 9fa3b948cf4982ae47ce7c2472fe18d5412daf26546bd74a68505e4b3c67e52a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.