environmentaltools.common.npy
- environmentaltools.common.npy(file_name: str)[source]
Read data from NumPy binary file (.npy).
Loads numpy array or pickled data from .npy file format, with fallback to pickle loading for complex objects.
- Parameters:
file_name (str) – Path to .npy file (extension added automatically if missing).
- Returns:
Loaded numpy array or dictionary if pickled object.
- Return type:
np.ndarray or dict