aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Garlick <pgarlick@tourbillion-technology.com>2019-10-28 12:36:04 +0000
committerPaul Garlick <pgarlick@tourbillion-technology.com>2019-10-28 12:36:04 +0000
commitd3520995211cd405c33f32c50a28fc9874b8317c (patch)
treeb32c736f6ee999c57f94d214f0b6b46d81585cf0
parentfc095b1e330fc012521753e55e7448f84046eca6 (diff)
downloadfullSWOF-utils-d3520995211cd405c33f32c50a28fc9874b8317c.tar.gz
add filename argument to file output function.
-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)