Commit ac6aa7b6 authored by Tung, Chi-Huan's avatar Tung, Chi-Huan
Browse files

fixed output path

parent 973991ea
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -132,12 +132,12 @@ def fit(initial_guess, file_name):
    ax.set_ylabel(r'$I(QD)$',fontsize=20)
    ax.tick_params(direction='in', axis='both', which='both', labelsize=18, pad=10)
    ax.legend(fontsize=16,frameon=False)
    plt.savefig('/src/output.png')
    plt.savefig('output.png')
    # plt.show()

    # print the result
    print('Printing results to output.txt')
    with open('/src/output.txt', 'a') as f:
    with open('output.txt', 'a') as f:
        for param in result.params.values():
            if param.stderr is None: 
                string = "%s:  %f +/- undetermined (init = %f)" % (param.name, param.value, param.init_value)