You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
450 B
14 lines
450 B
import numpy as np
|
|
import os
|
|
import glob
|
|
from pathlib import Path
|
|
|
|
path = Path(r"d:\CARLA\CARLA_0.9.16\PythonAPI\Fox\Shenron_debug\logs\lidar")
|
|
files = sorted(list(path.glob('*.npy')))[:5]
|
|
|
|
for f in files:
|
|
data = np.load(f)
|
|
print(f"\n[FILE: {f.name} | SHAPE: {data.shape}]")
|
|
for i in range(data.shape[1]):
|
|
col = data[:, i]
|
|
print(f" Col {i}: min={col.min():4.3f} | max={col.max():4.3f} | unique={len(np.unique(col)):5d}")
|