Skip to content

Commit b17c00e

Browse files
authored
fix incorrect step access method in documentation (#3483)
1 parent 68719df commit b17c00e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/book/component-guide/experiment-trackers/comet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ You can find the URL of the Comet experiment linked to a specific ZenML run via
142142
from zenml.client import Client
143143

144144
last_run = client.get_pipeline("<PIPELINE_NAME>").last_run
145-
trainer_step = last_run.get_step("<STEP_NAME>")
145+
trainer_step = last_run.steps["<STEP_NAME>"]
146146
tracking_url = trainer_step.run_metadata["experiment_tracker_url"].value
147147
print(tracking_url)
148148
```

docs/book/component-guide/experiment-trackers/mlflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ You can find the URL of the MLflow experiment linked to a specific ZenML run via
168168
from zenml.client import Client
169169

170170
last_run = client.get_pipeline("<PIPELINE_NAME>").last_run
171-
trainer_step = last_run.get_step("<STEP_NAME>")
171+
trainer_step = last_run.steps["<STEP_NAME>"]
172172
tracking_url = trainer_step.run_metadata["experiment_tracker_url"].value
173173
print(tracking_url)
174174
```

docs/book/component-guide/experiment-trackers/wandb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ You can find the URL of the Weights & Biases experiment linked to a specific Zen
152152
from zenml.client import Client
153153

154154
last_run = client.get_pipeline("<PIPELINE_NAME>").last_run
155-
trainer_step = last_run.get_step("<STEP_NAME>")
155+
trainer_step = last_run.steps["<STEP_NAME>"]
156156
tracking_url = trainer_step.run_metadata["experiment_tracker_url"].value
157157
print(tracking_url)
158158
```

docs/book/how-to/popular-integrations/mlflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ You can find the URL to the MLflow experiment for a ZenML run:
7171

7272
```python
7373
last_run = client.get_pipeline("<PIPELINE_NAME>").last_run
74-
trainer_step = last_run.get_step("<STEP_NAME>")
74+
trainer_step = last_run.steps["<STEP_NAME>"]
7575
tracking_url = trainer_step.run_metadata["experiment_tracker_url"].value
7676
```
7777

0 commit comments

Comments
 (0)