Skip to content

Commit

Permalink
Add legend point to vtk_to_speckle
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhankoral committed Oct 30, 2023
1 parent f0be32f commit e2cb650
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import os
import subprocess

from archaea.geometry.vector3d import Vector3d
from archaea.geometry.mesh import Mesh
from archaea_simulation.simulation_objects.domain import Domain
from archaea_simulation.speckle.vtk_to_speckle import vtk_to_speckle
Expand Down Expand Up @@ -139,7 +140,7 @@ def automate_function(
vtk_file = os.path.join(case_folder, 'postProcessing',
'cutPlaneSurface', '400', 'U_cutPlane.vtk')

result_mesh = vtk_to_speckle(vtk_file)
result_mesh = vtk_to_speckle(vtk_file, domain.center.move(Vector3d(domain.x / 2, -domain.y / 2, 0)))

result = Base()
result.data = [result_mesh]
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ packages = [{include = "src/speckle_automate_py"}]

[tool.poetry.dependencies]
python = "^3.10"
specklepy = "2.17.8"
specklepy = "2.17.9"
archaea-simulation = "1.1.26"

[tool.poetry.group.dev.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def test_function_run(automation_run_data: AutomationRunData, speckle_token: str
automate_sdk = run_function(
AutomationContext.initialize(automation_run_data, speckle_token),
automate_function,
FunctionInputs(wind_speed=10, wind_direction=45),
FunctionInputs(wind_speed=10, wind_direction=45, number_of_cpus=6),
)

assert automate_sdk.run_status == AutomationStatus.FAILED

0 comments on commit e2cb650

Please sign in to comment.