dtlpy 1.118.13__py3-none-any.whl → 1.118.15__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.
dtlpy/__version__.py CHANGED
@@ -1 +1 @@
1
- version = '1.118.13'
1
+ version = '1.118.15'
@@ -1121,13 +1121,14 @@ class Annotation(entities.BaseEntity):
1121
1121
  annotation_definition=dl.Box(top=10,left=10,bottom=100, right=100,label='labelName'))
1122
1122
  )
1123
1123
  """
1124
- # handle fps
1125
- if self.fps is None:
1126
- if self._item is not None:
1127
- if self._item.fps is not None:
1128
- self.fps = self._item.fps
1129
- if self.fps is None:
1130
- raise PlatformException('400', 'Annotation must have fps in order to perform this action')
1124
+ # handle fps - only needed if converting from time to frames
1125
+ if frame_num is None or (end_frame_num is None and end_time is not None):
1126
+ if self.fps is None:
1127
+ if self._item is not None:
1128
+ if self._item.fps is not None:
1129
+ self.fps = self._item.fps
1130
+ if self.fps is None:
1131
+ raise PlatformException('400', 'Annotation must have fps in order to perform this action')
1131
1132
 
1132
1133
  if frame_num is None:
1133
1134
  frame_num = int(np.round(start_time * self.fps))
@@ -1167,13 +1168,6 @@ class Annotation(entities.BaseEntity):
1167
1168
  annotation_definition=dl.Box(top=10,left=10,bottom=100, right=100,label='labelName'))
1168
1169
  )
1169
1170
  """
1170
- # handle fps
1171
- if self.fps is None:
1172
- if self._item is not None:
1173
- if self._item.fps is not None:
1174
- self.fps = self._item.fps
1175
- if self.fps is None:
1176
- raise PlatformException('400', 'Annotation must have fps in order to perform this action')
1177
1171
 
1178
1172
  # if this is first frame
1179
1173
  if self.annotation_definition is None:
dtlpy/entities/dataset.py CHANGED
@@ -290,6 +290,14 @@ class Dataset(entities.BaseEntity):
290
290
  self._ontology_ids += recipe.ontology_ids
291
291
  return self._ontology_ids
292
292
 
293
+
294
+ @property
295
+ def project_id(self):
296
+ _project_id = None
297
+ if self.projects is not None and len(self.projects) > 0:
298
+ _project_id = self.projects[0]
299
+ return _project_id
300
+
293
301
  @_repositories.default
294
302
  def set_repositories(self):
295
303
  reps = namedtuple('repositories',
@@ -549,7 +549,7 @@ class Tasks:
549
549
  priority=entities.TaskPriority.MEDIUM,
550
550
  consensus_percentage=None,
551
551
  consensus_assignees=None,
552
- scoring=True,
552
+ scoring=False,
553
553
  limit=None,
554
554
  wait=True,
555
555
  enforce_video_conversion=True,
@@ -644,7 +644,7 @@ class Tasks:
644
644
  consensus_task_type=entities.ConsensusTaskType.QUALIFICATION,
645
645
  consensus_percentage=consensus_percentage,
646
646
  consensus_assignees=consensus_assignees,
647
- scoring=True,
647
+ scoring=False,
648
648
  limit=limit,
649
649
  wait=wait,
650
650
  enforce_video_conversion=enforce_video_conversion,
@@ -666,7 +666,7 @@ class Tasks:
666
666
  consensus_task_type: entities.ConsensusTaskType = entities.ConsensusTaskType.CONSENSUS,
667
667
  consensus_percentage=None,
668
668
  consensus_assignees=None,
669
- scoring=True,
669
+ scoring=False,
670
670
  limit=None,
671
671
  wait=True,
672
672
  enforce_video_conversion=True,
@@ -976,7 +976,7 @@ class Tasks:
976
976
  consensus_task_type=None,
977
977
  consensus_percentage=None,
978
978
  consensus_assignees=None,
979
- scoring=True,
979
+ scoring=False,
980
980
  enforce_video_conversion=True,
981
981
  ) -> entities.Task:
982
982
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dtlpy
3
- Version: 1.118.13
3
+ Version: 1.118.15
4
4
  Summary: SDK and CLI for Dataloop platform
5
5
  Home-page: https://github.com/dataloop-ai/dtlpy
6
6
  Author: Dataloop Team
@@ -1,5 +1,5 @@
1
1
  dtlpy/__init__.py,sha256=p9qDLEQ01cTj0Xx8FkxJPHSmP7LMHMv8b5-ZWW1FPrU,20625
2
- dtlpy/__version__.py,sha256=rKb0jeJZoFfB0Nvl7WNtP0jvSvA4lP7Psb-TendlWlQ,21
2
+ dtlpy/__version__.py,sha256=a7Ac7-Ik18nb6w9v4mao9bbnPkOuHmEDapo3mrld8EI,21
3
3
  dtlpy/exceptions.py,sha256=EQCKs3pwhwZhgMByQN3D3LpWpdxwcKPEEt-bIaDwURM,2871
4
4
  dtlpy/new_instance.py,sha256=XegQav2hzPrPAUzuRFvUIGSPidoK-rbb02Q43NPsIpo,9982
5
5
  dtlpy/assets/__init__.py,sha256=D_hAa6NM8Zoy32sF_9b7m0b7I-BQEyBFg8-9Tg2WOeo,976
@@ -45,7 +45,7 @@ dtlpy/dlp/dlp.py,sha256=Zv9yoXwNAx4gkED-JiayN-ZkX2dPn4FB0SDx9qc7muo,4404
45
45
  dtlpy/dlp/parser.py,sha256=p-TFaiAU2c3QkI97TXzL2LDR3Eq0hGDFrTc9J2jWLh4,30551
46
46
  dtlpy/entities/__init__.py,sha256=tHndgUHZOaiXJdOY-NTvGoHcJ29EkGzz389sWQPWyaI,5050
47
47
  dtlpy/entities/analytic.py,sha256=6bMG4FD7VIDr3ca8hJ25yd9IyAuzPdaN1lsV4VD7z2Q,13739
48
- dtlpy/entities/annotation.py,sha256=OPnkYtSC6C87tc8gWPgaPXSJmhsdZsDmg4SEM1hTJpY,66666
48
+ dtlpy/entities/annotation.py,sha256=vE-y9FcBXS_ljHgoeXVQmcfxok-XNRnEaBhXPmBVJO0,66506
49
49
  dtlpy/entities/annotation_collection.py,sha256=CEYSBHhhDkC0VJdHsBSrA6TgdKGMcKeI3tFM40UJwS8,29838
50
50
  dtlpy/entities/app.py,sha256=zGqJYSpq7r6D4jauSCk5vt2lqlaolFSoDvSISLa0oyA,6997
51
51
  dtlpy/entities/app_module.py,sha256=0UiAbBX1q8iEImi3nY7ySWZZHoRRwu0qUXmyXmgVAc4,3645
@@ -57,7 +57,7 @@ dtlpy/entities/codebase.py,sha256=7ZxEGhG_52mdZWfjg9ge6vkgLf3NDh1INZMkCHns-6Y,88
57
57
  dtlpy/entities/collection.py,sha256=FPPPfIxOsBG1ujORPJVq8uXyF8vhIqC6N4EiI9SJzl0,1160
58
58
  dtlpy/entities/command.py,sha256=5RMQYjOGLRF8JZd7QFAPyE8utsp4eZzLApI2dEAbaqo,5301
59
59
  dtlpy/entities/compute.py,sha256=egdoRQCaJ2e5E3bA72n0nUmUfIjWBhD9sWr8nTWI3G8,15031
60
- dtlpy/entities/dataset.py,sha256=p0AmaYsX8IlUr8lkJphXG-ke6EcONa8ediwZo2o6PgQ,55425
60
+ dtlpy/entities/dataset.py,sha256=S_l3Bu2nmbqgN7eroNkRrXt7_2bI9V_1r0nZKTc_obY,55629
61
61
  dtlpy/entities/directory_tree.py,sha256=Rni6pLSWytR6yeUPgEdCCRfTg_cqLOdUc9uCqz9KT-Q,1186
62
62
  dtlpy/entities/dpk.py,sha256=XrK8X8p4Ag6LMjDrDpMstY-h_yTll_sMmKTZT6bLbWE,17923
63
63
  dtlpy/entities/driver.py,sha256=usyWqlM8KxQ-L9uCTSAmPXCu2dU4fordAN8uL0I2wRM,7720
@@ -191,7 +191,7 @@ dtlpy/repositories/schema.py,sha256=kTKDrbwm7BfQnBAK81LpAl9ChNFdyUweSLNazlJJhjk,
191
191
  dtlpy/repositories/service_drivers.py,sha256=rxbhLUtT7TCbkVxH4HJtFT9ywcikByPFdX7_4kiTiK0,6766
192
192
  dtlpy/repositories/services.py,sha256=LvZCE5_uxsK886sGCSaiZuaRnYbHFSrR2P4G_MlJopY,68856
193
193
  dtlpy/repositories/settings.py,sha256=HHYSGub5Y6cQ746pBfvlQndsgBj1UoNFupa2otgvsWI,11645
194
- dtlpy/repositories/tasks.py,sha256=cnQBTehIs2OaEfwtXC1YaARV5zXREsUz7sKFW9avOMg,63357
194
+ dtlpy/repositories/tasks.py,sha256=ocEEXsLUAVolMbOfdSeeZEwupNH4FMZrjs-odjESSQ0,63361
195
195
  dtlpy/repositories/times_series.py,sha256=m-bKFEgiZ13yQNelDjBfeXMUy_HgsPD_JAHj1GVx9fU,11420
196
196
  dtlpy/repositories/triggers.py,sha256=izdNyCN1gDc5uo7AXntso0HSMTDIzGFUp-dSEz8cn_U,21990
197
197
  dtlpy/repositories/upload_element.py,sha256=R2KWIXmkp_dMAIr81tu3Y_VRfldj0ju8__V28ombkcg,10677
@@ -227,12 +227,12 @@ dtlpy/utilities/reports/report.py,sha256=3nEsNnIWmdPEsd21nN8vMMgaZVcPKn9iawKTTeO
227
227
  dtlpy/utilities/videos/__init__.py,sha256=SV3w51vfPuGBxaMeNemx6qEMHw_C4lLpWNGXMvdsKSY,734
228
228
  dtlpy/utilities/videos/video_player.py,sha256=LCxg0EZ_DeuwcT7U_r7MRC6Q19s0xdFb7x5Gk39PRms,24072
229
229
  dtlpy/utilities/videos/videos.py,sha256=4xbbrHDeJhyR8VXW5ojLEp1GGGwgMoRIRyGrXEX5wiA,22031
230
- dtlpy-1.118.13.data/scripts/dlp,sha256=-F0vSCWuSOOtgERAtsPMPyMmzitjhB7Yeftg_PDlDjw,10
231
- dtlpy-1.118.13.data/scripts/dlp.bat,sha256=QOvx8Dlx5dUbCTMpwbhOcAIXL1IWmgVRSboQqDhIn3A,37
232
- dtlpy-1.118.13.data/scripts/dlp.py,sha256=ZpfJvYE1_OTSorEYBphqTOutnHSb5TqOXh0y_mUCTJs,4393
233
- dtlpy-1.118.13.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
234
- dtlpy-1.118.13.dist-info/METADATA,sha256=ozuEK7ANlXc6pEc4wDX84knLXQO7rv1BJ-AAhC_bdgw,5908
235
- dtlpy-1.118.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
236
- dtlpy-1.118.13.dist-info/entry_points.txt,sha256=C4PyKthCs_no88HU39eioO68oei64STYXC2ooGZTc4Y,43
237
- dtlpy-1.118.13.dist-info/top_level.txt,sha256=MSr60TGZYlwXCKxlLoZCfILRZ6pU_3L-20d2SZvygyA,6
238
- dtlpy-1.118.13.dist-info/RECORD,,
230
+ dtlpy-1.118.15.data/scripts/dlp,sha256=-F0vSCWuSOOtgERAtsPMPyMmzitjhB7Yeftg_PDlDjw,10
231
+ dtlpy-1.118.15.data/scripts/dlp.bat,sha256=QOvx8Dlx5dUbCTMpwbhOcAIXL1IWmgVRSboQqDhIn3A,37
232
+ dtlpy-1.118.15.data/scripts/dlp.py,sha256=ZpfJvYE1_OTSorEYBphqTOutnHSb5TqOXh0y_mUCTJs,4393
233
+ dtlpy-1.118.15.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
234
+ dtlpy-1.118.15.dist-info/METADATA,sha256=0HwM_snYfeLqcTpkwCaLMFNBZmuGZD6pJACYnAYTwug,5908
235
+ dtlpy-1.118.15.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
236
+ dtlpy-1.118.15.dist-info/entry_points.txt,sha256=C4PyKthCs_no88HU39eioO68oei64STYXC2ooGZTc4Y,43
237
+ dtlpy-1.118.15.dist-info/top_level.txt,sha256=MSr60TGZYlwXCKxlLoZCfILRZ6pU_3L-20d2SZvygyA,6
238
+ dtlpy-1.118.15.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
File without changes