From d3520995211cd405c33f32c50a28fc9874b8317c Mon Sep 17 00:00:00 2001 From: Paul Garlick Date: Mon, 28 Oct 2019 12:36:04 +0000 Subject: add filename argument to file output function. --- makeBoundary | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'makeBoundary') diff --git a/makeBoundary b/makeBoundary index 3d0d8c2..432afb2 100755 --- a/makeBoundary +++ b/makeBoundary @@ -91,8 +91,8 @@ def plot_region(xdata, labelx, plt.plot(xdata, ydata3) plt.show() -def save_bc(): - with open(outputFilename, 'w') as f: +def save_bc(outputfile): + with open(outputfile, 'w') as f: f.write('{:6} {:>2} {:>2} {:>10}\n'.format('#x', 'c', 'q', 'h')) for ind_z, (xitem, zitem) in enumerate(zip(xin, zin)): panel_x = bisect.bisect(markers, xitem) @@ -328,4 +328,4 @@ for i, p in enumerate(panel): #print('A_i_west = {} A_i = {} A_i_east = {}'.format(A_extra, A_i[-1], A_i_east[-1])) -save_bc() +save_bc(outputFilename) -- cgit