Skip to content

Commit

Permalink
renamed DeleteOutOfRangeValues to OutOfRangeValueFilter
Browse files Browse the repository at this point in the history
Signed-off-by: mollle <[email protected]>
  • Loading branch information
mollle committed Jan 15, 2025
1 parent c42247c commit be0bceb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
from .interval_filtering import IntervalFiltering
from .k_sigma_anomaly_detection import KSigmaAnomalyDetection
from .missing_value_imputation import MissingValueImputation
from .delete_out_of_range_values import DeleteOutOfRangeValues
from .delete_out_of_range_values import FilterOutOfRangeValues
from .flatline_filter import FlatlineFilter
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
)


class DeleteOutOfRangeValues(DataManipulationBaseInterface):
class OutOfRangeValueFilter(DataManipulationBaseInterface):
"""
Filters data in a DataFrame by checking the 'Value' column against expected ranges for specified TagNames.
Logs events when 'Value' exceeds the defined ranges for any TagName and deletes the rows.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


from src.sdk.python.rtdip_sdk.pipelines.data_quality.data_manipulation.spark.delete_out_of_range_values import (
DeleteOutOfRangeValues,
FilterOutOfRangeValues,
)


Expand Down Expand Up @@ -41,7 +41,7 @@ def test_basic(spark, test_data):
"A2PS64V0J.:ZUX09R": {"min": 2, "max": 4, "inclusive_bounds": True},
"Tag2": {"min": 1, "max": 5, "inclusive_bounds": False},
}
manipulator = DeleteOutOfRangeValues(test_data, tag_ranges)
manipulator = FilterOutOfRangeValues(test_data, tag_ranges)

rows_to_remove = [
{
Expand Down Expand Up @@ -74,7 +74,7 @@ def test_large_dataset(spark):
tag_ranges = {
"value_range": {"min": 2, "max": 4, "inclusive_bounds": True},
}
manipulator = DeleteOutOfRangeValues(df, tag_ranges)
manipulator = FilterOutOfRangeValues(df, tag_ranges)

rows_to_remove = [
{
Expand Down

0 comments on commit be0bceb

Please sign in to comment.