Skip to content

Commit

Permalink
running black...
Browse files Browse the repository at this point in the history
  • Loading branch information
OOAmusat committed Aug 19, 2024
1 parent b509086 commit 555bf4c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
16 changes: 12 additions & 4 deletions idaes/core/surrogate/pysmo/tests/test_kriging.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ def test__init__07(self, array_type):

@pytest.mark.unit
@pytest.mark.parametrize("array_type", [np.array, pd.DataFrame])
@pytest.mark.filterwarnings("ignore:invalid value encountered in log:RuntimeWarning")
@pytest.mark.filterwarnings(
"ignore:invalid value encountered in log:RuntimeWarning"
)
def test__init__08(self, array_type):
input_array = array_type(self.test_data)
file_name = "test_filename.pickle"
Expand All @@ -108,7 +110,9 @@ def test__init__08(self, array_type):

@pytest.mark.unit
@pytest.mark.parametrize("array_type", [np.array, pd.DataFrame])
@pytest.mark.filterwarnings("ignore:invalid value encountered in log:RuntimeWarning")
@pytest.mark.filterwarnings(
"ignore:invalid value encountered in log:RuntimeWarning"
)
def test__init__09(self, array_type):
input_array = array_type(self.test_data)
file_name1 = "test_filename1.pickle"
Expand Down Expand Up @@ -405,7 +409,9 @@ def test_r2_calculation(self, array_type):

@pytest.mark.unit
@pytest.mark.parametrize("array_type", [np.array, pd.DataFrame])
@pytest.mark.filterwarnings("ignore:invalid value encountered in log:RuntimeWarning")
@pytest.mark.filterwarnings(
"ignore:invalid value encountered in log:RuntimeWarning"
)
def test_predict_output_01(self, array_type):
input_array = array_type(self.training_data)
np.random.seed(0)
Expand All @@ -416,7 +422,9 @@ def test_predict_output_01(self, array_type):

@pytest.mark.unit
@pytest.mark.parametrize("array_type", [np.array, pd.DataFrame])
@pytest.mark.filterwarnings("ignore:invalid value encountered in log:RuntimeWarning")
@pytest.mark.filterwarnings(
"ignore:invalid value encountered in log:RuntimeWarning"
)
def test_predict_output(self, array_type):
input_array = array_type(self.training_data)
np.random.seed(0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,9 @@ def test_thin_plate_spline_transformation(self):

@pytest.mark.unit
@pytest.mark.parametrize("array_type", [np.array, pd.DataFrame])
@pytest.mark.filterwarnings("ignore:(invalid value|divide by zero) encountered in (multiply|log):RuntimeWarning")
@pytest.mark.filterwarnings(
"ignore:(invalid value|divide by zero) encountered in (multiply|log):RuntimeWarning"
)
def test_basis_generation(self, array_type):
input_array = array_type(self.training_data)
scaled = FeatureScaling.data_scaling_minmax(input_array[0:3])
Expand Down Expand Up @@ -2075,7 +2077,9 @@ def test_rbf_predict_output_05(self, array_type):

@pytest.mark.unit
@pytest.mark.parametrize("array_type", [np.array, pd.DataFrame])
@pytest.mark.filterwarnings("ignore:(invalid value|divide by zero) encountered in (multiply|log):RuntimeWarning")
@pytest.mark.filterwarnings(
"ignore:(invalid value|divide by zero) encountered in (multiply|log):RuntimeWarning"
)
def test_rbf_predict_output_06(self, array_type):
input_array = array_type(self.training_data)
data_feed = RadialBasisFunctions(
Expand Down

0 comments on commit 555bf4c

Please sign in to comment.