Skip to content

Commit

Permalink
updating version requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
brimoor committed Jan 29, 2024
1 parent cfc3a17 commit fedfab4
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion plugins/annotation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ def execute(self, ctx):
kwargs = {}

if delegate:
# can remove check if we require `fiftyone>=0.24`
# can remove check if we require `fiftyone>=0.23.3`
if (
"progress"
in inspect.signature(ctx.dataset.load_annotations).parameters
Expand Down
10 changes: 5 additions & 5 deletions plugins/brain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def execute(self, ctx):
kwargs = {}

if delegate:
# can remove check if we require `fiftyone>=0.24`
# can remove check if we require `fiftyone>=0.23.3`
if (
"progress"
in inspect.signature(fob.compute_visualization).parameters
Expand Down Expand Up @@ -199,7 +199,7 @@ def execute(self, ctx):
target_view = _get_target_view(ctx, target)

if delegate:
# can remove check if we require `fiftyone>=0.24`
# can remove check if we require `fiftyone>=0.23.3`
if (
"progress"
in inspect.signature(fob.compute_similarity).parameters
Expand Down Expand Up @@ -1003,7 +1003,7 @@ def execute(self, ctx):
kwargs = {}

if delegate:
# can remove check if we require `fiftyone>=0.24`
# can remove check if we require `fiftyone>=0.23.3`
if (
"progress"
in inspect.signature(fob.compute_uniqueness).parameters
Expand Down Expand Up @@ -1103,7 +1103,7 @@ def execute(self, ctx):
target_view = _get_target_view(ctx, target)

if delegate:
# can remove check if we require `fiftyone>=0.24`
# can remove check if we require `fiftyone>=0.23.3`
if (
"progress"
in inspect.signature(fob.compute_mistakenness).parameters
Expand Down Expand Up @@ -1299,7 +1299,7 @@ def execute(self, ctx):
kwargs = {}

if delegate:
# can remove check if we require `fiftyone>=0.24`
# can remove check if we require `fiftyone>=0.23.3`
if (
"progress"
in inspect.signature(fob.compute_hardness).parameters
Expand Down
2 changes: 1 addition & 1 deletion plugins/evaluation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def execute(self, ctx):
eval_fcn = target_view.evaluate_segmentations

if delegate:
# can remove check if we require `fiftyone>=0.24`
# can remove check if we require `fiftyone>=0.23.3`
if "progress" in inspect.signature(eval_fcn).parameters:
progress = lambda pb: ctx.set_progress(progress=pb.progress)
kwargs["progress"] = fo.report_progress(progress, dt=5.0)
Expand Down
10 changes: 5 additions & 5 deletions plugins/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ def _import_media_only(ctx):
if delegate:
kwargs = {}

# can remove check if we require `fiftyone>=0.24`
# can remove check if we require `fiftyone>=0.23.3`
if "progress" in inspect.signature(ctx.dataset.add_samples).parameters:
progress = lambda pb: ctx.set_progress(progress=pb.progress)
kwargs["progress"] = fo.report_progress(progress, dt=5.0)
Expand Down Expand Up @@ -867,7 +867,7 @@ def _import_media_and_labels(ctx):
kwargs["label_types"] = label_types

if delegate:
# can remove check if we require `fiftyone>=0.24`
# can remove check if we require `fiftyone>=0.23.3`
if "progress" in inspect.signature(ctx.dataset.add_dir).parameters:
progress = lambda pb: ctx.set_progress(progress=pb.progress)
kwargs["progress"] = fo.report_progress(progress, dt=5.0)
Expand Down Expand Up @@ -914,7 +914,7 @@ def _import_labels_only(ctx):
kwargs["label_types"] = label_types

if delegate:
# can remove check if we require `fiftyone>=0.24`
# can remove check if we require `fiftyone>=0.23.3`
if "progress" in inspect.signature(ctx.dataset.merge_dir).parameters:
progress = lambda pb: ctx.set_progress(progress=pb.progress)
kwargs["progress"] = fo.report_progress(progress, dt=5.0)
Expand Down Expand Up @@ -2089,7 +2089,7 @@ def _export_samples(ctx):
kwargs["abs_paths"] = abs_paths

if delegate:
# can remove check if we require `fiftyone>=0.24`
# can remove check if we require `fiftyone>=0.23.3`
if "progress" in inspect.signature(target_view.export).parameters:
progress = lambda pb: ctx.set_progress(progress=pb.progress)
kwargs["progress"] = fo.report_progress(progress, dt=5.0)
Expand Down Expand Up @@ -2560,7 +2560,7 @@ def execute(self, ctx):
kwargs = {}

if delegate:
# can remove check if we require `fiftyone>=0.24`
# can remove check if we require `fiftyone>=0.23.3`
if (
"progress"
in inspect.signature(target_view.draw_labels).parameters
Expand Down
4 changes: 2 additions & 2 deletions plugins/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,7 @@ def execute(self, ctx):
if delegate:
kwargs = {}

# can remove check if we require `fiftyone>=0.24`
# can remove check if we require `fiftyone>=0.23.3`
if (
"progress"
in inspect.signature(view.compute_metadata).parameters
Expand Down Expand Up @@ -1518,7 +1518,7 @@ def execute(self, ctx):
kwargs = {}

if delegate:
# can remove check if we require `fiftyone>=0.24`
# can remove check if we require `fiftyone>=0.23.3`
if (
"progress"
in inspect.signature(foui.transform_images).parameters
Expand Down
4 changes: 2 additions & 2 deletions plugins/zoo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def execute(self, ctx):
dataset_name = _get_zoo_dataset_name(ctx)

if delegate:
# can remove check if we require `fiftyone>=0.24`
# can remove check if we require `fiftyone>=0.23.3`
if (
"progress"
in inspect.signature(foz.load_zoo_dataset).parameters
Expand Down Expand Up @@ -458,7 +458,7 @@ def execute(self, ctx):
kwargs = {}

if delegate:
# can remove check if we require `fiftyone>=0.24`
# can remove check if we require `fiftyone>=0.23.3`
if (
"progress"
in inspect.signature(target_view.apply_model).parameters
Expand Down

0 comments on commit fedfab4

Please sign in to comment.