supervisely 6.73.396__py3-none-any.whl → 6.73.397__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,6 +32,7 @@ class Sampling(Widget):
32
32
  widgth: int = 370,
33
33
  widget_id: str = None,
34
34
  file_path: str = __file__,
35
+ copy_annotations: bool = True,
35
36
  ):
36
37
  super().__init__(widget_id, file_path)
37
38
  if not input_selectable and project_id is None:
@@ -53,6 +54,7 @@ class Sampling(Widget):
53
54
  self.output_project_id = output_project_id
54
55
  self.output_project_selectable = output_project_selectable
55
56
  self.widgth = widgth
57
+ self._copy_annotations = copy_annotations
56
58
  self.project_info = (
57
59
  self._api.project.get_info_by_id(self.project_id) if self.project_id else None
58
60
  )
@@ -129,7 +131,7 @@ class Sampling(Widget):
129
131
  widgets=[self.resize_row, self.resize_hw_container], gap=0
130
132
  )
131
133
  self.copy_annotations_checkbox = Checkbox(
132
- Text("Copy annotations from source project", font_size=13)
134
+ Text("Copy annotations from source project", font_size=13), checked=self._copy_annotations
133
135
  )
134
136
  self.copy_annotations_row = Flexbox(widgets=[self.copy_annotations_checkbox])
135
137
 
@@ -416,14 +416,14 @@ def _update_meta(
416
416
  api.project.get_meta(dst_project_id)
417
417
  )
418
418
  dst_project_meta = context.project_meta[dst_project_id]
419
- dst_project_meta.merge(src_project_meta)
419
+ dst_project_meta = dst_project_meta.merge(src_project_meta)
420
420
  if dst_project_meta.get_tag_meta(VIDEO_OBJECT_TAG_META.name) is None:
421
- dst_project_meta.add_tag_meta(VIDEO_OBJECT_TAG_META)
421
+ dst_project_meta = dst_project_meta.add_tag_meta(VIDEO_OBJECT_TAG_META)
422
422
  if dst_project_meta.get_tag_meta(AUTO_TRACKED_TAG_META.name) is None:
423
- dst_project_meta.add_tag_meta(AUTO_TRACKED_TAG_META)
423
+ dst_project_meta = dst_project_meta.add_tag_meta(AUTO_TRACKED_TAG_META)
424
424
 
425
425
  if dst_project_meta != src_project_meta:
426
- api.project.update_meta(dst_project_id, dst_project_meta.to_json())
426
+ dst_project_meta = api.project.update_meta(dst_project_id, dst_project_meta.to_json())
427
427
  context.project_meta[dst_project_id] = dst_project_meta
428
428
 
429
429
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: supervisely
3
- Version: 6.73.396
3
+ Version: 6.73.397
4
4
  Summary: Supervisely Python SDK.
5
5
  Home-page: https://github.com/supervisely/supervisely
6
6
  Author: Supervisely
@@ -431,7 +431,7 @@ supervisely/app/widgets/run_app_button/run_app_button.py,sha256=cr07jabP1vF-rvH0
431
431
  supervisely/app/widgets/run_app_button/script.js,sha256=6rlluiW1hbHN7swtNSoFX9Gmrz2U-nRNOwoUpnSBmiw,2736
432
432
  supervisely/app/widgets/run_app_button/template.html,sha256=rFIYPC9hl2b9H_LR1Kr_1RCpzfAAd-FBcmTmt75YXnE,511
433
433
  supervisely/app/widgets/sampling/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
434
- supervisely/app/widgets/sampling/sampling.py,sha256=NVMZ4Tmsl5m0FOtAtsKNrXZtoVQM62vm0NRSxpLjPXA,22094
434
+ supervisely/app/widgets/sampling/sampling.py,sha256=UWDb1uZ71W0h9pa7rXVyj1999zaAKGIHh250CgUJ0l0,22215
435
435
  supervisely/app/widgets/scatter_chart/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
436
436
  supervisely/app/widgets/scatter_chart/scatter_chart.py,sha256=nX7fZbWsDiMjOek5FvIHgKbnBwQ-ol_V3XvnoAnz59c,4832
437
437
  supervisely/app/widgets/select/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -1075,7 +1075,7 @@ supervisely/user/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
1075
1075
  supervisely/user/user.py,sha256=4GSVIupPAxWjIxZmUtH3Dtms_vGV82-49kM_aaR2gBI,319
1076
1076
  supervisely/video/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1077
1077
  supervisely/video/import_utils.py,sha256=b1Nl0gscNsV0iB9nWPeqt8GrkhOeuTZsN1p-d3gDUmE,544
1078
- supervisely/video/sampling.py,sha256=-Gp1Z4kxkyymjsmDkrSxBpDhBJAZ4PRy7ic2IAQhx4w,20121
1078
+ supervisely/video/sampling.py,sha256=jTtXAZrq_hkxFQSSdwFp-lYUKX8HZf1nO-4trzMCQis,20197
1079
1079
  supervisely/video/video.py,sha256=QGV1R3qNOJ0zgsfItqv-e7mbEnWqFpE3rcJwt7izC28,20206
1080
1080
  supervisely/video_annotation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1081
1081
  supervisely/video_annotation/constants.py,sha256=_gW9iMhVk1w_dUaFiaiyXn66mt13S6bkxC64xpjP-CU,529
@@ -1114,9 +1114,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
1114
1114
  supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
1115
1115
  supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
1116
1116
  supervisely_lib/__init__.py,sha256=7-3QnN8Zf0wj8NCr2oJmqoQWMKKPKTECvjH9pd2S5vY,159
1117
- supervisely-6.73.396.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1118
- supervisely-6.73.396.dist-info/METADATA,sha256=IvMoQjk-TwkKaKU3kEJ39kiZRrQqsFO0nBk0-7SxHuA,35254
1119
- supervisely-6.73.396.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
1120
- supervisely-6.73.396.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1121
- supervisely-6.73.396.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1122
- supervisely-6.73.396.dist-info/RECORD,,
1117
+ supervisely-6.73.397.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1118
+ supervisely-6.73.397.dist-info/METADATA,sha256=IIC5TyRVz6pnTYzbaQVNCOYReuxJd8xM0TySIw_WcCs,35254
1119
+ supervisely-6.73.397.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
1120
+ supervisely-6.73.397.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1121
+ supervisely-6.73.397.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1122
+ supervisely-6.73.397.dist-info/RECORD,,