I made a function for creating a 3D matrix and tried to run it in the pyCahrm. However, it throws a ValueError like this.
diff_matrix = np.zeros((nyear, nlin