Skip to content

Commit

Permalink
Update type information in read function
Browse files Browse the repository at this point in the history
  • Loading branch information
haarisr committed Jun 26, 2024
1 parent 9bda058 commit 1257a61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion diffdrr/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def read(
volume: str | Path | ScalarImage, # CT volume
labelmap: str | Path | LabelMap = None, # Labelmap for the CT volume
labels: int | list = None, # Labels from the mask of structures to render
orientation: str = "AP", # Frame-of-reference change
orientation: str | None = "AP", # Frame-of-reference change
bone_attenuation_multiplier: float = 1.0, # Scalar multiplier on density of high attenuation voxels
fiducials: torch.Tensor = None, # 3D fiducials in world coordinates
**kwargs, # Any additional information to be stored in the torchio.Subject
Expand Down
2 changes: 1 addition & 1 deletion notebooks/api/03_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
" volume: str | Path | ScalarImage, # CT volume\n",
" labelmap: str | Path | LabelMap = None, # Labelmap for the CT volume\n",
" labels: int | list = None, # Labels from the mask of structures to render\n",
" orientation: str = \"AP\", # Frame-of-reference change\n",
" orientation: str | None = \"AP\", # Frame-of-reference change\n",
" bone_attenuation_multiplier: float = 1.0, # Scalar multiplier on density of high attenuation voxels\n",
" fiducials: torch.Tensor = None, # 3D fiducials in world coordinates\n",
" **kwargs, # Any additional information to be stored in the torchio.Subject\n",
Expand Down

0 comments on commit 1257a61

Please sign in to comment.