From 6543dc257d5657d4022bc47e45e3ad7f40ae2c5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Douglas=20Samuel=20Gon=C3=A7alves?= Date: Thu, 30 Oct 2025 14:43:32 -0300 Subject: [PATCH] Update tutorials. --- Tutorials/FourMinuteTutorial/FourMinuteTutorial.py | 1 + .../AIBasedSegmentationIn3DSlicer.py | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Tutorials/FourMinuteTutorial/FourMinuteTutorial.py b/Tutorials/FourMinuteTutorial/FourMinuteTutorial.py index 81e5e5a9..ff83eb9e 100644 --- a/Tutorials/FourMinuteTutorial/FourMinuteTutorial.py +++ b/Tutorials/FourMinuteTutorial/FourMinuteTutorial.py @@ -163,5 +163,6 @@ def test_Slicer4Minute1(self): self.delayDisplay('Optic chiasm should be visible. Front part of white matter should be clipped.') # Done + slicer.util.findChildren(name="SpinButton")[0].click() # TUTORIALMAKER END self.delayDisplay('Test passed!') diff --git a/Tutorials/STC-SEG-103_AIBasedSegmentationIn3DSlicer/AIBasedSegmentationIn3DSlicer.py b/Tutorials/STC-SEG-103_AIBasedSegmentationIn3DSlicer/AIBasedSegmentationIn3DSlicer.py index 04aa408f..621870bb 100644 --- a/Tutorials/STC-SEG-103_AIBasedSegmentationIn3DSlicer/AIBasedSegmentationIn3DSlicer.py +++ b/Tutorials/STC-SEG-103_AIBasedSegmentationIn3DSlicer/AIBasedSegmentationIn3DSlicer.py @@ -35,6 +35,14 @@ def test_Slicer4Minute1(self): mainWindow = slicer.util.mainWindow() self.delayDisplay("Starting the test") + + # Instalar dependências necessárias ANTES de começar + self.delayDisplay("Verificando e instalando dependências...") + import MONAIAuto3DSeg + logic = MONAIAuto3DSeg.MONAIAuto3DSegLogic() + logic.setupPythonRequirements(upgrade=False) + self.delayDisplay("Dependências instaladas com sucesso!") + # TUTORIALMAKER BEGIN # Clear the scene to start fresh @@ -77,7 +85,7 @@ def test_Slicer4Minute1(self): import zipfile # Caminho para salvar o ZIP e extrair - zip_url = "https://www.dropbox.com/scl/fi/mdbz1gklawyxmi0tukxpu/SlicerData.zip?rlkey=7lymqsoa39e9pkr1v8hatq2e2&e=1&dl=1" + zip_url = "https://www.dropbox.com/scl/fi/2lz93yzzghymnek8hy5f0/SlicerData.zip?rlkey=vzkk5v7dezr96eppa3rgw7vv4&e=1&st=6nw38gaj&dl=1" zip_path = os.path.join(slicer.app.temporaryPath, "SlicerData.zip") extract_path = os.path.join(slicer.app.temporaryPath, "SlicerData")