Skip to content

Commit

Permalink
STYLE: Improve wording in itk::GiftiMeshIO exception messages
Browse files Browse the repository at this point in the history
Improve wording in `itk::GiftiMeshIO` exception messages.

Use "GIfTI" to name the file format in messages as originally proposed
by its authors:
https://www.nitrc.org/frs/download.php/433/OHBM-2008-Poster.pdf
  • Loading branch information
jhlegarreta authored and dzenanz committed May 30, 2022
1 parent a339bb6 commit 1509cb2
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Modules/IO/MeshGifti/src/itkGiftiMeshIO.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ GiftiMeshIO::ReadMeshInformation()
// Whether reading is successful
if (m_GiftiImage == nullptr)
{
itkExceptionMacro(<< this->GetFileName() << " is not recognized as a GIFTI file");
itkExceptionMacro(<< this->GetFileName() << " is not recognized as a GIfTI file");
}

// Number of data array
Expand Down Expand Up @@ -239,8 +239,8 @@ GiftiMeshIO::ReadMeshInformation()
else
{
gifti_free_image(m_GiftiImage);
itkExceptionMacro(<< "Could not read input gifti image because inconsistency of number of point data or "
"number of cell data "
itkExceptionMacro(<< "Could not read input GIfTI image because the number of point data or "
"number of cell data in the image are not consistent with the current values in "
<< this->m_FileName);
}
}
Expand Down Expand Up @@ -288,8 +288,8 @@ GiftiMeshIO::ReadMeshInformation()
else
{
gifti_free_image(m_GiftiImage);
itkExceptionMacro(<< "Could not read input gifti image because inconsistency of number of point data or "
"number of cell data "
itkExceptionMacro(<< "Could not read input GIfTI image because the number of point data or "
"number of cell data in the image are not consistent with the current values in "
<< this->m_FileName);
}
}
Expand Down Expand Up @@ -403,8 +403,8 @@ GiftiMeshIO::ReadMeshInformation()
else
{
gifti_free_image(m_GiftiImage);
itkExceptionMacro(<< "Could not read input gifti image because inconsistency of number of point data or "
"number of cell data "
itkExceptionMacro(<< "Could not read input GIfTI image because the number of point data or "
"number of cell data in the image are not consistent with the current values in "
<< this->m_FileName);
}
}
Expand Down Expand Up @@ -447,7 +447,7 @@ GiftiMeshIO::ReadPoints(void * buffer)
// Whether reading is successful
if (m_GiftiImage == nullptr)
{
itkExceptionMacro(<< this->GetFileName() << " is not recognized as a GIFTI file");
itkExceptionMacro(<< this->GetFileName() << " is not recognized as a GIfTI file");
}

// Number of data array
Expand All @@ -473,7 +473,7 @@ GiftiMeshIO::ReadCells(void * buffer)
// Whter reading is successful
if (m_GiftiImage == nullptr)
{
itkExceptionMacro(<< this->GetFileName() << " is not recognized as a GIFTI file");
itkExceptionMacro(<< this->GetFileName() << " is not recognized as a GIfTI file");
}

// Number of data array
Expand Down Expand Up @@ -621,7 +621,7 @@ GiftiMeshIO::ReadPointData(void * buffer)
// Whether reading is successful
if (m_GiftiImage == nullptr)
{
itkExceptionMacro(<< this->GetFileName() << " is not recognized as a GIFTI file");
itkExceptionMacro(<< this->GetFileName() << " is not recognized as a GIfTI file");
}
// Read point data
for (int ii = 0; ii < m_GiftiImage->numDA; ++ii)
Expand Down Expand Up @@ -650,7 +650,7 @@ GiftiMeshIO::ReadCellData(void * buffer)
// Whether reading is successful
if (m_GiftiImage == nullptr)
{
itkExceptionMacro(<< this->GetFileName() << " is not recognized as a GIFTI file");
itkExceptionMacro(<< this->GetFileName() << " is not recognized as a GIfTI file");
}

// Read cell data
Expand Down Expand Up @@ -704,7 +704,7 @@ GiftiMeshIO::WriteMeshInformation()
// Whter reading is successful
if (m_GiftiImage == nullptr)
{
itkExceptionMacro(<< "Could not create a new gifti image");
itkExceptionMacro(<< "Could not create a new GIfTI image");
}

// write labelTable using labelMap and colorMap
Expand Down

0 comments on commit 1509cb2

Please sign in to comment.