Skip to content

Commit a50bec8

Browse files
author
Matt Sokoloff
committed
rename tms param to tiled_imagery
1 parent b53ada5 commit a50bec8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/model_assisted_labeling/tiled_imagery_mal.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@
185185
"project = client.create_project(name=\"tms_mal_project\")\n",
186186
"dataset = client.create_dataset(name=\"tms_mal_dataset\")\n",
187187
"\n",
188-
"# DataRows can only be created as bulk operations for tms data\n",
188+
"# DataRows can only be created as bulk operations for tiled imagery data\n",
189189
"\n",
190-
"dataset.create_data_rows([img_info], tms = True)\n",
190+
"dataset.create_data_rows([img_info], tiled_imagery = True)\n",
191191
"editor = next(\n",
192192
" client.get_labeling_frontends(where=LabelingFrontend.name == \"Editor\"))\n",
193193
"project.setup(editor, ontology_builder.asdict())\n",

labelbox/schema/dataset.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def create_data_row(self, **kwargs):
6767

6868
return self.client._create(DataRow, kwargs)
6969

70-
def create_data_rows(self, items, tms=False):
70+
def create_data_rows(self, items, tiled_imagery=False):
7171
""" Creates multiple DataRow objects based on the given `items`.
7272
7373
Each element in `items` can be either a `str` or a `dict`. If
@@ -82,15 +82,15 @@ def create_data_rows(self, items, tms=False):
8282
>>> "path/to/file2.jpg"
8383
>>> ])
8484
85-
If tms = True, See the link below for supported fields:
85+
If tiled_imagery = True, See the link below for supported fields:
8686
https://docs.labelbox.com/data-model/en/index-en#tiled-imagery-import
8787
8888
For an example showing how to upload tiled data_rows see the following notebook:
8989
https://github.com/Labelbox/labelbox-python/blob/ms/develop/model_assisted_labeling/tiled_imagery_mal.ipynb
9090
9191
Args:
9292
items (iterable of (dict or str)): See above for details.
93-
tms (bool): Indicates whether or not the data rows contain tiled imagery
93+
tiled_imagery (bool): Indicates whether or not the data rows contain tiled imagery
9494
9595
Returns:
9696
Task representing the data import on the server side. The Task

0 commit comments

Comments
 (0)