Skip to content

Commit 532129c

Browse files
committed
fix(run): updated the example of run based on the refactored workspace
1 parent 05be73d commit 532129c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

examples/run.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
RunListOptions,
1313
RunReadOptions,
1414
RunVariable,
15+
Workspace,
1516
)
1617

1718

@@ -138,15 +139,11 @@ def main():
138139
# Get workspace object - convert to the model type expected by run
139140
workspace_data = client.workspaces.read_by_id(args.workspace_id)
140141

141-
# Create the workspace object that run models expect
142-
from pytfe.models.workspace import Workspace
143-
144142
workspace = Workspace(
145143
id=workspace_data.id,
146144
name=workspace_data.name,
147145
organization=workspace_data.organization,
148146
execution_mode=workspace_data.execution_mode,
149-
project_id=workspace_data.project_id,
150147
tags=getattr(workspace_data, "tags", []),
151148
)
152149

0 commit comments

Comments
 (0)