@@ -2002,7 +2002,7 @@ def test_Slice_static_dynamic(self):
20022002 self .assertTrue (np .array_equal (dinamic_output , expected_output ))
20032003
20042004
2005- def test_Bind (self ): # TODO
2005+ def test_Bind (self ):
20062006
20072007 value = features .Value (
20082008 value = lambda input_value : input_value ,
@@ -2016,11 +2016,7 @@ def test_Bind(self): # TODO
20162016 res = pipeline_with_small_input .update ().resolve ()
20172017 self .assertEqual (res , 11 )
20182018
2019- with self .assertWarns (DeprecationWarning ):
2020- res = pipeline_with_small_input .update (input_value = 10 ).resolve ()
2021- self .assertEqual (res , 11 )
2022-
2023- def test_Bind_gaussian_noise (self ): # TODO
2019+ def test_Bind_gaussian_noise (self ):
20242020 # Define the Gaussian noise feature and bind its properties
20252021 gaussian_noise = Gaussian ()
20262022 bound_feature = features .Bind (gaussian_noise , mu = - 5 , sigma = 2 )
@@ -2035,43 +2031,12 @@ def test_Bind_gaussian_noise(self): # TODO
20352031 output_mean = np .mean (output_image )
20362032 output_std = np .std (output_image )
20372033
2038- # Assert that the mean and standard deviation are close to the bound values
2034+ # Assert that the mean and standard deviation are close to the bound
2035+ # values
20392036 self .assertAlmostEqual (output_mean , - 5 , delta = 0.2 )
20402037 self .assertAlmostEqual (output_std , 2 , delta = 0.2 )
20412038
20422039
2043- def test_BindResolve (self ): # TODO
2044-
2045- value = features .Value (
2046- value = lambda input_value : input_value ,
2047- input_value = 10 ,
2048- )
2049- value = features .Value (
2050- value = lambda input_value : input_value ,
2051- input_value = 10 ,
2052- )
2053- pipeline = (value + 10 ) / value
2054-
2055- pipeline_with_small_input = features .BindResolve (
2056- pipeline ,
2057- input_value = 1
2058- )
2059- pipeline_with_small_input = features .BindResolve (
2060- pipeline ,
2061- input_value = 1
2062- )
2063-
2064- res = pipeline .update ().resolve ()
2065- self .assertEqual (res , 2 )
2066-
2067- res = pipeline_with_small_input .update ().resolve ()
2068- self .assertEqual (res , 11 )
2069-
2070- with self .assertWarns (DeprecationWarning ):
2071- res = pipeline_with_small_input .update (input_value = 10 ).resolve ()
2072- self .assertEqual (res , 11 )
2073-
2074-
20752040 def test_BindUpdate (self ): # DEPRECATED
20762041 value = features .Value (
20772042 value = lambda input_value : input_value ,
0 commit comments