Search before asking
Component
Other
Feature
Most of the pure transform ( classes which takes input_folder and output_folder as args ) implements the same initialization and parameter handling logic -
|
def __init__(self, **kwargs): |
To keep it DRY - there is a base class created -
Here is the example Transform which implements it :
|
# Licensed under the Apache License, Version 2.0 (the “License”); |
We should update all the transform to avoid duplicating the code.
Are you willing to submit a PR?
Search before asking
Component
Other
Feature
Most of the pure transform ( classes which takes
input_folderandoutput_folderas args ) implements the same initialization and parameter handling logic -data-prep-kit/transforms/universal/filter/dpk_filter/runtime.py
Line 33 in 747e362
To keep it
DRY- there is a base class created -data-prep-kit/data-processing-lib/python/src/data_processing/runtime/pure_python/transform.py
Line 21 in 747e362
Here is the example Transform which implements it :
data-prep-kit/transforms/code/proglang_select/dpk_proglang_select/runtime.py
Line 3 in 747e362
We should update all the transform to avoid duplicating the code.
Are you willing to submit a PR?