Spaces:
Runtime error
Runtime error
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -92,7 +92,7 @@ def aggregate_data_optimized(df_a, df_b, uuid_col_name, ref_col_name, exclude_co
|
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
-
def updateStreamAnalysisFast(client, new_data, stream_id, branch_name, geometryGroupPath=None, match_by_id="", return_original=False):
|
| 96 |
if geometryGroupPath is None:
|
| 97 |
geometryGroupPath = ["@Speckle", "Geometry"]
|
| 98 |
|
|
@@ -119,7 +119,7 @@ def updateStreamAnalysisFast(client, new_data, stream_id, branch_name, geometryG
|
|
| 119 |
|
| 120 |
# Send updated objects back to Speckle
|
| 121 |
new_objects_raw_speckle_id = operations.send(base=res, transports=[transport])
|
| 122 |
-
commit_id = client.commit.create(stream_id=stream_id, branch_name=branch_name, object_id=new_objects_raw_speckle_id, message=
|
| 123 |
print("commit created")
|
| 124 |
if return_original:
|
| 125 |
return objects_raw # as back-up
|
|
|
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
+
def updateStreamAnalysisFast(client, new_data, stream_id, branch_name, geometryGroupPath=None, match_by_id="", return_original=False, comm_message=""):
|
| 96 |
if geometryGroupPath is None:
|
| 97 |
geometryGroupPath = ["@Speckle", "Geometry"]
|
| 98 |
|
|
|
|
| 119 |
|
| 120 |
# Send updated objects back to Speckle
|
| 121 |
new_objects_raw_speckle_id = operations.send(base=res, transports=[transport])
|
| 122 |
+
commit_id = client.commit.create(stream_id=stream_id, branch_name=branch_name, object_id=new_objects_raw_speckle_id, message=comm_message + "#+SourceCommit: "+latest_commit.id)
|
| 123 |
print("commit created")
|
| 124 |
if return_original:
|
| 125 |
return objects_raw # as back-up
|