Skip to content

Commit

Permalink
Bump to openfoam9
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhankoral committed Nov 2, 2023
1 parent 1d66f71 commit 8fe75a7
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,22 +179,26 @@ def automate_function(
result = Base()
result.data = [result_mesh, domain_corner_lines, subdomain_corner_lines, [arrow_line, arrow, text]]

transport = ServerTransport(automate_context.automation_run_data.project_id, automate_context.speckle_client)
obj_id = operations.send(result, [transport])
result_branch_name = automate_context.automation_run_data.branch_name + "_result"
automate_context.speckle_client.branch.create(
automate_context.automation_run_data.project_id,
result_branch_name
)

# now create a commit on that branch with your updated data!
commit_id = automate_context.speckle_client.commit.create(
automate_context.automation_run_data.project_id,
obj_id,
result_branch_name,
message="Sent from Archaea.",
source_application='Archaea'
# transport = ServerTransport(automate_context.automation_run_data.project_id, automate_context.speckle_client)
# obj_id = operations.send(result, [transport])
# result_branch_name = automate_context.automation_run_data.branch_name + "_result"
# automate_context.speckle_client.branch.create(
# automate_context.automation_run_data.project_id,
# result_branch_name
# )

automate_context.create_new_version_in_project(
result,
"automate_result"
)
# now create a commit on that branch with your updated data!
# commit_id = automate_context.speckle_client.commit.create(
# automate_context.automation_run_data.project_id,
# obj_id,
# result_branch_name,
# message="Sent from Archaea.",
# source_application='Archaea'
# )

if count == 0:
# this is how a run is marked with a failure cause
Expand Down

0 comments on commit 8fe75a7

Please sign in to comment.