Added:
- Support to export segmentations in DICOM RT-Struct format using `--rt-struct` in redbrick export / `rt_struct: bool` in Export.export_tasks
- Export.get_active_time
def get_active_time(
self,
*,
stage_name: str,
task_id: Optional[str] = None,
concurrency: int = 100,
) -> Iterator[Dict]:
"""Get active time spent on tasks for labeling/reviewing.
Parameters
-----------
stage_name: str
Stage for which to return the time info.
task_id: Optional[str] = None
If set, will return info for the given task in the given stage.
concurrency: int = 100
Request batch size.
Returns
-----------
Iterator[Dict]
>>> [{
"orgId": string,
"projectId": string,
"stageName": string,
"taskId": string,
"completedBy": string,
"timeSpent": number, In milliseconds
"completedAt": datetime,
"cycle": number Task cycle
}]
"""
- Export.list_tasks added param
completed_at: Optional[Tuple[Optional[float], Optional[float]]] = None
If present, will return tasks that were completed in the given time range.
The tuple contains the `from` and `to` timestamps respectively.
Changed:
- Renamed RBOrganization.create_taxonomy_new -> RBOrganization.create_taxonomy
- Export.export_tasks now returns Iterator[Dict]
- Export.list_tasks now returns Iterator[Dict]
- Export.get_task_events now returns Iterator[Dict]
- Unified all `user` entities across exports to email of user.
Removed:
- Export.search_tasks
- Export.redbrick_nifti
- Labeling.get_tasks
- Labeling.get_task_queue
- Labeling.assign_tasks (removed current_user param)
What's Changed
* Support DICOM RT-Struct segmentations export by pritamrungta in https://github.com/redbrick-ai/redbrick-sdk/pull/160
* Export enhancements by pritamrungta in https://github.com/redbrick-ai/redbrick-sdk/pull/161
* fix super truth export by pritamrungta in https://github.com/redbrick-ai/redbrick-sdk/pull/162
**Full Changelog**: https://github.com/redbrick-ai/redbrick-sdk/compare/v2.12.9...v2.13.0