Skip to content

Commit 572938a

Browse files
authored
make import compatible with earlier chariot versions (#104)
1 parent 7251a2e commit 572938a

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

client/velour/integrations/chariot.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,7 @@
2525

2626
try:
2727
from chariot.config import settings
28-
from chariot.datasets.dataset import Dataset
29-
from chariot.datasets.dataset_version import (
30-
get_latest_vertical_dataset_version,
31-
)
32-
28+
from chariot.datasets import Dataset, get_latest_vertical_dataset_version
3329
except ModuleNotFoundError:
3430
***REMOVED***
3531

@@ -41,7 +37,6 @@ def retrieve_chariot_manifest(manifest_url: str):
4137

4238
# Create a temporary file
4339
with tempfile.TemporaryFile(mode="w+b") as f:
44-
4540
# Download compressed jsonl file
4641
response = requests.get(manifest_url, stream=True)
4742

@@ -110,7 +105,6 @@ def chariot_parse_image_segmentation_annotation(
110105

111106
annotated_regions = {}
112107
for annotation in datum["annotations"]:
113-
114108
annotation_label = annotation["class_label"]
115109

116110
hole = None

0 commit comments

Comments
 (0)