Skip to content

Commit

Permalink
Fixed bug in full_assembly_report
Browse files Browse the repository at this point in the history
  • Loading branch information
Zulko committed Sep 20, 2018
1 parent 56916cc commit 1949532
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ nosetests.xml
.mr.developer.cfg
.project
.pydevproject
.vscode

# Temp files

Expand Down
6 changes: 4 additions & 2 deletions dnacauldron/reports/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ def full_assembly_plan_report(assembly_plan, target, part_records=None,
f.write("construct, parts\n")
for f_ in root._all_files:
if f_._name_no_extension == 'report':
name, _, _, parts = f_.read('r').split("\n")[1].split(",")
f.write("\n" + ",".join([name] + parts.split(" & ")))
first_row = f_.read('r').split("\n")[1].split(",")
if len(first_row) == 4:
name, _, _, parts = first_row
f.write("\n" + ",".join([name] + parts.split(" & ")))

return errored_assemblies, root._close()

0 comments on commit 1949532

Please sign in to comment.