Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 2f4e238

Browse files
Update client.py
1 parent e5cc666 commit 2f4e238

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

labelpandas/client.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def export_to_table(
4343
flattened_labels_dict = labelbase.downloader.export_and_flatten_labels(
4444
client=self.lb_client, project=project,
4545
include_metadata=include_metadata, include_performance=include_performance, include_agreement=include_agreement,
46-
verbose=verbose, mask_method=mask_method, divider=divider
46+
mask_method=mask_method, verbose=verbose, divider=divider
4747
)
4848

4949
table = pd.DataFrame.from_dict(flattened_labels_dict)
@@ -55,7 +55,7 @@ def export_to_table(
5555

5656
def create_data_rows_from_table(
5757
self, table:pd.core.frame.DataFrame, dataset_id:str="", project_id:str="", priority:int=5,
58-
upload_method:str="", skip_duplicates:bool=False, verbose:bool=False, mask_method:str="png", divider="///"):
58+
upload_method:str="", skip_duplicates:bool=False, mask_method:str="png", verbose:bool=False, divider="///"):
5959
""" Creates Labelbox data rows given a Pandas table and a Labelbox Dataset
6060
Args:
6161
table : Required (pandas.core.frame.DataFrame) - Pandas DataFrame
@@ -66,11 +66,11 @@ def create_data_rows_from_table(
6666
skip_duplicates : Optional (bool) - Determines how to handle if a global key to-be-uploaded is already in use
6767
If True, will skip duplicate global_keys and not upload them
6868
If False, will generate a unique global_key with a suffix {divider} + "1", "2" and so on
69-
verbose : Optional (bool) - If True, prints details about code execution; if False, prints minimal information
7069
mask_method : Optional (str) - Specifies your input mask data format
7170
- "url" means your mask is an accessible URL (must provide color)
7271
- "array" means your mask is a numpy array (must provide color)
73-
- "png" means your mask value is a png-string
72+
- "png" means your mask value is a png-string
73+
verbose : Optional (bool) - If True, prints details about code execution; if False, prints minimal information
7474
divider : Optional (str) - String delimiter for schema name keys and suffix added to duplocate global keys
7575
"""
7676
# Create a metadata_index, attachment_index, and annotation_index
@@ -119,7 +119,7 @@ def create_data_rows_from_table(
119119
dataset_id_col=dataset_id_col, dataset_id=dataset_id,
120120
project_id_col=project_id_col, project_id=project_id,
121121
metadata_index=metadata_index, attachment_index=attachment_index, annotation_index=annotation_index,
122-
upload_method=upload_method, divider=divider, mask_method=mask_method, verbose=verbose
122+
upload_method=upload_method, mask_method=mask_method, divider=divider, verbose=verbose
123123
)
124124

125125
# Upload your data rows to Labelbox - update upload_dict if global keys are modified during upload

0 commit comments

Comments
 (0)