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
18 changes: 18 additions & 0 deletions Python/scripts/characterize_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,24 @@
#
# =========================================================================

#
# Run the script directly from GitHub without downloading it using uv (https://github.com/astral-sh/uv):
# uv run https://raw.githubusercontent.com/InsightSoftwareConsortium/SimpleITK-Notebooks/refs/heads/main/Python/scripts/characterize_data.py -h
#

#
# Provide inline script metadata per PEP 723 (https://peps.python.org/pep-0723/)
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "matplotlib",
# "numpy",
# "pandas",
# "tqdm",
# "SimpleITK",
# ]
# ///

import SimpleITK as sitk
import pandas as pd
import numpy as np
Expand Down