ms_upload.py: fix room-row edit that cut the last character on reruns
Browse files
P64/Metascenes1_Spatiallm1_MasterSlam1/ms_upload.py
CHANGED
|
@@ -36,7 +36,7 @@ for room in sorted({d[0] for d in done}):
|
|
| 36 |
assert m, room
|
| 37 |
row = m.group(0)
|
| 38 |
row = re.sub(r", Metascenes1_[^,|]*", "", row) # drop an older entry
|
| 39 |
-
s = s.replace(m.group(0), row
|
| 40 |
anchor_tool = "| NeuCon | Mesh reconstruction (trimesh export) |"
|
| 41 |
tool = ("| MetaScenes-style asset replacement (own scripts in `P64/Metascenes1_Spatiallm1_MasterSlam1/`), adapted from "
|
| 42 |
"[MetaScenes](https://github.com/meta-scenes/MetaScenes) | Replaces each SpatialLM box with an Objaverse asset, "
|
|
|
|
| 36 |
assert m, room
|
| 37 |
row = m.group(0)
|
| 38 |
row = re.sub(r", Metascenes1_[^,|]*", "", row) # drop an older entry
|
| 39 |
+
s = s.replace(m.group(0), row.rstrip(" |") + f", {names} |")
|
| 40 |
anchor_tool = "| NeuCon | Mesh reconstruction (trimesh export) |"
|
| 41 |
tool = ("| MetaScenes-style asset replacement (own scripts in `P64/Metascenes1_Spatiallm1_MasterSlam1/`), adapted from "
|
| 42 |
"[MetaScenes](https://github.com/meta-scenes/MetaScenes) | Replaces each SpatialLM box with an Objaverse asset, "
|