supervisely 6.73.382__py3-none-any.whl → 6.73.384__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.
@@ -120,17 +120,19 @@ class SelectDatasetTree(Widget):
120
120
  self._append_to_body = append_to_body
121
121
 
122
122
  # Extract values from Enum to match the .type property of the ProjectInfo object.
123
-
124
123
  self._project_types = None
125
124
  if allowed_project_types is not None:
126
- if all(allowed_project_types) is isinstance(allowed_project_types, ProjectType):
127
- self._project_types = (
128
- [project_type.value for project_type in allowed_project_types]
129
- if allowed_project_types is not None
130
- else None
131
- )
132
- elif all(allowed_project_types) is isinstance(allowed_project_types, str):
133
- self._project_types = allowed_project_types
125
+ self._project_types = []
126
+ for project_type in allowed_project_types:
127
+ if isinstance(project_type, ProjectType):
128
+ project_type = project_type.value
129
+ elif not isinstance(project_type, str):
130
+ continue
131
+
132
+ self._project_types.append(project_type)
133
+
134
+ if self._project_types == []:
135
+ self._project_types = None
134
136
 
135
137
  # Widget components.
136
138
  self._select_team = None
@@ -171,10 +171,10 @@ class NiiConverter(VolumeConverter):
171
171
  item_paths = []
172
172
 
173
173
  for item in batch:
174
- # if self._upload_as_links:
175
- # remote_path = self.remote_files_map.get(item.path)
176
- # if remote_path is not None:
177
- # item.custom_data = {"remote_path": remote_path}
174
+ if self._upload_as_links:
175
+ remote_path = self.remote_files_map.get(item.path)
176
+ if remote_path is not None:
177
+ item.custom_data["remote_path"] = remote_path
178
178
 
179
179
  item.path = helper.nifti_to_nrrd(item.path, converted_dir)
180
180
  ext = get_file_ext(item.path)
@@ -197,8 +197,8 @@ class NiiConverter(VolumeConverter):
197
197
  leave=True if progress_cb is None else False,
198
198
  position=1,
199
199
  )
200
- # if item.custom_data is not None:
201
- # volume_meta.update(item.custom_data)
200
+ if item.custom_data is not None:
201
+ volume_meta.update(item.custom_data)
202
202
  api.volume.upload_np(dataset_id, item.name, volume_np, volume_meta, progress_nrrd)
203
203
  info = api.volume.get_info_by_name(dataset_id, item.name)
204
204
  item.volume_meta = info.meta
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: supervisely
3
- Version: 6.73.382
3
+ Version: 6.73.384
4
4
  Summary: Supervisely Python SDK.
5
5
  Home-page: https://github.com/supervisely/supervisely
6
6
  Author: Supervisely
@@ -450,7 +450,7 @@ supervisely/app/widgets/select_dataset/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JC
450
450
  supervisely/app/widgets/select_dataset/select_dataset.py,sha256=Y5D1s6x8gupHQ-uReg1XdZbCcTQjLiCBW150OKzC_Zk,10027
451
451
  supervisely/app/widgets/select_dataset/template.html,sha256=7O_ZgmRs0vOL8tng6QvYbI_0o6A4yMAPB2MlfzWHeHQ,984
452
452
  supervisely/app/widgets/select_dataset_tree/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
453
- supervisely/app/widgets/select_dataset_tree/select_dataset_tree.py,sha256=ngSp4-R7rLsExYOY3VY7yhhC_yeeO_BkAxN95savSPc,22517
453
+ supervisely/app/widgets/select_dataset_tree/select_dataset_tree.py,sha256=nQ8Szy2BNw19BITWMwq42N6p3nCN8G4hrCc-3e4FE_M,22481
454
454
  supervisely/app/widgets/select_dataset_tree/template.html,sha256=_uvKCMP0nkpSl3FiTUxqy10JZw3q8-9hXCv22W3BDF0,38
455
455
  supervisely/app/widgets/select_item/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
456
456
  supervisely/app/widgets/select_item/select_item.py,sha256=dcB0UN46rn3nFQybgrGpLRfwB6xnPo-GGrv9rsMeCbA,3833
@@ -675,7 +675,7 @@ supervisely/convert/volume/dicom/dicom_converter.py,sha256=Hw4RxU_qvllk6M26udZE6
675
675
  supervisely/convert/volume/dicom/dicom_helper.py,sha256=OrKlyt1hA5BOXKhE1LF1WxBIv3b6t96xRras4OSAuNM,2891
676
676
  supervisely/convert/volume/nii/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
677
677
  supervisely/convert/volume/nii/nii_planes_volume_converter.py,sha256=-3afZ61BqfMVqTWNa19INn7OR7DqiIx_HhfVi1oHTcE,14751
678
- supervisely/convert/volume/nii/nii_volume_converter.py,sha256=i8rs7NeDUofsG9uCOZuDe9hiB3IdMB_4PomUX_xo16U,8633
678
+ supervisely/convert/volume/nii/nii_volume_converter.py,sha256=hcWl3v5pp0pSRbS-fdytCkXZ4tcJEap7dg24-aVv9bU,8619
679
679
  supervisely/convert/volume/nii/nii_volume_helper.py,sha256=CxUuJGYRVs9Uhhdnzzi7ioaV6gnReorIANGTvfab53o,14198
680
680
  supervisely/convert/volume/sly/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
681
681
  supervisely/convert/volume/sly/sly_volume_converter.py,sha256=XmSuxnRqxchG87b244f3h0UHvOt6IkajMquL1drWlCM,5595
@@ -1103,9 +1103,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
1103
1103
  supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
1104
1104
  supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
1105
1105
  supervisely_lib/__init__.py,sha256=7-3QnN8Zf0wj8NCr2oJmqoQWMKKPKTECvjH9pd2S5vY,159
1106
- supervisely-6.73.382.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1107
- supervisely-6.73.382.dist-info/METADATA,sha256=va2f5WmgT5z98IN3fzGIi2t8M_p2URzhtN_pSgzAePA,35154
1108
- supervisely-6.73.382.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
1109
- supervisely-6.73.382.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1110
- supervisely-6.73.382.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1111
- supervisely-6.73.382.dist-info/RECORD,,
1106
+ supervisely-6.73.384.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1107
+ supervisely-6.73.384.dist-info/METADATA,sha256=L3cElAo9KEI1npzy83hd4c-LX9mNztaAX5_o-kv3qVs,35154
1108
+ supervisely-6.73.384.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
1109
+ supervisely-6.73.384.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1110
+ supervisely-6.73.384.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1111
+ supervisely-6.73.384.dist-info/RECORD,,