We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01398fb commit 7e08aa7Copy full SHA for 7e08aa7
notebooks/getting_started/part3_exploring_cohorts.ipynb
@@ -836,7 +836,7 @@
836
},
837
"outputs": [],
838
"source": [
839
- "label_image_series_UID = os.listdir(f\"IDC_sorted/{patient_ID}/{study_UID}/SEG\")[0] # Select the first segmentation\n",
+ "label_image_series_UID = sorted(os.listdir(f\"IDC_sorted/{patient_ID}/{study_UID}/SEG\"))[-1] # Select the last segmentation\n",
840
"label_image_SOP_UID = os.listdir(f\"IDC_sorted/{patient_ID}/{study_UID}/SEG/{label_image_series_UID}\")[0] # Get the name of the DICOM file\n",
841
"\n",
842
"# Read the DICOM SEG object using pydicom and pydicom_seg.\n",
0 commit comments