Skip to content

Commit

Permalink
DOC: Fix typos in various subdirectories (Slicer#6483)
Browse files Browse the repository at this point in the history
* ENH: Update "codespell" workflow to use an updated dictionary

This commit ensures a recent version of codespell is run against all
files. This is needed because the latest version of codespell available
on PyPI is 2.1.0 from 2021-06-19.

See https://github.com/Slicer/actions-codespell#readme

* DOC: Fix typos in comments and docstrings using runCodespell.sh

This commit fixes issues identified using the following command
and manually tweaked afterward:

  ./Utilities/Scripts/runCodespell.sh

Co-authored-by: Jean-Christophe Fillion-Robin <[email protected]>

* BUG: Fix typos in tooltips, warning & error messages using runCodespell.sh

This commit fixes issues identified using the following command
and manually tweaked afterward:

  ./Utilities/Scripts/runCodespell.sh

Co-authored-by: Jean-Christophe Fillion-Robin <[email protected]

* DOC: Fix typos in comments and docstrings identified using custom dictionary

This commit fixes issues identified by @luzpaz using a custom
dictionary specified using the `codespell -D` flag.

```
abot->about
afther->after
apperarance->appearance
cleares->clears
creteria->criteria
inactivate->deactivate
individuall->individual
inpection->inspection
requrested->requested
tabl->table
wen->when
```

* BUG: Fix typos in error messages identified using custom dictionary

This commit fixes issues identified by @luzpaz using a custom
dictionary specified using the `codespell -D` flag.

```
malformatted->malformed
```

Co-authored-by: Jean-Christophe Fillion-Robin <[email protected]>
  • Loading branch information
luzpaz and jcfr authored Aug 4, 2022
1 parent 5c6a247 commit 866fe39
Show file tree
Hide file tree
Showing 34 changed files with 39 additions and 38 deletions.
3 changes: 2 additions & 1 deletion .codespellignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ loosing
nd
nin
nout
pinter
pullrequest
ro
serie
sinc
supercede
sur
therefor
thru
toolsbox
unselect
2 changes: 1 addition & 1 deletion .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: codespell-project/actions-codespell@master
- uses: Slicer/actions-codespell@da9d7dca859f5c302f7fec47b3b2a4267a6891fd
with:
check_filenames: true
skip: ".git,*.crt,*.svg,*.vtp,*DICOM-Master.json,*SlicerGeneralAnatomy.json,./CMakeLists.txt.user,./CMake/CTestCustom.cmake.in,./License.txt,./COPYRIGHT.txt,./Resources/*.h,./Base/Logic/vtkSlicerApplicationLogicRequests.h,./Base/QTCLI/vtkSlicerCLIModuleLogic.cxx,./Base/QTCore/Resources/Certs/README,./Libs/MRML/Core/vtkMRMLCoreTestingUtilities.cxx,./Libs/vtkITK/vtkITKGrowCutSegmentationImageFilter.cxx,./Libs/vtkITK/itkConstrainedValueMultiplicationImageFilter.h,./Libs/vtkITK/itkLevelTracingImageFilter.h,./Modules/CLI/ExtractSkeleton/tilg_iso_3D.cxx,./Modules/CLI/ResampleDTIVolume/itkDiffusionTensor3D*,./Modules/Loadable/Reformat/Resources/UI/qSlicerReformatModuleWidget.ui,./Utilities/Scripts/runCodespell.sh"
Expand Down
2 changes: 1 addition & 1 deletion Base/Python/slicer/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3590,7 +3590,7 @@ def longPath(path):
sysInfo = qt.QSysInfo()
if sysInfo.productType() != 'windows':
return path
# Skip prefixing relative paths as UNC prefix wors only on absolute paths
# Skip prefixing relative paths as UNC prefix works only on absolute paths
if not qt.QDir.isAbsolutePath(path):
return path
# Return path as is if UNC prefix is already applied
Expand Down
2 changes: 1 addition & 1 deletion Base/QTGUI/qSlicerExportNodeDialog.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ bool qSlicerExportNodeDialogPrivate::populateNodeTypeWidgetSets()
nodeTypeWidgetSet->setFrameStyle(NodeTypeWidgetSet::FrameStyle::Frame);
// Check if a type display name is shared with any other NodeTypeWidgetSet currently in the dialog.
// Hopefully not, so we can use type display names in the label text.
// If there's a collsion, resort to using node type identifier (i.e. class name) in the label text.
// If there's a collision, resort to using node type identifier (i.e. class name) in the label text.
bool typeDisplayNameCollison = false;
for (const auto& otherNodeType : this->NodeTypesInDialog)
{
Expand Down
2 changes: 1 addition & 1 deletion Docs/user_guide/data_loading_and_saving.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Surface or volumetric meshes.
- [**VTK Polygonal Data**](https://vtk.org/wp-content/uploads/2015/04/file-formats.pdf) (.vtk, .vtp): Default coordinate system: LPS. Coordinate system (LPS/RAS) can be specified in header. Full color (RGB or RGBA) meshes can be read and written (color must be assigned as point scalar data of `unsigned char` type and 3 or 4 components). Texture image can be applied using "Texture model" module (in SlicerIGT extension).
- [**VTK Unstructured Grid Data**](https://vtk.org/wp-content/uploads/2015/04/file-formats.pdf) (.vtk, .vtu): Volumetric mesh. Default coordinate system: LPS. Coordinate system (LPS/RAS) can be specified in header.
- **STereoLithography** (.stl): Format most commonly used for 3D printing. Default coordinate system: LPS. Coordinate system (LPS/RAS) can be specified in header.
- **Wavefront OBJ** (.obj): Default coordinate system: LPS. Coordinate system (LPS/RAS) can be specified in header. Texture image can be applied using "Texture model" module (in SlicerIGT extension). The non-standard [technique of saving vertex color as additinal values after coordinates](https://web.archive.org/web/20220508010504/www.paulbourke.net/dataformats/obj/colour.html) is not supported - if vertex coloring is needed then convert to PLY, VTK, or VTP format using another software.
- **Wavefront OBJ** (.obj): Default coordinate system: LPS. Coordinate system (LPS/RAS) can be specified in header. Texture image can be applied using "Texture model" module (in SlicerIGT extension). The non-standard [technique of saving vertex color as additional values after coordinates](https://web.archive.org/web/20220508010504/www.paulbourke.net/dataformats/obj/colour.html) is not supported - if vertex coloring is needed then convert to PLY, VTK, or VTP format using another software.
- **Stanford Triangle Format** (.ply): Default coordinate system: LPS. Coordinate system (LPS/RAS) can be specified in header. Full color (RGB or RGBA) meshes can be read and written (color must be assigned to vertex data in `uchar` type properties named `red`, `green`, `blue`, and optional `alpha`). Texture image can be applied using "Texture model" module (in SlicerIGT extension).
- **BYU** (.byu, .g; reading only): Coordinate system: LPS.
- **UCD** (.ucd; reading only): Coordinate system: LPS.
Expand Down
2 changes: 1 addition & 1 deletion Docs/user_guide/extensions_manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Extensions can be downloaded from the Extensions Catalog website and can be inst
#### Install downloaded extension packages

- Open Extensions manager using menu: View / Extensions manager.
- Click the "Install fom file..." button.
- Click the "Install from file..." button.
- Select the the previously downloaded extension package(s). Multiple extension packages can be selected at once.
- Wait for the installations to complete.
- Click "Restart" button to restart the application.
Expand Down
2 changes: 1 addition & 1 deletion Docs/user_guide/user_interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Default orientation axes: A = anterior, P = posterior, R = right, L = left, S =

### Slice View

Three default slice views are provided (with Red, Yellow and Green colored bars) in which Axial, Saggital, Coronal or Oblique 2D slices of volume images can be displayed. Additional generic slice views have a grey colored bar and an identifying number in their upper left corner.
Three default slice views are provided (with Red, Yellow and Green colored bars) in which Axial, Sagittal, Coronal or Oblique 2D slices of volume images can be displayed. Additional generic slice views have a grey colored bar and an identifying number in their upper left corner.

![](https://github.com/Slicer/Slicer/releases/download/docs-resources/user_interface_slice_view_controls.png)

Expand Down
2 changes: 1 addition & 1 deletion Libs/MRML/Core/vtkMRMLSliceCompositeNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class VTK_MRML_EXPORT vtkMRMLSliceCompositeNode : public vtkMRMLNode
/// Get/Set a flag indicating what parameters are being manipulated
/// within calls to InteractingOn() and InteractingOff(). These
/// fields are used to propagate linked behaviors. This flag is a
/// bitfield, with multiple parameters OR'd to composte the
/// bitfield, with multiple parameters OR'd to compose the
/// flag. Does not mark the node as Modified.
void SetInteractionFlags(unsigned int);
vtkGetMacro(InteractionFlags, unsigned int);
Expand Down
2 changes: 1 addition & 1 deletion Libs/MRML/Core/vtkMRMLUnitNode.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ const char* vtkMRMLUnitNode::GetDisplayStringFormat()
strstream << "%";
strstream << "-"; // left justify
strstream << "#"; // force decimal point
strstream << floor(log10(1. + fabs(this->GetMaximumValue()))); // padd
strstream << floor(log10(1. + fabs(this->GetMaximumValue()))); // pad
strstream << "." << this->GetPrecision(); // decimals
strstream << "g";
strstream << this->Suffix;
Expand Down
2 changes: 1 addition & 1 deletion Libs/MRML/Widgets/qMRMLColorPickerWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public slots:
void setCurrentColorNodeToDefault();

signals:
/// Fired wen the current color table node is selected
/// Fired when the current color table node is selected
void currentColorNodeChanged(vtkMRMLNode* node);

/// Fired when the user selects a color in the list. index is the selected
Expand Down
2 changes: 1 addition & 1 deletion Libs/MRML/Widgets/qMRMLSceneModel.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ QStandardItem* qMRMLSceneModel::insertNode(vtkMRMLNode* node, QStandardItem* par

// Insert an invalid item in the cache to indicate that the node is in the model
// but we don't know its index yet. This is needed because a custom widget may be notified
// abot row insertion before insertRow() returns (and the RowCache entry is added).
// about row insertion before insertRow() returns (and the RowCache entry is added).
// For example, qSlicerPresetComboBox::setIconToPreset() is called at the end of insertRow,
// before the RowCache entry is added.
d->RowCache[node]=QModelIndex();
Expand Down
2 changes: 1 addition & 1 deletion Libs/MRML/Widgets/qMRMLTableWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class QMRML_WIDGETS_EXPORT qMRMLTableWidget : public qMRMLWidget
explicit qMRMLTableWidget(QWidget* parent = nullptr);
~qMRMLTableWidget() override;

/// Get the tabl node observed by view.
/// Get the table node observed by view.
vtkMRMLTableViewNode* mrmlTableViewNode()const;

/// Get a reference to the underlying Table View
Expand Down
2 changes: 1 addition & 1 deletion Modules/CLI/CreateDICOMSeries/CreateDICOMSeries.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ int DoIt( int argc, char * argv[])
}
else if (modality == "SC")
{
// Scondary capture, converted from non-DICOM (scanned drawings, screenshots, etc.)
// Secondary capture, converted from non-DICOM (scanned drawings, screenshots, etc.)
sopClassUID = "1.2.840.10008.5.1.4.1.1.7";
// Value 3 shall identify any Image IOD specific specialization (optional), may be encoded with zero-length
imageType = "ORIGINAL\\PRIMARY\\";
Expand Down
2 changes: 1 addition & 1 deletion Modules/CLI/ExtractSkeleton/misc.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
==========================================================================*/
/*
* misc.cc -- miscellaneous utitlity functions
* misc.cc -- miscellaneous utility functions
*
* author: msturm
* created: 27 Mar 1997
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ template <typename TInputImage, typename TOutputImage>
void HFieldToDeformationFieldImageFilter<TInputImage, TOutputImage>::GenerateData()
{
// Superclass::GenerateInputRequestedRegion();
// outputImage->SetRequrestedRegion(inputImage
// outputImage->SetRequestedRegion(inputImage
this->AllocateOutputs();

const typename InputImageType::ConstPointer input(this->GetInput() );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ CSFLSRobustStatSegmentor3DLabelMap<TPixel>
TIndex origin = {{0, 0, 0}};
if( start != origin )
{
std::cout << "Warrning: Force mask start to be (0, 0, 0)\n";
std::cout << "Warning: Force mask start to be (0, 0, 0)\n";

TRegion region = m_inputLabelImage->GetLargestPossibleRegion();
region.SetIndex(origin);
Expand Down
4 changes: 2 additions & 2 deletions Modules/CLI/RobustStatisticsSegmenter/SFLSSegmentor3D.txx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ CSFLSSegmentor3D<TPixel>
TIndex origin = {{0, 0, 0}};
if( start != origin )
{
std::cout << "Warrning: Force image start to be (0, 0, 0)\n";
std::cout << "Warning: Force image start to be (0, 0, 0)\n";

TRegion region = mp_img->GetLargestPossibleRegion();
region.SetIndex(origin);
Expand Down Expand Up @@ -171,7 +171,7 @@ CSFLSSegmentor3D<TPixel>
TIndex origin = {{0, 0, 0}};
if( start != origin )
{
std::cout << "Warrning: Force mask start to be (0, 0, 0)\n";
std::cout << "Warning: Force mask start to be (0, 0, 0)\n";

TRegion region = mp_mask->GetLargestPossibleRegion();
region.SetIndex(origin);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ int main(int argc, char* * argv)
SFLSRobustStatSegmentor3DLabelMap_c seg;
seg.setImage(img);

seg.setNumIter(10000); // a large enough number, s.t. will not be stopped by this creteria.
seg.setNumIter(10000); // a large enough number, s.t. will not be stopped by this criteria.
seg.setMaxVolume(expectedVolume);
seg.setInputLabelImage(newLabelMap);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class VTK_SLICER_ANNOTATIONS_MODULE_MRML_EXPORT vtkMRMLAnnotationRulerNode : pu
void SetDistanceAnnotationScale(double init);

// Description:
// get/set the distance annotation visbility
// get/set the distance annotation visibility
int GetDistanceAnnotationVisibility();
void SetDistanceAnnotationVisibility(int flag);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ void vtkMRMLAnnotationROIDisplayableManager::OnMRMLSceneNodeRemoved(vtkMRMLNode*

if (rep)
{
// update actor's visbility from mrml
// update actor's visibility from mrml
vtkNew<vtkPropCollection> actors;
rep->GetActors2D(actors.GetPointer());
for (int i=0; i<actors->GetNumberOfItems(); i++)
Expand Down
2 changes: 1 addition & 1 deletion Modules/Loadable/Data/qSlicerSceneWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Q_SLICER_QTMODULES_DATA_EXPORT qSlicerSceneWriter
/// Return true if the object is handled by the writer.
bool canWriteObject(vtkObject* object)const override;

/// Return a list of the supported extensions for a particuliar object.
/// Return a list of the supported extensions for a particular object.
/// Please read QFileDialog::nameFilters for the allowed formats
/// Example: "Image (*.jpg *.png *.tiff)", "Model (*.vtk)"
QStringList extensions(vtkObject* object)const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ vtkMRMLMarkupsDisplayNode::vtkMRMLMarkupsDisplayNode()
this->OccludedVisibility = false;
this->OccludedOpacity = 0.3;

// Text apperarance
// Text appearance
this->TextProperty = nullptr;
vtkNew<vtkTextProperty> textProperty;
textProperty->SetBackgroundOpacity(0.0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ bool qMRMLMarkupsOptionsWidgetsFactory::unregisterOptionsWidget(const QString& c
// Check for empty type name
if (className.isEmpty())
{
qCritical() << Q_FUNC_INFO << ": options widget has no tpye name.";
qCritical() << Q_FUNC_INFO << ": options widget has no type name.";
return false;
}

Expand Down
6 changes: 3 additions & 3 deletions Modules/Loadable/Reformat/qSlicerReformatModuleWidget.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ onSliderRotationChanged(double rotation)
d->resetSlider(d->PASlider);
d->resetSlider(d->ISSlider);

// Rotate on LR given the angle with the last value reccorded
// Rotate on LR given the angle with the last value recorded
transform->RotateX(rotation-d->LastRotationValues[axisX]);

// Update last value and apply the transform
Expand All @@ -682,7 +682,7 @@ onSliderRotationChanged(double rotation)
d->resetSlider(d->LRSlider);
d->resetSlider(d->ISSlider);

// Rotate on PA given the angle with the last value reccorded
// Rotate on PA given the angle with the last value recorded
transform->RotateY(rotation-d->LastRotationValues[axisY]);

// Update last value and apply the transform
Expand All @@ -694,7 +694,7 @@ onSliderRotationChanged(double rotation)
d->resetSlider(d->LRSlider);
d->resetSlider(d->PASlider);

// Rotate on PA given the angle with the last value reccorded
// Rotate on PA given the angle with the last value recorded
transform->RotateZ(rotation-d->LastRotationValues[axisZ]);

// Update last value and apply the transform
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def splitSegments(self, minimumSize=0, maxNumberOfSegments=0, split=True):
slicer.vtkSlicerSegmentationsModuleLogic.GetAllLabelValues(labelValues, islandImage)

# Erase segment from in original labelmap.
# Individuall islands will be added back later.
# Individual islands will be added back later.
threshold = vtk.vtkImageThreshold()
threshold.SetInputData(selectedSegmentLabelmap)
threshold.ThresholdBetween(0, 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ vtkOrientedImageData* qSlicerSegmentEditorAbstractEffect::defaultModifierLabelma
{
Q_D(qSlicerSegmentEditorAbstractEffect);
bool success = false;
emit d->updateVolumeSignal(d->ModifierLabelmap.GetPointer(), success); // this resets the labelmap and cleares it
emit d->updateVolumeSignal(d->ModifierLabelmap.GetPointer(), success); // this resets the labelmap and clears it
if (!success)
{
return nullptr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1456,14 +1456,14 @@ void qSlicerSegmentEditorPaintEffect::setupOptionsFrame()

d->ColorSmudgeCheckbox = new QCheckBox("Color smudge");
d->ColorSmudgeCheckbox->setToolTip("Select segment by sampling the pixel location"
"where the brush stroke starts. If brush stroke starts in an empty area then the brush erases highighted region from the selected segment.");
"where the brush stroke starts. If brush stroke starts in an empty area then the brush erases highlighted region from the selected segment.");
if (!this->m_AlwaysErase)
{
hbox->addWidget(d->ColorSmudgeCheckbox);
}

d->EraseAllSegmentsCheckbox = new QCheckBox("Erase all segments");
d->EraseAllSegmentsCheckbox->setToolTip("If not checked then highighted area is erased"
d->EraseAllSegmentsCheckbox->setToolTip("If not checked then highlighted area is erased"
" from all segments. If unchecked then only area is only erased from selected segment.");
if (this->m_AlwaysErase)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2167,7 +2167,7 @@ void qMRMLSegmentEditorWidget::onRemoveSegment()
d->SegmentationHistory->SaveState();

// Switch to a new valid segment now (to avoid transient state when no segments are selected
// as it could inactivate current effect).
// as it could deactivate current effect).
vtkSegmentation* segmentation = segmentationNode->GetSegmentation();
std::vector< std::string > segmentIDs;
segmentation->GetSegmentIDs(segmentIDs);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ void qMRMLSegmentsTableView::setSelectedSegmentIDs(QStringList segmentIDs)
flags.setFlag(itemSelectionFlag);
flags.setFlag(QItemSelectionModel::Rows);
d->SegmentsTable->selectionModel()->select(index, flags);
// Afther the first segment, we append to the current selection
// After the first segment, we append to the current selection
itemSelectionFlag = QItemSelectionModel::Select;
}

Expand Down
2 changes: 1 addition & 1 deletion Modules/Loadable/Volumes/qSlicerVolumesReader.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ bool qSlicerVolumesReader::examineFileInfoList(QFileInfoList &fileInfoList, QFil
{

//
// Check each file to see if it's recognzied as part of a series. If so,
// Check each file to see if it's recognized as part of a series. If so,
// keep it as the archetype and remove all the others from the list
//
foreach(QFileInfo fileInfo, fileInfoList)
Expand Down
2 changes: 1 addition & 1 deletion Modules/Scripted/DICOM/DICOM.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def createDefaultDatabase():
"""If DICOM database is invalid then try to create a default one. If fails then show an error message.
This method should only be used when user initiates DICOM import on the GUI, because the error message is
shown in a popup, which would block execution of auomated processing scripts.
Returns True if a valid DICOM database is available (has been created succussfully or it was already available).
Returns True if a valid DICOM database is available (has been created successfully or it was already available).
"""
if slicer.dicomDatabase and slicer.dicomDatabase.isOpen:
# Valid DICOM database already exists
Expand Down
2 changes: 1 addition & 1 deletion Modules/Scripted/DICOMPlugins/DICOMScalarVolumePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ def cornersToWorld(self, volumeNode, corners):

def createAcquisitionTransform(self, volumeNode, addAcquisitionTransformIfNeeded=True):
"""Creates the actual transform if needed.
Slice corners are cached for inpection by tests
Slice corners are cached for inspection by tests
"""
self.originalCorners = self.sliceCornersFromIJKToRAS(volumeNode)
self.targetCorners = self.sliceCornersFromDICOM(volumeNode)
Expand Down
2 changes: 1 addition & 1 deletion Utilities/Doxygen/Doxyfile.txt.in
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ HTML_STYLESHEET =
# user-defined cascading style sheet that is included after the standard
# style sheets created by doxygen. Using this option one can overrule
# certain style aspects. This is preferred over using HTML_STYLESHEET
# since it does not replace the standard style sheet and is therefor more
# since it does not replace the standard style sheet and is therefore more
# robust against future updates. Doxygen will copy the style sheet file to
# the output directory.

Expand Down
2 changes: 1 addition & 1 deletion Utilities/Scripts/SlicerWizard/TemplateManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,6 @@ def parseArguments(self, args):
for tk in args.templateKey:
tkParts = tk.split("=")
if len(tkParts) != 2:
die("template key '%s' malformatted: expected 'NAME=KEY'" % tk)
die("template key '%s' malformed: expected 'NAME=KEY'" % tk)

self.setKey(tkParts[0].lower(), tkParts[1])

0 comments on commit 866fe39

Please sign in to comment.