Skip to content
Snippets Groups Projects
Commit 6f5fd4e8 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

test

parent b0a600ce
No related branches found
No related tags found
No related merge requests found
...@@ -145,8 +145,8 @@ def _main(): ...@@ -145,8 +145,8 @@ def _main():
outputPartMat = npmat_appendrow(np.mat([partLine1, partLine2, partLineEmpty, partLineEmpty]), outputPartMat) outputPartMat = npmat_appendrow(np.mat([partLine1, partLine2, partLineEmpty, partLineEmpty]), outputPartMat)
# Ok. Enjoy! # Ok. Enjoy!
materialFileName = fname[:-4] + '-材料表.csv' materialFileName = fname[:-4] + '-(材料表).csv'
partFileName = fname[:-4] + '-下料表.csv' partFileName = fname[:-4] + '-(下料表).csv'
np.savetxt(materialFileName, outputMaterialMat, fmt='%s', delimiter=',') np.savetxt(materialFileName, outputMaterialMat, fmt='%s', delimiter=',')
np.savetxt(partFileName, outputPartMat, fmt='%s', delimiter=',') np.savetxt(partFileName, outputPartMat, fmt='%s', delimiter=',')
......
...@@ -69,7 +69,7 @@ def _main(): ...@@ -69,7 +69,7 @@ def _main():
# Force windows NT use Linux LF. M$ office don't like CRLF csv. # Force windows NT use Linux LF. M$ office don't like CRLF csv.
msg = '序号,,,套数,单套数量,零件名称,材料规格,参数A,参数B,参数C,长度,单件重,备注\n' + csv_buf.getvalue().replace('\r\n', '\n') msg = '序号,,,套数,单套数量,零件名称,材料规格,参数A,参数B,参数C,长度,单件重,备注\n' + csv_buf.getvalue().replace('\r\n', '\n')
f.write(beta2alpha.csv_beta2alpha(msg)) f.write(beta2alpha.csv_beta2alpha(msg))
with open(output_prefix + '-缺失零件.csv', 'w+') as f: with open(output_prefix + '-(缺失图纸材料表).csv', 'w+') as f:
# Force windows NT use Linux LF. M$ office don't like CRLF csv. # Force windows NT use Linux LF. M$ office don't like CRLF csv.
f.write('\n'.join(missing_parts)) f.write('\n'.join(missing_parts))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment