Skip to content

Commit

Permalink
Merge pull request #41 from dave3d/SpellingBugs
Browse files Browse the repository at this point in the history
Spelling bugs
  • Loading branch information
dave3d committed Apr 26, 2023
2 parents 3e76e84 + f41dbdd commit fe07dff
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ channels:
dependencies:
- simpleitk
- numpy
- pip
- pip:
- pydicom
- vtk
- -e git+https://github.com/SimpleITK/SimpleITKUtilities.git#egg=SimpleITKUtilities
- git+https://github.com/SimpleITK/SimpleITKUtilities.git@main
6 changes: 3 additions & 3 deletions examples/gui.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def create_ui(self, shared_slider,wl_range, wl_init):
def get_window_level_numpy_array(self, image_list, window_level_list, intensity_slider_range_percentile):
# Using GetArray and not GetArrayView because we don't keep references
# to the original images. If they are deleted outside the view would become
# invalid, so we use a copy wich guarentees that the gui is consistent.
# invalid, so we use a copy which guarantees that the gui is consistent.
npa_list = list(map(sitk.GetArrayFromImage, image_list))

wl_range = []
Expand Down Expand Up @@ -628,7 +628,7 @@ def __init__(self, image, window_level= None, figure_size=(10,8)):
self.roi_selector.set_visible(False)

# Display the data and the controls, first time we display the image is outside the "update_display" method
# as that method relies on the existance of a previous image which is removed from the figure.
# as that method relies on the existence of a previous image which is removed from the figure.
self.axes.imshow(self.npa[self.slice_slider.value,:,:] if self.slice_slider else self.npa,
cmap=plt.cm.Greys_r,
vmin=self.min_intensity,
Expand Down Expand Up @@ -843,7 +843,7 @@ def __init__(self, transform=sitk.Euler2DTransform(), data_scale=100.0, figure_s
self.fixed_fiducials = []
self.fixed_targets = []
# The moving fiducials will have noise, bias added to their coordinates. Noise
# model is zero mean Gaussian, isotropic and homogenous.
# model is zero mean Gaussian, isotropic and homogeneous.
self.moving_fiducials = []
self.moving_targets = []
# This list will contain the FLE vectors, not the FLE. Allows us to
Expand Down
2 changes: 1 addition & 1 deletion examples/myshow.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def myshow(img, title=None, margin=0.05, dpi=80):
ysize = nda.shape[0]
xsize = nda.shape[1]

# Make a figure big enough to accomodate an axis of xpixels by ypixels
# Make a figure big enough to accommodate an axis of xpixels by ypixels
# as well as the ticklabels, etc...
figsize = (1 + margin) * ysize / dpi, (1 + margin) * xsize / dpi

Expand Down
2 changes: 1 addition & 1 deletion tests/write_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def writeSlices(series_tag_values, new_img, out_dir, writer, i):
# Slice specific tags.
# Instance Creation Date
image_slice.SetMetaData("0008|0012", time.strftime("%Y%m%d"))
# Instace Creation Time
# Instance Creation Time
image_slice.SetMetaData("0008|0013", time.strftime("%H%M%S"))

# Setting the type to CT preserves the slice location.
Expand Down

0 comments on commit fe07dff

Please sign in to comment.