Mercurial > repos > ufz > saqc
diff test_macros.xml @ 1:724dcbb35c9a draft default tip
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/blob/main/tools/saqc/ commit b674325a07b6e964e25cd65967149018dc2671fe
| author | ufz |
|---|---|
| date | Sat, 16 Aug 2025 11:43:23 +0000 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test_macros.xml Sat Aug 16 11:43:23 2025 +0000 @@ -0,0 +1,3539 @@ +<?xml version="1.0" encoding="utf-8"?> +<macros> + <xml name="config_tests"> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="breaks" /> + <conditional name="method_cond"> + <param name="method_select" value="flagIsolated" /> + <param name="field" value="test_variable" /> + <param name="gap_window" value="default_string" /> + <param name="group_window" value="default_string" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagIsolated\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="breaks" /> + <conditional name="method_cond"> + <param name="method_select" value="flagJumps" /> + <param name="field" value="test_variable" /> + <param name="thresh" value="1.0" /> + <param name="window" value="default_string" /> + <param name="min_periods" value="1" /> + <param name="flag" value="255.0" /> + <param name="dfilter" value="-inf" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagJumps\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="breaks" /> + <conditional name="method_cond"> + <param name="method_select" value="flagMissing" /> + <param name="field" value="test_variable" /> + <param name="flag" value="255.0" /> + <param name="dfilter" value="-inf" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagMissing\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="changepoints" /> + <conditional name="method_cond"> + <param name="method_select" value="assignChangePointCluster" /> + <param name="field" value="test_variable" /> + <param name="stat_func" value="default_string" /> + <param name="thresh_func" value="default_string" /> + <param name="window" value="default_string" /> + <param name="min_periods" value="1" /> + <param name="reduce_window" value="default_string" /> + <param name="reduce_func" value="<function ChangepointsMixin.<lambda> at 0x714978652160>" /> + <param name="model_by_resids" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignChangePointCluster\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="changepoints" /> + <conditional name="method_cond"> + <param name="method_select" value="assignChangePointCluster" /> + <param name="field" value="test_variable" /> + <param name="stat_func" value="default_string" /> + <param name="thresh_func" value="default_string" /> + <param name="window" value="a_string" /> + <param name="min_periods" value="1" /> + <param name="reduce_window" value="default_string" /> + <param name="reduce_func" value="<function ChangepointsMixin.<lambda> at 0x714978652160>" /> + <param name="model_by_resids" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignChangePointCluster\((?=.*window\s*=\s*["']a_string["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="changepoints" /> + <conditional name="method_cond"> + <param name="method_select" value="assignChangePointCluster" /> + <param name="field" value="test_variable" /> + <param name="stat_func" value="default_string" /> + <param name="thresh_func" value="default_string" /> + <param name="window" value="default_string" /> + <param name="min_periods" value="123" /> + <param name="reduce_window" value="default_string" /> + <param name="reduce_func" value="<function ChangepointsMixin.<lambda> at 0x714978652160>" /> + <param name="model_by_resids" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignChangePointCluster\((?=.*min_periods\s*=\s*(?:["']?123["']?)).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="changepoints" /> + <conditional name="method_cond"> + <param name="method_select" value="flagChangePoints" /> + <param name="field" value="test_variable" /> + <param name="stat_func" value="default_string" /> + <param name="thresh_func" value="default_string" /> + <param name="window" value="default_string" /> + <param name="min_periods" value="1" /> + <param name="reduce_window" value="default_string" /> + <param name="reduce_func" value="<function ChangepointsMixin.<lambda> at 0x714978651f80>" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagChangePoints\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="changepoints" /> + <conditional name="method_cond"> + <param name="method_select" value="flagChangePoints" /> + <param name="field" value="test_variable" /> + <param name="stat_func" value="default_string" /> + <param name="thresh_func" value="default_string" /> + <param name="window" value="a_string" /> + <param name="min_periods" value="1" /> + <param name="reduce_window" value="default_string" /> + <param name="reduce_func" value="<function ChangepointsMixin.<lambda> at 0x714978651f80>" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagChangePoints\((?=.*window\s*=\s*["']a_string["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="changepoints" /> + <conditional name="method_cond"> + <param name="method_select" value="flagChangePoints" /> + <param name="field" value="test_variable" /> + <param name="stat_func" value="default_string" /> + <param name="thresh_func" value="default_string" /> + <param name="window" value="default_string" /> + <param name="min_periods" value="123" /> + <param name="reduce_window" value="default_string" /> + <param name="reduce_func" value="<function ChangepointsMixin.<lambda> at 0x714978651f80>" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagChangePoints\((?=.*min_periods\s*=\s*(?:["']?123["']?)).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="constants" /> + <conditional name="method_cond"> + <param name="method_select" value="flagByVariance" /> + <param name="field" value="test_variable" /> + <param name="window" value="default_string" /> + <param name="thresh" value="1.0" /> + <param name="maxna" value="1" /> + <param name="maxna_group" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagByVariance\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="constants" /> + <conditional name="method_cond"> + <param name="method_select" value="flagConstants" /> + <param name="field" value="test_variable" /> + <param name="thresh" value="1.0" /> + <param name="window" value="default_string" /> + <param name="min_periods" value="2" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagConstants\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="curvefit" /> + <conditional name="method_cond"> + <param name="method_select" value="fitLowpassFilter" /> + <param name="field" value="test_variable" /> + <param name="cutoff" value="default_string" /> + <param name="nyq" value="0.5" /> + <param name="filter_order" value="2" /> + <param name="fill_method" value="linear" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*fitLowpassFilter\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="curvefit" /> + <conditional name="method_cond"> + <param name="method_select" value="fitPolynomial" /> + <param name="field" value="test_variable" /> + <param name="window" value="default_string" /> + <param name="order" value="1" /> + <param name="min_periods" value="0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*fitPolynomial\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="drift" /> + <conditional name="method_cond"> + <param name="method_select" value="assignRegimeAnomaly" /> + <param name="field" value="test_variable" /> + <param name="cluster_field" value="default_string" /> + <param name="spread" value="1.0" /> + <param name="method" value="single" /> + <param name="metric" value="<function DriftMixin.<lambda> at 0x7149749f0d60>" /> + <param name="frac" value="0.5" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignRegimeAnomaly\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="drift" /> + <conditional name="method_cond"> + <param name="method_select" value="correctDrift" /> + <param name="field" value="test_variable" /> + <param name="maintenance_field" value="default_string" /> + <conditional name="model_cond"> + <param name="model_select_type" value="custom" /> + <param name="model" value="default_string" /> + </conditional> + <param name="cal_range" value="5" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*correctDrift\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="drift" /> + <conditional name="method_cond"> + <param name="method_select" value="correctOffset" /> + <param name="field" value="test_variable" /> + <param name="max_jump" value="1.0" /> + <param name="spread" value="1.0" /> + <param name="window" value="default_string" /> + <param name="min_periods" value="1" /> + <param name="tolerance" value="default_string" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*correctOffset\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="drift" /> + <conditional name="method_cond"> + <param name="method_select" value="correctRegimeAnomaly" /> + <param name="field" value="test_variable" /> + <param name="cluster_field" value="default_string" /> + <param name="model" value="default_string" /> + <param name="tolerance" value="default_string" /> + <param name="epoch" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*correctRegimeAnomaly\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="drift" /> + <conditional name="method_cond"> + <param name="method_select" value="flagDriftFromNorm" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="window" value="default_string" /> + <param name="spread" value="1.0" /> + <param name="frac" value="0.5" /> + <param name="metric" value="<function cityblock at 0x71497525fd80>" /> + <param name="method" value="single" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagDriftFromNorm\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="drift" /> + <conditional name="method_cond"> + <param name="method_select" value="flagDriftFromReference" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="reference" value="default_string" /> + <param name="freq" value="default_string" /> + <param name="thresh" value="1.0" /> + <param name="metric" value="<function cityblock at 0x71497525fd80>" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagDriftFromReference\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="drift" /> + <conditional name="method_cond"> + <param name="method_select" value="flagRegimeAnomaly" /> + <param name="field" value="test_variable" /> + <param name="cluster_field" value="default_string" /> + <param name="spread" value="1.0" /> + <param name="method" value="single" /> + <param name="metric" value="<function DriftMixin.<lambda> at 0x7149749f0c20>" /> + <param name="frac" value="0.5" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagRegimeAnomaly\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="flagtools" /> + <conditional name="method_cond"> + <param name="method_select" value="andGroup" /> + <param name="field" value="test_variable" /> + <param name="group" value="default_string" /> + <param name="target" value="test_variable" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*andGroup\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="flagtools" /> + <conditional name="method_cond"> + <param name="method_select" value="andGroup" /> + <param name="field" value="test_variable" /> + <param name="group" value="default_string" /> + <param name="target" value="a_string" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*andGroup\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="flagtools" /> + <conditional name="method_cond"> + <param name="method_select" value="clearFlags" /> + <param name="field" value="test_variable" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*clearFlags\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="flagtools" /> + <conditional name="method_cond"> + <param name="method_select" value="flagDummy" /> + <param name="field" value="test_variable" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagDummy\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="flagtools" /> + <conditional name="method_cond"> + <param name="method_select" value="flagManual" /> + <param name="field" value="test_variable" /> + <param name="mdata" value="default_string" /> + <param name="method" value="left-open" /> + <param name="mformat" value="start-end" /> + <param name="mflag" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagManual\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="flagtools" /> + <conditional name="method_cond"> + <param name="method_select" value="flagManual" /> + <param name="field" value="test_variable" /> + <param name="mdata" value="default_string" /> + <param name="method" value="left-open" /> + <param name="mformat" value="start-end" /> + <param name="mflag" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagManual\((?=.*mformat\s*=\s*["']start\-end["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="flagtools" /> + <conditional name="method_cond"> + <param name="method_select" value="flagManual" /> + <param name="field" value="test_variable" /> + <param name="mdata" value="default_string" /> + <param name="method" value="left-open" /> + <param name="mformat" value="mflag" /> + <param name="mflag" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagManual\((?=.*mformat\s*=\s*["']mflag["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="flagtools" /> + <conditional name="method_cond"> + <param name="method_select" value="flagManual" /> + <param name="field" value="test_variable" /> + <param name="mdata" value="default_string" /> + <param name="method" value="left-open" /> + <param name="mformat" value="start-end" /> + <param name="mflag" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagManual\((?=.*method\s*=\s*["']left\-open["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="flagtools" /> + <conditional name="method_cond"> + <param name="method_select" value="flagManual" /> + <param name="field" value="test_variable" /> + <param name="mdata" value="default_string" /> + <param name="method" value="right-open" /> + <param name="mformat" value="start-end" /> + <param name="mflag" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagManual\((?=.*method\s*=\s*["']right\-open["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="flagtools" /> + <conditional name="method_cond"> + <param name="method_select" value="flagManual" /> + <param name="field" value="test_variable" /> + <param name="mdata" value="default_string" /> + <param name="method" value="closed" /> + <param name="mformat" value="start-end" /> + <param name="mflag" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagManual\((?=.*method\s*=\s*["']closed["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="flagtools" /> + <conditional name="method_cond"> + <param name="method_select" value="flagManual" /> + <param name="field" value="test_variable" /> + <param name="mdata" value="default_string" /> + <param name="method" value="plain" /> + <param name="mformat" value="start-end" /> + <param name="mflag" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagManual\((?=.*method\s*=\s*["']plain["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="flagtools" /> + <conditional name="method_cond"> + <param name="method_select" value="flagManual" /> + <param name="field" value="test_variable" /> + <param name="mdata" value="default_string" /> + <param name="method" value="ontime" /> + <param name="mformat" value="start-end" /> + <param name="mflag" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagManual\((?=.*method\s*=\s*["']ontime["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="flagtools" /> + <conditional name="method_cond"> + <param name="method_select" value="flagUnflagged" /> + <param name="field" value="test_variable" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagUnflagged\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="flagtools" /> + <conditional name="method_cond"> + <param name="method_select" value="forceFlags" /> + <param name="field" value="test_variable" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*forceFlags\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="flagtools" /> + <conditional name="method_cond"> + <param name="method_select" value="orGroup" /> + <param name="field" value="test_variable" /> + <param name="group" value="default_string" /> + <param name="target" value="test_variable" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*orGroup\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="flagtools" /> + <conditional name="method_cond"> + <param name="method_select" value="orGroup" /> + <param name="field" value="test_variable" /> + <param name="group" value="default_string" /> + <param name="target" value="a_string" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*orGroup\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="flagtools" /> + <conditional name="method_cond"> + <param name="method_select" value="propagateFlags" /> + <param name="field" value="test_variable" /> + <param name="window" value="default_string" /> + <param name="method" value="ffill" /> + <param name="flag" value="255.0" /> + <param name="dfilter" value="-inf" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*propagateFlags\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="flagtools" /> + <conditional name="method_cond"> + <param name="method_select" value="propagateFlags" /> + <param name="field" value="test_variable" /> + <param name="window" value="default_string" /> + <param name="method" value="ffill" /> + <param name="flag" value="255.0" /> + <param name="dfilter" value="-inf" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*propagateFlags\((?=.*method\s*=\s*["']ffill["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="flagtools" /> + <conditional name="method_cond"> + <param name="method_select" value="propagateFlags" /> + <param name="field" value="test_variable" /> + <param name="window" value="default_string" /> + <param name="method" value="bfill" /> + <param name="flag" value="255.0" /> + <param name="dfilter" value="-inf" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*propagateFlags\((?=.*method\s*=\s*["']bfill["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="flagtools" /> + <conditional name="method_cond"> + <param name="method_select" value="transferFlags" /> + <param name="field" value="test_variable" /> + <param name="target" value="test_variable" /> + <param name="squeeze" value="true" /> + <param name="overwrite" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*transferFlags\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="generic" /> + <conditional name="method_cond"> + <param name="method_select" value="flagGeneric" /> + <param name="field" value="test_variable" /> + <param name="func" value="default_string" /> + <param name="target" value="test_variable" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagGeneric\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="generic" /> + <conditional name="method_cond"> + <param name="method_select" value="flagGeneric" /> + <param name="field" value="test_variable" /> + <param name="func" value="default_string" /> + <param name="target" value="a_string" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagGeneric\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="generic" /> + <conditional name="method_cond"> + <param name="method_select" value="flagGeneric" /> + <param name="field" value="a_string" /> + <param name="func" value="default_string" /> + <param name="target" value="test_variable" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="a_string;\s*flagGeneric\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="generic" /> + <conditional name="method_cond"> + <param name="method_select" value="processGeneric" /> + <param name="field" value="test_variable" /> + <param name="func" value="default_string" /> + <param name="target" value="test_variable" /> + <param name="dfilter" value="-inf" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*processGeneric\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="generic" /> + <conditional name="method_cond"> + <param name="method_select" value="processGeneric" /> + <param name="field" value="test_variable" /> + <param name="func" value="default_string" /> + <param name="target" value="a_string" /> + <param name="dfilter" value="-inf" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*processGeneric\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="generic" /> + <conditional name="method_cond"> + <param name="method_select" value="processGeneric" /> + <param name="field" value="a_string" /> + <param name="func" value="default_string" /> + <param name="target" value="test_variable" /> + <param name="dfilter" value="-inf" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="a_string;\s*processGeneric\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="interpolation" /> + <conditional name="method_cond"> + <param name="method_select" value="align" /> + <param name="field" value="test_variable" /> + <param name="freq" value="default_string" /> + <param name="method" value="time" /> + <param name="order" value="2" /> + <param name="overwrite" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*align\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="interpolation" /> + <conditional name="method_cond"> + <param name="method_select" value="interpolateByRolling" /> + <param name="field" value="test_variable" /> + <param name="window" value="default_string" /> + <param name="func" value="median" /> + <param name="center" value="false" /> + <param name="min_periods" value="0" /> + <param name="flag" value="-inf" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*interpolateByRolling\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="noise" /> + <conditional name="method_cond"> + <param name="method_select" value="flagByScatterLowpass" /> + <param name="field" value="test_variable" /> + <param name="window" value="default_string" /> + <param name="thresh" value="1.0" /> + <param name="func" value="std" /> + <param name="sub_window" value="1D" /> + <param name="sub_thresh" value="1.0" /> + <param name="min_periods" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagByScatterLowpass\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="noise" /> + <conditional name="method_cond"> + <param name="method_select" value="flagByScatterLowpass" /> + <param name="field" value="test_variable" /> + <param name="window" value="default_string" /> + <param name="thresh" value="1.0" /> + <param name="func" value="std" /> + <param name="sub_window" value="a_string" /> + <param name="sub_thresh" value="1.0" /> + <param name="min_periods" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagByScatterLowpass\((?=.*sub_window\s*=\s*["']a_string["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="noise" /> + <conditional name="method_cond"> + <param name="method_select" value="flagByScatterLowpass" /> + <param name="field" value="test_variable" /> + <param name="window" value="default_string" /> + <param name="thresh" value="1.0" /> + <param name="func" value="std" /> + <param name="sub_window" value="2H" /> + <param name="sub_thresh" value="1.0" /> + <param name="min_periods" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagByScatterLowpass\((?=.*sub_window\s*=\s*["']2H["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="noise" /> + <conditional name="method_cond"> + <param name="method_select" value="flagByStatLowPass" /> + <param name="field" value="test_variable" /> + <param name="window" value="default_string" /> + <param name="thresh" value="1.0" /> + <param name="func" value="std" /> + <param name="sub_window" value="1D" /> + <param name="sub_thresh" value="1.0" /> + <param name="min_periods" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagByStatLowPass\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="noise" /> + <conditional name="method_cond"> + <param name="method_select" value="flagByStatLowPass" /> + <param name="field" value="test_variable" /> + <param name="window" value="default_string" /> + <param name="thresh" value="1.0" /> + <param name="func" value="std" /> + <param name="sub_window" value="a_string" /> + <param name="sub_thresh" value="1.0" /> + <param name="min_periods" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagByStatLowPass\((?=.*sub_window\s*=\s*["']a_string["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="noise" /> + <conditional name="method_cond"> + <param name="method_select" value="flagByStatLowPass" /> + <param name="field" value="test_variable" /> + <param name="window" value="default_string" /> + <param name="thresh" value="1.0" /> + <param name="func" value="std" /> + <param name="sub_window" value="2H" /> + <param name="sub_thresh" value="1.0" /> + <param name="min_periods" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagByStatLowPass\((?=.*sub_window\s*=\s*["']2H["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagByGrubbs" /> + <param name="field" value="test_variable" /> + <param name="window" value="default_string" /> + <param name="alpha" value="0.05" /> + <param name="min_periods" value="8" /> + <param name="pedantic" value="true" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagByGrubbs\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagByStray" /> + <param name="field" value="test_variable" /> + <conditional name="window_cond"> + <param name="window_select_type" value="number" /> + <param name="window" value="1" /> + </conditional> + <param name="min_periods" value="11" /> + <param name="iter_start" value="0.5" /> + <param name="alpha" value="0.05" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagByStray\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagByStray" /> + <param name="field" value="test_variable" /> + <conditional name="window_cond"> + <param name="window_select_type" value="number" /> + <param name="window" value="123" /> + </conditional> + <param name="min_periods" value="11" /> + <param name="iter_start" value="0.5" /> + <param name="alpha" value="0.05" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagByStray\((?=.*window\s*=\s*(?:["']?123["']?)).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagByStray" /> + <param name="field" value="test_variable" /> + <conditional name="window_cond"> + <param name="window_select_type" value="timedelta" /> + <param name="window" value="a_string" /> + </conditional> + <param name="min_periods" value="11" /> + <param name="iter_start" value="0.5" /> + <param name="alpha" value="0.05" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagByStray\((?=.*window\s*=\s*["']a_string["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagLOF" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="n" value="20" /> + <conditional name="thresh_cond"> + <param name="thresh_select_type" value="float" /> + <param name="thresh" value="1.5" /> + </conditional> + <param name="algorithm" value="ball_tree" /> + <param name="p" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagLOF\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagLOF" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="n" value="20" /> + <conditional name="thresh_cond"> + <param name="thresh_select_type" value="float" /> + <param name="thresh" value="1.5" /> + </conditional> + <param name="algorithm" value="ball_tree" /> + <param name="p" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagLOF\((?=.*algorithm\s*=\s*["']ball_tree["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagLOF" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="n" value="20" /> + <conditional name="thresh_cond"> + <param name="thresh_select_type" value="float" /> + <param name="thresh" value="1.5" /> + </conditional> + <param name="algorithm" value="kd_tree" /> + <param name="p" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagLOF\((?=.*algorithm\s*=\s*["']kd_tree["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagLOF" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="n" value="20" /> + <conditional name="thresh_cond"> + <param name="thresh_select_type" value="float" /> + <param name="thresh" value="1.5" /> + </conditional> + <param name="algorithm" value="brute" /> + <param name="p" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagLOF\((?=.*algorithm\s*=\s*["']brute["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagLOF" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="n" value="20" /> + <conditional name="thresh_cond"> + <param name="thresh_select_type" value="float" /> + <param name="thresh" value="1.5" /> + </conditional> + <param name="algorithm" value="auto" /> + <param name="p" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagLOF\((?=.*algorithm\s*=\s*["']auto["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagLOF" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="n" value="20" /> + <param name="algorithm" value="ball_tree" /> + <param name="p" value="1" /> + <param name="flag" value="255.0" /> + <conditional name="thresh_cond"> + <param name="thresh_select_type" value="float" /> + <param name="thresh" value="45.6" /> + </conditional> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagLOF\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagMAD" /> + <param name="field" value="test_variable" /> + <conditional name="window_cond"> + <param name="window_select_type" value="number" /> + <param name="window" value="1" /> + </conditional> + <param name="z" value="3.5" /> + <param name="min_residuals" value="1" /> + <param name="min_periods" value="1" /> + <param name="center" value="true" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagMAD\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagMAD" /> + <param name="field" value="test_variable" /> + <conditional name="window_cond"> + <param name="window_select_type" value="timedelta" /> + <param name="window" value="a_string" /> + </conditional> + <param name="z" value="3.5" /> + <param name="min_residuals" value="1" /> + <param name="min_periods" value="1" /> + <param name="center" value="true" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagMAD\((?=.*window\s*=\s*["']a_string["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagMAD" /> + <param name="field" value="test_variable" /> + <conditional name="window_cond"> + <param name="window_select_type" value="number" /> + <param name="window" value="123" /> + </conditional> + <param name="z" value="3.5" /> + <param name="min_residuals" value="1" /> + <param name="min_periods" value="1" /> + <param name="center" value="true" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagMAD\((?=.*window\s*=\s*(?:["']?123["']?)).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagMVScores" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="trafo" value="<function OutliersMixin.<lambda> at 0x7149746f11c0>" /> + <param name="alpha" value="0.05" /> + <param name="n" value="10" /> + <param name="func" value="sum" /> + <param name="iter_start" value="0.5" /> + <conditional name="window_cond"> + <param name="window_select_type" value="number" /> + <param name="window" value="1" /> + </conditional> + <param name="min_periods" value="11" /> + <param name="stray_range" value="default_string" /> + <param name="drop_flagged" value="true" /> + <param name="thresh" value="3.5" /> + <param name="min_periods_r" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagMVScores\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagMVScores" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="trafo" value="<function OutliersMixin.<lambda> at 0x7149746f11c0>" /> + <param name="alpha" value="0.05" /> + <param name="n" value="10" /> + <param name="func" value="sum" /> + <param name="iter_start" value="0.5" /> + <conditional name="window_cond"> + <param name="window_select_type" value="number" /> + <param name="window" value="123" /> + </conditional> + <param name="min_periods" value="11" /> + <param name="stray_range" value="default_string" /> + <param name="drop_flagged" value="true" /> + <param name="thresh" value="3.5" /> + <param name="min_periods_r" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagMVScores\((?=.*window\s*=\s*(?:["']?123["']?)).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagMVScores" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="trafo" value="<function OutliersMixin.<lambda> at 0x7149746f11c0>" /> + <param name="alpha" value="0.05" /> + <param name="n" value="10" /> + <param name="func" value="sum" /> + <param name="iter_start" value="0.5" /> + <conditional name="window_cond"> + <param name="window_select_type" value="timedelta" /> + <param name="window" value="a_string" /> + </conditional> + <param name="min_periods" value="11" /> + <param name="stray_range" value="default_string" /> + <param name="drop_flagged" value="true" /> + <param name="thresh" value="3.5" /> + <param name="min_periods_r" value="1" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagMVScores\((?=.*window\s*=\s*["']a_string["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagOffset" /> + <param name="field" value="test_variable" /> + <param name="tolerance" value="1.0" /> + <param name="window" value="default_string" /> + <param name="thresh" value="1.0" /> + <param name="thresh_relative" value="1.0" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagOffset\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagRaise" /> + <param name="field" value="test_variable" /> + <param name="thresh" value="1.0" /> + <param name="raise_window" value="default_string" /> + <param name="freq" value="default_string" /> + <param name="average_window" value="default_string" /> + <param name="raise_factor" value="2.0" /> + <param name="slope" value="1.0" /> + <param name="weight" value="0.8" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagRaise\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagRange" /> + <param name="field" value="test_variable" /> + <param name="min" value="-inf" /> + <param name="max" value="inf" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagRange\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagUniLOF" /> + <param name="field" value="test_variable" /> + <param name="n" value="20" /> + <conditional name="thresh_cond"> + <param name="thresh_select_type" value="float" /> + <param name="thresh" value="1.5" /> + </conditional> + <param name="algorithm" value="ball_tree" /> + <param name="p" value="1" /> + <conditional name="density_cond"> + <param name="density_select_type" value="auto" /> + <param name="density" value="auto" /> + </conditional> + <param name="fill_na" value="false" /> + <param name="slope_correct" value="false" /> + <param name="min_offset" value="1.0" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagUniLOF\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagUniLOF" /> + <param name="field" value="test_variable" /> + <param name="n" value="20" /> + <conditional name="thresh_cond"> + <param name="thresh_select_type" value="float" /> + <param name="thresh" value="1.5" /> + </conditional> + <param name="algorithm" value="ball_tree" /> + <param name="p" value="1" /> + <conditional name="density_cond"> + <param name="density_select_type" value="auto" /> + <param name="density" value="auto" /> + </conditional> + <param name="fill_na" value="false" /> + <param name="slope_correct" value="false" /> + <param name="min_offset" value="1.0" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagUniLOF\((?=.*algorithm\s*=\s*["']ball_tree["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagUniLOF" /> + <param name="field" value="test_variable" /> + <param name="n" value="20" /> + <conditional name="thresh_cond"> + <param name="thresh_select_type" value="float" /> + <param name="thresh" value="1.5" /> + </conditional> + <param name="algorithm" value="kd_tree" /> + <param name="p" value="1" /> + <conditional name="density_cond"> + <param name="density_select_type" value="auto" /> + <param name="density" value="auto" /> + </conditional> + <param name="fill_na" value="false" /> + <param name="slope_correct" value="false" /> + <param name="min_offset" value="1.0" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagUniLOF\((?=.*algorithm\s*=\s*["']kd_tree["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagUniLOF" /> + <param name="field" value="test_variable" /> + <param name="n" value="20" /> + <conditional name="thresh_cond"> + <param name="thresh_select_type" value="float" /> + <param name="thresh" value="1.5" /> + </conditional> + <param name="algorithm" value="brute" /> + <param name="p" value="1" /> + <conditional name="density_cond"> + <param name="density_select_type" value="auto" /> + <param name="density" value="auto" /> + </conditional> + <param name="fill_na" value="false" /> + <param name="slope_correct" value="false" /> + <param name="min_offset" value="1.0" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagUniLOF\((?=.*algorithm\s*=\s*["']brute["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagUniLOF" /> + <param name="field" value="test_variable" /> + <param name="n" value="20" /> + <conditional name="thresh_cond"> + <param name="thresh_select_type" value="float" /> + <param name="thresh" value="1.5" /> + </conditional> + <param name="algorithm" value="auto" /> + <param name="p" value="1" /> + <conditional name="density_cond"> + <param name="density_select_type" value="auto" /> + <param name="density" value="auto" /> + </conditional> + <param name="fill_na" value="false" /> + <param name="slope_correct" value="false" /> + <param name="min_offset" value="1.0" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagUniLOF\((?=.*algorithm\s*=\s*["']auto["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagUniLOF" /> + <param name="field" value="test_variable" /> + <param name="n" value="20" /> + <param name="algorithm" value="ball_tree" /> + <param name="p" value="1" /> + <conditional name="density_cond"> + <param name="density_select_type" value="auto" /> + <param name="density" value="auto" /> + </conditional> + <param name="fill_na" value="false" /> + <param name="slope_correct" value="false" /> + <param name="min_offset" value="1.0" /> + <param name="flag" value="255.0" /> + <conditional name="thresh_cond"> + <param name="thresh_select_type" value="float" /> + <param name="thresh" value="45.6" /> + </conditional> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagUniLOF\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagUniLOF" /> + <param name="field" value="test_variable" /> + <param name="n" value="20" /> + <conditional name="thresh_cond"> + <param name="thresh_select_type" value="float" /> + <param name="thresh" value="1.5" /> + </conditional> + <param name="algorithm" value="ball_tree" /> + <param name="p" value="1" /> + <param name="fill_na" value="false" /> + <param name="slope_correct" value="false" /> + <param name="min_offset" value="1.0" /> + <param name="flag" value="255.0" /> + <conditional name="density_cond"> + <param name="density_select_type" value="float" /> + <param name="density" value="45.6" /> + </conditional> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagUniLOF\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagZScore" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="method" value="standard" /> + <conditional name="window_cond"> + <param name="window_select_type" value="number" /> + <param name="window" value="1" /> + </conditional> + <param name="thresh" value="3" /> + <param name="min_residuals" value="1" /> + <param name="min_periods" value="1" /> + <param name="center" value="false" /> + <param name="axis" value="0" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagZScore\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagZScore" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="method" value="standard" /> + <conditional name="window_cond"> + <param name="window_select_type" value="timedelta" /> + <param name="window" value="a_string" /> + </conditional> + <param name="thresh" value="3" /> + <param name="min_residuals" value="1" /> + <param name="min_periods" value="1" /> + <param name="center" value="false" /> + <param name="axis" value="0" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagZScore\((?=.*window\s*=\s*["']a_string["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagZScore" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="method" value="standard" /> + <conditional name="window_cond"> + <param name="window_select_type" value="number" /> + <param name="window" value="123" /> + </conditional> + <param name="thresh" value="3" /> + <param name="min_residuals" value="1" /> + <param name="min_periods" value="1" /> + <param name="center" value="false" /> + <param name="axis" value="0" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagZScore\((?=.*window\s*=\s*(?:["']?123["']?)).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagZScore" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="method" value="standard" /> + <conditional name="window_cond"> + <param name="window_select_type" value="number" /> + <param name="window" value="1" /> + </conditional> + <param name="thresh" value="3" /> + <param name="min_residuals" value="1" /> + <param name="min_periods" value="1" /> + <param name="center" value="false" /> + <param name="axis" value="0" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagZScore\((?=.*method\s*=\s*["']standard["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="outliers" /> + <conditional name="method_cond"> + <param name="method_select" value="flagZScore" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="method" value="modified" /> + <conditional name="window_cond"> + <param name="window_select_type" value="number" /> + <param name="window" value="1" /> + </conditional> + <param name="thresh" value="3" /> + <param name="min_residuals" value="1" /> + <param name="min_periods" value="1" /> + <param name="center" value="false" /> + <param name="axis" value="0" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagZScore\((?=.*method\s*=\s*["']modified["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="pattern" /> + <conditional name="method_cond"> + <param name="method_select" value="flagPatternByDTW" /> + <param name="field" value="test_variable" /> + <param name="reference" value="default_string" /> + <param name="max_distance" value="0.0" /> + <param name="normalize" value="false" /> + <param name="plot" value="true" /> + <param name="flag" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagPatternByDTW\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="resampling" /> + <conditional name="method_cond"> + <param name="method_select" value="concatFlags" /> + <param name="field" value="test_variable" /> + <param name="target" value="test_variable" /> + <param name="method" value="auto" /> + <param name="invert" value="false" /> + <param name="freq" value="default_string" /> + <param name="drop" value="true" /> + <param name="squeeze" value="true" /> + <param name="override" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*concatFlags\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="resampling" /> + <conditional name="method_cond"> + <param name="method_select" value="concatFlags" /> + <param name="field" value="test_variable" /> + <param name="target" value="test_variable" /> + <param name="method" value="fagg" /> + <param name="invert" value="false" /> + <param name="freq" value="default_string" /> + <param name="drop" value="true" /> + <param name="squeeze" value="true" /> + <param name="override" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*concatFlags\((?=.*method\s*=\s*["']fagg["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="resampling" /> + <conditional name="method_cond"> + <param name="method_select" value="concatFlags" /> + <param name="field" value="test_variable" /> + <param name="target" value="test_variable" /> + <param name="method" value="bagg" /> + <param name="invert" value="false" /> + <param name="freq" value="default_string" /> + <param name="drop" value="true" /> + <param name="squeeze" value="true" /> + <param name="override" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*concatFlags\((?=.*method\s*=\s*["']bagg["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="resampling" /> + <conditional name="method_cond"> + <param name="method_select" value="concatFlags" /> + <param name="field" value="test_variable" /> + <param name="target" value="test_variable" /> + <param name="method" value="nagg" /> + <param name="invert" value="false" /> + <param name="freq" value="default_string" /> + <param name="drop" value="true" /> + <param name="squeeze" value="true" /> + <param name="override" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*concatFlags\((?=.*method\s*=\s*["']nagg["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="resampling" /> + <conditional name="method_cond"> + <param name="method_select" value="concatFlags" /> + <param name="field" value="test_variable" /> + <param name="target" value="test_variable" /> + <param name="method" value="fshift" /> + <param name="invert" value="false" /> + <param name="freq" value="default_string" /> + <param name="drop" value="true" /> + <param name="squeeze" value="true" /> + <param name="override" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*concatFlags\((?=.*method\s*=\s*["']fshift["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="resampling" /> + <conditional name="method_cond"> + <param name="method_select" value="concatFlags" /> + <param name="field" value="test_variable" /> + <param name="target" value="test_variable" /> + <param name="method" value="bshift" /> + <param name="invert" value="false" /> + <param name="freq" value="default_string" /> + <param name="drop" value="true" /> + <param name="squeeze" value="true" /> + <param name="override" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*concatFlags\((?=.*method\s*=\s*["']bshift["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="resampling" /> + <conditional name="method_cond"> + <param name="method_select" value="concatFlags" /> + <param name="field" value="test_variable" /> + <param name="target" value="test_variable" /> + <param name="method" value="nshift" /> + <param name="invert" value="false" /> + <param name="freq" value="default_string" /> + <param name="drop" value="true" /> + <param name="squeeze" value="true" /> + <param name="override" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*concatFlags\((?=.*method\s*=\s*["']nshift["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="resampling" /> + <conditional name="method_cond"> + <param name="method_select" value="concatFlags" /> + <param name="field" value="test_variable" /> + <param name="target" value="test_variable" /> + <param name="method" value="sshift" /> + <param name="invert" value="false" /> + <param name="freq" value="default_string" /> + <param name="drop" value="true" /> + <param name="squeeze" value="true" /> + <param name="override" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*concatFlags\((?=.*method\s*=\s*["']sshift["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="resampling" /> + <conditional name="method_cond"> + <param name="method_select" value="concatFlags" /> + <param name="field" value="test_variable" /> + <param name="target" value="test_variable" /> + <param name="method" value="match" /> + <param name="invert" value="false" /> + <param name="freq" value="default_string" /> + <param name="drop" value="true" /> + <param name="squeeze" value="true" /> + <param name="override" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*concatFlags\((?=.*method\s*=\s*["']match["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="resampling" /> + <conditional name="method_cond"> + <param name="method_select" value="concatFlags" /> + <param name="field" value="test_variable" /> + <param name="target" value="test_variable" /> + <param name="method" value="auto" /> + <param name="invert" value="false" /> + <param name="freq" value="default_string" /> + <param name="drop" value="true" /> + <param name="squeeze" value="true" /> + <param name="override" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*concatFlags\((?=.*method\s*=\s*["']auto["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="resampling" /> + <conditional name="method_cond"> + <param name="method_select" value="reindex" /> + <param name="field" value="test_variable" /> + <param name="index" value="default_string" /> + <param name="method" value="match" /> + <param name="tolerance" value="default_string" /> + <param name="data_aggregation" value="default_string" /> + <param name="flags_aggregation" value="default_string" /> + <param name="broadcast" value="false" /> + <param name="squeeze" value="true" /> + <param name="override" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*reindex\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="resampling" /> + <conditional name="method_cond"> + <param name="method_select" value="resample" /> + <param name="field" value="test_variable" /> + <param name="freq" value="default_string" /> + <param name="func" value="mean" /> + <param name="method" value="bagg" /> + <param name="maxna" value="1" /> + <param name="maxna_group" value="1" /> + <param name="squeeze" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*resample\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="resampling" /> + <conditional name="method_cond"> + <param name="method_select" value="resample" /> + <param name="field" value="test_variable" /> + <param name="freq" value="default_string" /> + <param name="func" value="mean" /> + <param name="method" value="fagg" /> + <param name="maxna" value="1" /> + <param name="maxna_group" value="1" /> + <param name="squeeze" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*resample\((?=.*method\s*=\s*["']fagg["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="resampling" /> + <conditional name="method_cond"> + <param name="method_select" value="resample" /> + <param name="field" value="test_variable" /> + <param name="freq" value="default_string" /> + <param name="func" value="mean" /> + <param name="method" value="bagg" /> + <param name="maxna" value="1" /> + <param name="maxna_group" value="1" /> + <param name="squeeze" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*resample\((?=.*method\s*=\s*["']bagg["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="resampling" /> + <conditional name="method_cond"> + <param name="method_select" value="resample" /> + <param name="field" value="test_variable" /> + <param name="freq" value="default_string" /> + <param name="func" value="mean" /> + <param name="method" value="nagg" /> + <param name="maxna" value="1" /> + <param name="maxna_group" value="1" /> + <param name="squeeze" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*resample\((?=.*method\s*=\s*["']nagg["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="residuals" /> + <conditional name="method_cond"> + <param name="method_select" value="calculatePolynomialResiduals" /> + <param name="field" value="test_variable" /> + <param name="window" value="default_string" /> + <param name="order" value="1" /> + <param name="min_periods" value="0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*calculatePolynomialResiduals\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="residuals" /> + <conditional name="method_cond"> + <param name="method_select" value="calculateRollingResiduals" /> + <param name="field" value="test_variable" /> + <param name="window" value="default_string" /> + <param name="func" value="mean" /> + <param name="min_periods" value="0" /> + <param name="center" value="false" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*calculateRollingResiduals\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="rolling" /> + <conditional name="method_cond"> + <param name="method_select" value="rolling" /> + <param name="field" value="test_variable" /> + <param name="window" value="default_string" /> + <param name="func" value="mean" /> + <param name="min_periods" value="0" /> + <param name="center" value="false" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*rolling\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignKNNScore" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="target" value="test_variable" /> + <param name="n" value="10" /> + <param name="func" value="sum" /> + <conditional name="freq_cond"> + <param name="freq_select_type" value="number" /> + <param name="freq" value="inf" /> + </conditional> + <param name="min_periods" value="2" /> + <param name="algorithm" value="ball_tree" /> + <param name="metric" value="minkowski" /> + <param name="p" value="2" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignKNNScore\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignKNNScore" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="target" value="test_variable" /> + <param name="n" value="10" /> + <param name="func" value="sum" /> + <conditional name="freq_cond"> + <param name="freq_select_type" value="number" /> + <param name="freq" value="inf" /> + </conditional> + <param name="min_periods" value="2" /> + <param name="algorithm" value="ball_tree" /> + <param name="metric" value="minkowski" /> + <param name="p" value="2" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignKNNScore\((?=.*algorithm\s*=\s*["']ball_tree["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignKNNScore" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="target" value="test_variable" /> + <param name="n" value="10" /> + <param name="func" value="sum" /> + <conditional name="freq_cond"> + <param name="freq_select_type" value="number" /> + <param name="freq" value="inf" /> + </conditional> + <param name="min_periods" value="2" /> + <param name="algorithm" value="kd_tree" /> + <param name="metric" value="minkowski" /> + <param name="p" value="2" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignKNNScore\((?=.*algorithm\s*=\s*["']kd_tree["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignKNNScore" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="target" value="test_variable" /> + <param name="n" value="10" /> + <param name="func" value="sum" /> + <conditional name="freq_cond"> + <param name="freq_select_type" value="number" /> + <param name="freq" value="inf" /> + </conditional> + <param name="min_periods" value="2" /> + <param name="algorithm" value="brute" /> + <param name="metric" value="minkowski" /> + <param name="p" value="2" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignKNNScore\((?=.*algorithm\s*=\s*["']brute["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignKNNScore" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="target" value="test_variable" /> + <param name="n" value="10" /> + <param name="func" value="sum" /> + <conditional name="freq_cond"> + <param name="freq_select_type" value="number" /> + <param name="freq" value="inf" /> + </conditional> + <param name="min_periods" value="2" /> + <param name="algorithm" value="auto" /> + <param name="metric" value="minkowski" /> + <param name="p" value="2" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignKNNScore\((?=.*algorithm\s*=\s*["']auto["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignKNNScore" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="target" value="test_variable" /> + <param name="n" value="10" /> + <param name="func" value="sum" /> + <conditional name="freq_cond"> + <param name="freq_select_type" value="number" /> + <param name="freq" value="45.6" /> + </conditional> + <param name="min_periods" value="2" /> + <param name="algorithm" value="ball_tree" /> + <param name="metric" value="minkowski" /> + <param name="p" value="2" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignKNNScore\((?=.*freq\s*=\s*45\.6).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignKNNScore" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="target" value="test_variable" /> + <param name="n" value="10" /> + <param name="func" value="sum" /> + <conditional name="freq_cond"> + <param name="freq_select_type" value="offset" /> + <param name="freq" value="a_string" /> + </conditional> + <param name="min_periods" value="2" /> + <param name="algorithm" value="ball_tree" /> + <param name="metric" value="minkowski" /> + <param name="p" value="2" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignKNNScore\((?=.*freq\s*=\s*["']a_string["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignLOF" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="target" value="test_variable" /> + <param name="n" value="20" /> + <conditional name="freq_cond"> + <param name="freq_select_type" value="number" /> + <param name="freq" value="inf" /> + </conditional> + <param name="min_periods" value="2" /> + <param name="algorithm" value="ball_tree" /> + <param name="p" value="2" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignLOF\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignLOF" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="target" value="test_variable" /> + <param name="n" value="20" /> + <conditional name="freq_cond"> + <param name="freq_select_type" value="number" /> + <param name="freq" value="inf" /> + </conditional> + <param name="min_periods" value="2" /> + <param name="algorithm" value="ball_tree" /> + <param name="p" value="2" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignLOF\((?=.*algorithm\s*=\s*["']ball_tree["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignLOF" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="target" value="test_variable" /> + <param name="n" value="20" /> + <conditional name="freq_cond"> + <param name="freq_select_type" value="number" /> + <param name="freq" value="inf" /> + </conditional> + <param name="min_periods" value="2" /> + <param name="algorithm" value="kd_tree" /> + <param name="p" value="2" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignLOF\((?=.*algorithm\s*=\s*["']kd_tree["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignLOF" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="target" value="test_variable" /> + <param name="n" value="20" /> + <conditional name="freq_cond"> + <param name="freq_select_type" value="number" /> + <param name="freq" value="inf" /> + </conditional> + <param name="min_periods" value="2" /> + <param name="algorithm" value="brute" /> + <param name="p" value="2" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignLOF\((?=.*algorithm\s*=\s*["']brute["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignLOF" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="target" value="test_variable" /> + <param name="n" value="20" /> + <conditional name="freq_cond"> + <param name="freq_select_type" value="number" /> + <param name="freq" value="inf" /> + </conditional> + <param name="min_periods" value="2" /> + <param name="algorithm" value="auto" /> + <param name="p" value="2" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignLOF\((?=.*algorithm\s*=\s*["']auto["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignLOF" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="target" value="test_variable" /> + <param name="n" value="20" /> + <conditional name="freq_cond"> + <param name="freq_select_type" value="number" /> + <param name="freq" value="45.6" /> + </conditional> + <param name="min_periods" value="2" /> + <param name="algorithm" value="ball_tree" /> + <param name="p" value="2" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignLOF\((?=.*freq\s*=\s*45\.6).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignLOF" /> + <repeat name="field_repeat"> + <param name="field" value="test_variable" /> + </repeat> + <param name="target" value="test_variable" /> + <param name="n" value="20" /> + <conditional name="freq_cond"> + <param name="freq_select_type" value="offset" /> + <param name="freq" value="a_string" /> + </conditional> + <param name="min_periods" value="2" /> + <param name="algorithm" value="ball_tree" /> + <param name="p" value="2" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignLOF\((?=.*freq\s*=\s*["']a_string["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignUniLOF" /> + <param name="field" value="test_variable" /> + <param name="n" value="20" /> + <param name="algorithm" value="ball_tree" /> + <param name="p" value="1" /> + <conditional name="density_cond"> + <param name="density_select_type" value="auto" /> + <param name="density" value="auto" /> + </conditional> + <param name="fill_na" value="false" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignUniLOF\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignUniLOF" /> + <param name="field" value="test_variable" /> + <param name="n" value="20" /> + <param name="algorithm" value="ball_tree" /> + <param name="p" value="1" /> + <conditional name="density_cond"> + <param name="density_select_type" value="auto" /> + <param name="density" value="auto" /> + </conditional> + <param name="fill_na" value="false" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignUniLOF\((?=.*algorithm\s*=\s*["']ball_tree["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignUniLOF" /> + <param name="field" value="test_variable" /> + <param name="n" value="20" /> + <param name="algorithm" value="kd_tree" /> + <param name="p" value="1" /> + <conditional name="density_cond"> + <param name="density_select_type" value="auto" /> + <param name="density" value="auto" /> + </conditional> + <param name="fill_na" value="false" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignUniLOF\((?=.*algorithm\s*=\s*["']kd_tree["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignUniLOF" /> + <param name="field" value="test_variable" /> + <param name="n" value="20" /> + <param name="algorithm" value="brute" /> + <param name="p" value="1" /> + <conditional name="density_cond"> + <param name="density_select_type" value="auto" /> + <param name="density" value="auto" /> + </conditional> + <param name="fill_na" value="false" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignUniLOF\((?=.*algorithm\s*=\s*["']brute["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignUniLOF" /> + <param name="field" value="test_variable" /> + <param name="n" value="20" /> + <param name="algorithm" value="auto" /> + <param name="p" value="1" /> + <conditional name="density_cond"> + <param name="density_select_type" value="auto" /> + <param name="density" value="auto" /> + </conditional> + <param name="fill_na" value="false" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignUniLOF\((?=.*algorithm\s*=\s*["']auto["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignUniLOF" /> + <param name="field" value="test_variable" /> + <param name="n" value="20" /> + <param name="algorithm" value="ball_tree" /> + <param name="p" value="1" /> + <param name="fill_na" value="false" /> + <conditional name="density_cond"> + <param name="density_select_type" value="float" /> + <param name="density" value="45.6" /> + </conditional> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignUniLOF\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="scores" /> + <conditional name="method_cond"> + <param name="method_select" value="assignZScore" /> + <param name="field" value="test_variable" /> + <param name="window" value="default_string" /> + <param name="norm_func" value="std" /> + <param name="model_func" value="mean" /> + <param name="center" value="false" /> + <param name="min_periods" value="1" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*assignZScore\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="tools" /> + <conditional name="method_cond"> + <param name="method_select" value="copyField" /> + <param name="field" value="test_variable" /> + <param name="target" value="test_variable" /> + <param name="overwrite" value="true" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*copyField\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="tools" /> + <conditional name="method_cond"> + <param name="method_select" value="dropField" /> + <param name="field" value="test_variable" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*dropField\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="tools" /> + <conditional name="method_cond"> + <param name="method_select" value="flagByClick" /> + <param name="field" value="test_variable" /> + <param name="max_gap" value="default_string" /> + <param name="gui_mode" value="GUI" /> + <param name="dfilter" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagByClick\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="tools" /> + <conditional name="method_cond"> + <param name="method_select" value="flagByClick" /> + <param name="field" value="test_variable" /> + <param name="max_gap" value="default_string" /> + <param name="gui_mode" value="GUI" /> + <param name="dfilter" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagByClick\((?=.*gui_mode\s*=\s*["']GUI["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="tools" /> + <conditional name="method_cond"> + <param name="method_select" value="flagByClick" /> + <param name="field" value="test_variable" /> + <param name="max_gap" value="default_string" /> + <param name="gui_mode" value="overlay" /> + <param name="dfilter" value="255.0" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*flagByClick\((?=.*gui_mode\s*=\s*["']overlay["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="tools" /> + <conditional name="method_cond"> + <param name="method_select" value="plot" /> + <param name="field" value="test_variable" /> + <param name="path" value="default_string" /> + <param name="max_gap" value="default_string" /> + <param name="mode" value="oneplot" /> + <conditional name="history_cond"> + <param name="history_select_type" value="valid" /> + <param name="history" value="valid" /> + </conditional> + <param name="xscope" value="default_string" /> + <param name="yscope" value="default_string" /> + <param name="ax" value="default_string" /> + <param name="dfilter" value="inf" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*plot\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="tools" /> + <conditional name="method_cond"> + <param name="method_select" value="plot" /> + <param name="field" value="test_variable" /> + <param name="path" value="default_string" /> + <param name="max_gap" value="default_string" /> + <param name="mode" value="a_string" /> + <conditional name="history_cond"> + <param name="history_select_type" value="valid" /> + <param name="history" value="valid" /> + </conditional> + <param name="xscope" value="default_string" /> + <param name="yscope" value="default_string" /> + <param name="ax" value="default_string" /> + <param name="dfilter" value="inf" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*plot\((?=.*mode\s*=\s*["']a_string["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="tools" /> + <conditional name="method_cond"> + <param name="method_select" value="plot" /> + <param name="field" value="test_variable" /> + <param name="path" value="default_string" /> + <param name="max_gap" value="default_string" /> + <param name="mode" value="oneplot" /> + <conditional name="history_cond"> + <param name="history_select_type" value="valid" /> + <param name="history" value="valid" /> + </conditional> + <param name="xscope" value="a_string" /> + <param name="yscope" value="default_string" /> + <param name="ax" value="default_string" /> + <param name="dfilter" value="inf" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*plot\((?=.*xscope\s*=\s*["']a_string["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="tools" /> + <conditional name="method_cond"> + <param name="method_select" value="renameField" /> + <param name="field" value="test_variable" /> + <param name="new_name" value="default_string" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*renameField\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="tools" /> + <conditional name="method_cond"> + <param name="method_select" value="selectTime" /> + <param name="field" value="test_variable" /> + <param name="mode" value="periodic" /> + <param name="selection_field" value="default_string" /> + <param name="start" value="default_string" /> + <param name="end" value="default_string" /> + <param name="closed" value="false" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*selectTime\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="tools" /> + <conditional name="method_cond"> + <param name="method_select" value="selectTime" /> + <param name="field" value="test_variable" /> + <param name="mode" value="periodic" /> + <param name="selection_field" value="default_string" /> + <param name="start" value="default_string" /> + <param name="end" value="default_string" /> + <param name="closed" value="false" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*selectTime\((?=.*mode\s*=\s*["']periodic["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="tools" /> + <conditional name="method_cond"> + <param name="method_select" value="selectTime" /> + <param name="field" value="test_variable" /> + <param name="mode" value="selection_field" /> + <param name="selection_field" value="default_string" /> + <param name="start" value="default_string" /> + <param name="end" value="default_string" /> + <param name="closed" value="false" /> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*selectTime\((?=.*mode\s*=\s*["']selection_field["']).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="transformation" /> + <conditional name="method_cond"> + <param name="method_select" value="transform" /> + <param name="field" value="test_variable" /> + <param name="func" value="default_string" /> + <conditional name="freq_cond"> + <param name="freq_select_type" value="number" /> + <param name="freq" value="1.0" /> + </conditional> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*transform\(.*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="transformation" /> + <conditional name="method_cond"> + <param name="method_select" value="transform" /> + <param name="field" value="test_variable" /> + <param name="func" value="default_string" /> + <conditional name="freq_cond"> + <param name="freq_select_type" value="number" /> + <param name="freq" value="45.6" /> + </conditional> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*transform\((?=.*freq\s*=\s*45\.6).*\)$" /> + </assert_contents> + </output> + </test> + <test> + <param name="data" value="test1/data.csv" ftype="csv" /> + <param name="run_test_mode" value="true" /> + <repeat name="methods_repeat"> + <conditional name="module_cond"> + <param name="module_select" value="transformation" /> + <conditional name="method_cond"> + <param name="method_select" value="transform" /> + <param name="field" value="test_variable" /> + <param name="func" value="default_string" /> + <conditional name="freq_cond"> + <param name="freq_select_type" value="offset" /> + <param name="freq" value="a_string" /> + </conditional> + </conditional> + </conditional> + </repeat> + <output name="config_out" ftype="txt"> + <assert_contents> + <has_text_matching expression="test_variable;\s*transform\((?=.*freq\s*=\s*["']a_string["']).*\)$" /> + </assert_contents> + </output> + </test> + </xml> +</macros> \ No newline at end of file
