Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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])}")
|