Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,18 @@ def test_Slicer4Minute1(self):
if not os.path.exists(zip_path):
urllib.request.urlretrieve(zip_url, zip_path)

# Extrair ZIP se não estiver extraído
if not os.path.exists(extract_path):
with zipfile.ZipFile(zip_path, 'r') as zip_ref:
zip_ref.extractall(slicer.app.temporaryPath)

# Carregar os volumes
prostate_folder = os.path.join(extract_path, "dataset3_ProstateMRI")
adc_path = os.path.join(prostate_folder, "msd-prostate-01-adc.nrrd")
t2_path = os.path.join(prostate_folder, "msd-prostate-01-t2.nrrd")

# Extrair ZIP se não estiver extraído
if not (os.path.exists(adc_path) and os.path.exists(t2_path)):
with zipfile.ZipFile(zip_path, 'r') as zip_ref:
zip_ref.extractall(slicer.app.temporaryPath)



slicer.util.loadVolume(adc_path)
slicer.util.loadVolume(t2_path)

Expand Down
Loading