[BUG]: Validation failure of multiple pre-processing steps with different input data types requirement #339
2 changed files with 8 additions and 2 deletions
1
docs/changes/newsfragments/339.bugfix
Normal file
1
docs/changes/newsfragments/339.bugfix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Fix validation failure of multiple Preprocessors with different input data types requirement by `Synchon Mandal`_
|
||||||
|
|
@ -136,9 +136,14 @@ class MarkerCollection:
|
||||||
"Validating Preprocessor: "
|
"Validating Preprocessor: "
|
||||||
f"{preprocessor.__class__.__name__}"
|
f"{preprocessor.__class__.__name__}"
|
||||||
)
|
)
|
||||||
|
# Copy existing data types
|
||||||
|
old_t_data = t_data.copy()
|
||||||
|
logger.info(f"Preprocessor input type: {t_data}")
|
||||||
# Validate preprocessor
|
# Validate preprocessor
|
||||||
t_data = preprocessor.validate(t_data)
|
new_t_data = preprocessor.validate(old_t_data)
|
||||||
logger.info(f"Preprocess output type: {t_data}")
|
# Set new data types
|
||||||
|
t_data = list(set(old_t_data) | set(new_t_data))
|
||||||
|
logger.info(f"Preprocessor output type: {t_data}")
|
||||||
|
|
||||||
for marker in self._markers:
|
for marker in self._markers:
|
||||||
logger.info(f"Validating Marker: {marker.name}")
|
logger.info(f"Validating Marker: {marker.name}")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue