update find unused wells
Browse files- DB_utls.py +4 -2
DB_utls.py
CHANGED
|
@@ -73,8 +73,10 @@ def find_unused_wells():
|
|
| 73 |
row = well[0] # A, B, C, ...
|
| 74 |
col = int(well[1:]) # 1, 2, ..., 12
|
| 75 |
return (row, col)
|
| 76 |
-
|
| 77 |
-
|
|
|
|
|
|
|
| 78 |
#print(empty_wells)
|
| 79 |
|
| 80 |
# close connection
|
|
|
|
| 73 |
row = well[0] # A, B, C, ...
|
| 74 |
col = int(well[1:]) # 1, 2, ..., 12
|
| 75 |
return (row, col)
|
| 76 |
+
if "well" in df.columns:
|
| 77 |
+
empty_wells = sorted(df["well"].tolist(), key=well_sort_key)
|
| 78 |
+
else:
|
| 79 |
+
empty_wells = []
|
| 80 |
#print(empty_wells)
|
| 81 |
|
| 82 |
# close connection
|