save_np
- ssapy.io.save_np(filename_, data_)[source][source]
Save a NumPy array to a binary file.
This function saves a NumPy array to a file in .npy format. If the file cannot be created or written to, it handles common exceptions and prints an error message.
Parameters:
Returns:
- None
The function does not return any value. It handles exceptions internally and prints error messages if any issues occur.
Examples:
>>> arr = np.array([1, 2, 3, 4, 5]) >>> save_np('array.npy', arr)