Skip to content

Commit

Permalink
Remove old and unused check for binary allowed values
Browse files Browse the repository at this point in the history
  • Loading branch information
jessica-cheng committed Dec 10, 2024
1 parent 2ad4f9e commit 0f21033
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions breadbox/breadbox/crud/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,6 @@ def add_matrix_dataset(

allowed_values = dataset_in.allowed_values

def is_binary_category(allowed_values_list):
if allowed_values_list and len(allowed_values_list) == 2:
allowed_values_set = set(allowed_values_list)
return {"True", "False"} == allowed_values_set
else:
return False

dataset = MatrixDataset(
id=dataset_in.id,
given_id=dataset_in.given_id,
Expand Down

0 comments on commit 0f21033

Please sign in to comment.