Skip to content

Commit

Permalink
remove references to remotedataset progress
Browse files Browse the repository at this point in the history
  • Loading branch information
simedw committed Jun 15, 2020
1 parent 10d91bf commit a5f61c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
10 changes: 2 additions & 8 deletions darwin/cli_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def split(dataset_slug: str, val_percentage: float, test_percentage: float, seed
def list_remote_datasets(all_teams: bool, team: Optional[str] = None):
"""Lists remote datasets with its annotation progress"""
# TODO: add listing open datasets
table = Table(["name", "images", "progress"], [Table.L, Table.R, Table.R])
table = Table(["name", "images"], [Table.L, Table.R])
datasets = []
if all_teams:
for team in _config().get_all_teams():
Expand All @@ -369,13 +369,7 @@ def list_remote_datasets(all_teams: bool, team: Optional[str] = None):
datasets = client.list_remote_datasets()

for dataset in datasets:
table.add_row(
{
"name": f"{dataset.team}/{dataset.slug}",
"images": dataset.image_count,
"progress": f"{round(dataset.progress*100,1)}%",
}
)
table.add_row({"name": f"{dataset.team}/{dataset.slug}", "images": dataset.image_count})
if len(table) == 0:
print("No dataset available.")
else:
Expand Down
4 changes: 2 additions & 2 deletions darwin/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def list_remote_datasets(self, team: Optional[str] = None) -> Iterator[RemoteDat
team=team or self.default_team,
dataset_id=dataset["id"],
image_count=dataset["num_images"],
progress=dataset["progress"],
progress=0,
client=self,
)

Expand Down Expand Up @@ -267,7 +267,7 @@ def create_dataset(self, name: str, team: Optional[str] = None) -> RemoteDataset
slug=dataset["slug"],
dataset_id=dataset["id"],
image_count=dataset["num_images"],
progress=dataset["progress"],
progress=0,
client=self,
)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="darwin-py",
version="0.5.2",
version="0.5.3",
author="V7",
author_email="info@v7labs.com",
description="Library and command line interface for darwin.v7labs.com",
Expand Down

0 comments on commit a5f61c3

Please sign in to comment.