Skip to content

Commit a5f61c3

Browse files
committed
remove references to remotedataset progress
1 parent 10d91bf commit a5f61c3

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

darwin/cli_functions.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def split(dataset_slug: str, val_percentage: float, test_percentage: float, seed
358358
def list_remote_datasets(all_teams: bool, team: Optional[str] = None):
359359
"""Lists remote datasets with its annotation progress"""
360360
# TODO: add listing open datasets
361-
table = Table(["name", "images", "progress"], [Table.L, Table.R, Table.R])
361+
table = Table(["name", "images"], [Table.L, Table.R])
362362
datasets = []
363363
if all_teams:
364364
for team in _config().get_all_teams():
@@ -369,13 +369,7 @@ def list_remote_datasets(all_teams: bool, team: Optional[str] = None):
369369
datasets = client.list_remote_datasets()
370370

371371
for dataset in datasets:
372-
table.add_row(
373-
{
374-
"name": f"{dataset.team}/{dataset.slug}",
375-
"images": dataset.image_count,
376-
"progress": f"{round(dataset.progress*100,1)}%",
377-
}
378-
)
372+
table.add_row({"name": f"{dataset.team}/{dataset.slug}", "images": dataset.image_count})
379373
if len(table) == 0:
380374
print("No dataset available.")
381375
else:

darwin/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def list_remote_datasets(self, team: Optional[str] = None) -> Iterator[RemoteDat
215215
team=team or self.default_team,
216216
dataset_id=dataset["id"],
217217
image_count=dataset["num_images"],
218-
progress=dataset["progress"],
218+
progress=0,
219219
client=self,
220220
)
221221

@@ -267,7 +267,7 @@ def create_dataset(self, name: str, team: Optional[str] = None) -> RemoteDataset
267267
slug=dataset["slug"],
268268
dataset_id=dataset["id"],
269269
image_count=dataset["num_images"],
270-
progress=dataset["progress"],
270+
progress=0,
271271
client=self,
272272
)
273273

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="darwin-py",
8-
version="0.5.2",
8+
version="0.5.3",
99
author="V7",
1010
author_email="[email protected]",
1111
description="Library and command line interface for darwin.v7labs.com",

0 commit comments

Comments
 (0)