Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
download benchtop protocol bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
risufaj committed Nov 22, 2018
1 parent be7d1a3 commit 0f9ac1b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pooling/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ def download_benchtop_protocol(self, request):
ws.write(row_num, i, column, font_style_bold)
ws.col(i).width = 7000 # Set column width

lib_index = 0
for index,record in enumerate(records):
row_num += 1
row_idx = str(row_num + 1)
Expand All @@ -266,7 +267,9 @@ def download_benchtop_protocol(self, request):
if isinstance(record, Library):
concentration = record.concentration_facility
#mean_fragment_size = record.mean_fragment_size
mean_fragment_size = bp[index]
#mean_fragment_size = bp[index]
mean_fragment_size = bp[lib_index]
lib_index += 1
else:
concentration = record.librarypreparation.concentration_library
mean_fragment_size = \
Expand Down Expand Up @@ -327,7 +330,7 @@ def download_benchtop_protocol(self, request):
# Add rows to spreadsheet
for i in range(len(row)):
ws.write(row_num, i, row[i], font_style)

lib_index = 0
# Write Sum µl EB
col_ul_eb = col_letters[11]
formula = 'SUM({}{}:{}{})'.format(
Expand Down

0 comments on commit 0f9ac1b

Please sign in to comment.