Skip to content

Simplify some code. #1857

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions libs/labelbox/src/labelbox/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,21 +955,10 @@ def create_model_evaluation_project(
>>> This creates a new project with no data rows.

"""
autogenerate_data_rows = False
dataset_name_or_id = None
append_to_existing_dataset = None
dataset_name_or_id = dataset_id or dataset_name
append_to_existing_dataset = bool(dataset_id)

if dataset_id or dataset_name:
autogenerate_data_rows = True

if dataset_id:
append_to_existing_dataset = True
dataset_name_or_id = dataset_id
elif dataset_name:
append_to_existing_dataset = False
dataset_name_or_id = dataset_name

if autogenerate_data_rows:
if dataset_name_or_id:
kwargs["dataset_name_or_id"] = dataset_name_or_id
kwargs["append_to_existing_dataset"] = append_to_existing_dataset
if data_row_count is None:
Expand Down
Loading