Skip to content

Commit

Permalink
fixing exports (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fl4m3Ph03n1x authored Apr 7, 2022
1 parent e5f81bf commit d99a633
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions darwin/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ def _run(args: Namespace, parser: ArgumentParser) -> None:
elif args.action == "report":
f.dataset_report(args.dataset, args.granularity or "day", args.pretty)
elif args.action == "export":
f.export_dataset(
args.dataset, args.include_url_token, args.name, args.annotation_class, args.include_authorship
)
f.export_dataset(args.dataset, args.include_url_token, args.name, args.class_ids, args.include_authorship)
elif args.action == "files":
f.list_files(args.dataset, args.status, args.path, args.only_filenames, args.sort_by)
elif args.action == "releases":
Expand Down
2 changes: 1 addition & 1 deletion darwin/cli_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def export_dataset(
Name of the release.
annotation_class_ids : Optional[List[str]], default: None
List of the classes to filter.
include_authorship : bool
include_authorship : bool, default: False
If ``True`` include annotator and reviewer metadata for each annotation.
"""
client: Client = _load_client(offline=False)
Expand Down
2 changes: 1 addition & 1 deletion darwin/dataset/remote_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ def export(
----------
name : str
Name of the release.
annotation_class_ids : List[str]
annotation_class_ids : Optional[List[str]], default: None
List of the classes to filter.
include_url_token : bool, default: False
Should the image url in the export include a token enabling access without team
Expand Down
2 changes: 1 addition & 1 deletion darwin/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def __init__(self):
parser_export.add_argument("dataset", type=str, help="Remote dataset name to export.")
parser_export.add_argument("name", type=str, help="Name with with the version gets tagged.")
parser_export.add_argument(
"annotation_class",
"--class-ids",
type=str,
nargs="+",
help=(
Expand Down

0 comments on commit d99a633

Please sign in to comment.