update upload masks
"client.get_label('b2b5e02a-e5a3-4cf0-a361-a2349207c930', 'contouring')"
]
},
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "client.put"
+ ]
+ },
{
"cell_type": "code",
"execution_count": null,
" return contours_by_ct_uid"
]
},
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "ct_uid, sample_uuid = list(ct_uid_to_upload_uuid.items())[0]"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "client.get_label(sample_uuid, 'contouring')"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "sample_uuid"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "client.put?"
+ ]
+ },
{
"cell_type": "code",
"execution_count": null,
" current_label_data = client.get_label(sample_uuid, 'contouring')\n",
" print(ct_uid, sample_uuid)\n",
" try:\n",
- " if current_label_data['label_status'] == 'PRELABELED':\n",
+ " if current_label_data['label_status'] in ('PRELABELED', 'REVIEWED', 'LABELED'):\n",
" print('Already labelled. Skipping...') \n",
" continue\n",
+ " else:\n",
+ " print(current_label_data['label_status'])\n",
" except KeyError:\n",
" pass\n",
" \n",
" \"annotations\": objects_map\n",
" }\n",
"\n",
- " client.add_label(sample_uuid, task_name, attributes)"
+ " client.add_label(sample_uuid, task_name, attributes, label_status='REVIEWED')"
]
},
{
