Fix the issue where was only the one split file in the CSV generator stuff
This commit is contained in:
+3
-3
@@ -12,7 +12,7 @@ def writeFile(directory, filename, filenameExtension, data, count):
|
||||
for row in data:
|
||||
output.writerow([row])
|
||||
csvfile.close()
|
||||
return "['%s', '%s-%s.iq8s'],"%(csvFilename, filename, count)
|
||||
return "{'csv':'%s', 'out':'%s-%s.iq8s'},"%(csvFilename, filename, count)
|
||||
|
||||
def main():
|
||||
directory = 'generated'
|
||||
@@ -24,7 +24,7 @@ def main():
|
||||
minLat = -90
|
||||
maxLat = 90
|
||||
# If the number of lat is less than the split it doesn't work
|
||||
splitNumber = 100
|
||||
splitNumber = 1000
|
||||
step = 0.1
|
||||
|
||||
try:
|
||||
@@ -64,7 +64,7 @@ def main():
|
||||
k += 1
|
||||
j = 0
|
||||
files = files[:-1]
|
||||
script.write('files = (%s)\n' % (files))
|
||||
script.write('files = [%s]\n' % (files))
|
||||
script.write('for file in files:\n')
|
||||
script.write(' t = threading.Thread(target=threadingCSV, args=(file,))\n')
|
||||
script.write(' t.start()\n')
|
||||
|
||||
Reference in New Issue
Block a user