def write(file_path, new_contents):

    with open(file_path, "wb") as f:
        return f.write(new_contents)
dL_dpsi1 - NxM
dataset/ETHPy150Open haesken/dftools/lib/dftlib.py/write--crossover with--dataset/ETHPy150Open SheffieldML/GPy/GPy/kern/src/psi_comp/ssrbf_psi_comp.py/_psi1compDer