wenjun99 commited on
Commit
a1a3469
·
verified ·
1 Parent(s): 12bbf65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -128,7 +128,11 @@ with tab1:
128
 
129
  # Step 3: Generate the robot script
130
  robot_script = []
131
- source_wells = robot_template['Source'].unique().tolist()[:33]
 
 
 
 
132
 
133
  st.write(f"Number of source wells: {len(source_wells)}")
134
  st.write(f"Number of binary columns: {len(df_sorted.columns[1:33])}")
 
128
 
129
  # Step 3: Generate the robot script
130
  robot_script = []
131
+ source_wells = robot_template['Source'].unique().tolist()
132
+ if len(source_wells) < 32:
133
+ source_wells += [f"Fake{i}" for i in range(32 - len(source_wells))]
134
+ source_wells = source_wells[:32]
135
+
136
 
137
  st.write(f"Number of source wells: {len(source_wells)}")
138
  st.write(f"Number of binary columns: {len(df_sorted.columns[1:33])}")