Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Shashank Mittal <[email protected]>
  • Loading branch information
shashank-iitbhu committed Aug 26, 2024
1 parent c3eb92b commit 099d016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/suggestion/v1beta1/internal/search_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def __str__(self):

@staticmethod
def convert_parameter(p):
distribution = p.feasible_space.distribution if p.feasible_space.distribution and p.feasible_space.distribution != api.DISTRIBUTION_UNKNOWN else None
distribution = p.feasible_space.distribution if p.feasible_space.distribution != "" and p.feasible_space.distribution is not None and p.feasible_space.distribution != api.DISTRIBUTION_UNKNOWN else None

if p.parameter_type == api.INT:
# Default value for INT parameter step is 1
Expand Down

0 comments on commit 099d016

Please sign in to comment.