Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Fixed bracket operator not working for steps within the pipeline. #45

Merged
merged 2 commits into from
Mar 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
### Fixed

* Fixed pipeline crashing in RMSE module because of wrong time index ([#39](https://github.com/KIT-IAI/pyWATTS/issues/39))
* Fixed bracket operator not working for steps within the pipeline ([#42](https://github.com/KIT-IAI/pyWATTS/issues/42))
* Fixed dict objects could not be passed to pipeline ([#43](https://github.com/KIT-IAI/pyWATTS/issues/43))


Expand Down
4 changes: 2 additions & 2 deletions pywatts/core/step_information.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def __init__(self, step: BaseStep, pipeline):
self.pipeline = pipeline

def __getitem__(self, item: str):
from pywatts.core.pipeline_step import PipelineStep
if isinstance(self.step, PipelineStep) or len(self.step.targets) > 1:
from pywatts.core.step import Step
if isinstance(self.step, Step):
self.step.last = False # TODO this should be a part of the step_factory
result_step = self.step.get_result_step(item)
id = self.pipeline.add(module=result_step, input_ids=[self.step.id])
Expand Down