aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmakeBoundary6
1 files changed, 3 insertions, 3 deletions
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)