diff --git a/smt/utils/kriging.py b/smt/utils/kriging.py index 605aa749f..6b3a38214 100644 --- a/smt/utils/kriging.py +++ b/smt/utils/kriging.py @@ -303,6 +303,7 @@ def gower_componentwise_distances( z_num_is_acting = z_is_acting[:, ~cat_features] num_is_decreed = is_decreed[~cat_features] num_bounds = design_space.get_num_bounds()[~cat_features, :] + Z_scale = 1 if num_bounds.shape[0] > 0: Z_offset = num_bounds[:, 0] Z_max = num_bounds[:, 1]