Skip to content
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
delete non needed notebooks
  • Loading branch information
kolibril13 committed Nov 10, 2021
commit 365af5779d3abffbc709ffa9b5b5ed5f9fbcbe73
47 changes: 46 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

ROOT_DIR = Path.cwd().parent.parent
print(ROOT_DIR )

# Copy notebooks to source
COPYFROM = ROOT_DIR
COPYTO = ROOT_DIR / "docs" / "source"
print(COPYFROM)
Expand All @@ -39,6 +39,51 @@
shutil.copytree(folder_from, folder_to)
print("******DONE*******")

# delete all notebooks that are not wanted
NEWLOCATION = ROOT_DIR / "docs" / "source"
exclude_notobooks = [
"Python/00_Setup.ipynb",
"Python/01_Image_Basics.ipynb",
"Python/02_Pythonic_Image.ipynb",
"Python/03_Image_Details.ipynb",
"Python/04_Image_Display.ipynb",
"Python/05_Results_Visualization.ipynb",
#"Python/10_matplotlibs_imshow.ipynb",
"Python/11_Progress.ipynb",
"Python/20_Expand_With_Interpolators.ipynb",
"Python/21_Transforms_and_Resampling.ipynb",
"Python/22_Transforms.ipynb",
"Python/300_Segmentation_Overview.ipynb",
"Python/30_Segmentation_Region_Growing.ipynb",
"Python/31_Levelset_Segmentation.ipynb",
"Python/32_Watersheds_Segmentation.ipynb",
"Python/33_Segmentation_Thresholding_Edge_Detection.ipynb",
"Python/34_Segmentation_Evaluation.ipynb",
"Python/35_Segmentation_Shape_Analysis.ipynb",
"Python/36_Microscopy_Colocalization_Distance_Analysis.ipynb",
"Python/51_VH_Segmentation1.ipynb",
"Python/55_VH_Resample.ipynb",
"Python/56_VH_Registration1.ipynb",
"Python/60_Registration_Introduction.ipynb",
"Python/61_Registration_Introduction_Continued.ipynb",
"Python/62_Registration_Tuning.ipynb",
"Python/63_Registration_Initialization.ipynb",
"Python/64_Registration_Memory_Time_Tradeoff.ipynb",
"Python/65_Registration_FFD.ipynb",
"Python/66_Registration_Demons.ipynb",
"Python/67_Registration_Semiautomatic_Homework.ipynb",
"Python/68_Registration_Errors.ipynb",
"Python/69_x-ray-panorama.ipynb",
"Python/70_Data_Augmentation.ipynb",
"Python/71_Trust_But_Verify.ipynb",
]

for nb in exclude_notobooks:
excluded_notebook = NEWLOCATION/nb
print(excluded_notebook)
excluded_notebook.unlink()


# -- Project information -----------------------------------------------------

project = 'SimpleITK-Notebooks'
Expand Down