Repository navigation
DOC: No trivial redirects - #7254
hjmjohnson merged 3 commits into
Conversation
When running a link checker on the ITK documentation a number of links are mentioned under "List of redirects" where a non-trivial change is possible, these have been applied (after a small discussion in InsightSoftwareConsortium#7253).
[Low impact] The documentation-only changes appear safe to merge.
|
hjmjohnson
left a comment
There was a problem hiding this comment.
Thanks, albert-github. The double-conversion, libtiff, Poynton, and Hall-Beyer GLCM replacements resolve to the right documents.
Two of the new targets are generic landing pages that no longer hold what the comment cites, and I could not find a live copy of either: every rules.sonarsource.com/cpp/... path and every CMRR Stimulate path (www.cmrr.umn.edu/stimulate/..., garwoodlab.cmrr.umn.edu, the MTM loadIt page) redirects or no longer resolves. Inline comments suggest dropping the SonarSource URL (the rule id and message are already quoted), and capturing the Stimulate format notes in the module itself.
Outside the diff: the ftp://ftp.cmrr.umn.edu/pub/stimulate/data/ line just below in itkStimulateImageIO.h does not respond either. Item 7 of #7253 (SLATEC) has no source left in the tree, so nothing to do for it here.
Suggested Modules/IO/Stimulate/README.md
Taken from the Stimulate User's Guide appendix and checked against the attributes StimulateImageIO parses.
# ITKIOStimulate
Reads and writes Stimulate (CMRR, University of Minnesota) SDT/SPR images.
The format description below is from the Stimulate User's Guide, appendix
"Sdt File Format", which is no longer online.
## File pair
- `.sdt` (Signal DaTa): raw binary voxel data only.
- `.spr` (Signal PaRameters): ASCII, one `attribute: value` pair per line.
Pass the `.spr` file to the reader, not the `.sdt` file.
## Mandatory parameters
| Attribute | Meaning |
|---|---|
| `numDim` | number of dimensions |
| `dim` | number of voxels along each dimension |
| `dataType` | one of `BYTE`, `WORD`, `LWORD`, `REAL`, `COMPLEX` |
## Optional parameters
| Attribute | Meaning |
|---|---|
| `origin` | center of the first voxel, one value per dimension; if absent and `fov` is given, the image is centered |
| `fov` | distance between the outer edges of the first and last voxel, per dimension; default `interval * dim` |
| `interval` | center-to-center voxel spacing, per dimension; default `fov / dim` |
| `displayRange` | `low high`; values below `low` display black, above `high` white, linear between |
| `fidName` | name of the associated `.sdt` file |
| `sdtOrient` | slice orientation, e.g. `sag` |
## Example
```text
numDim: 4
dim: 128 128 20 150
origin: -10.000000 -10.000000 0.000000 0.000000
fov: 20.000000 20.000000 2.000000 15.000000
interval: 0.156250 0.156250 1.000000 1.000000
dataType: REAL
displayRange: 0.000000 347.904358
fidName: stimFid.sdt
sdtOrient: sag
```
The broken links I'm going to list later on and this might be one of them (though I currently don't see it in my list, might be that the site is currently down?, I'll keep it in mind)
Strangely enough I do see it in my documentation though and not in the official ... might be that there is still some old stuff left in my build tree (I see there still a |
|
When I instructed Claude to remove slatec references, it said:
The
On those branches the link is in |
|
I'm going to see if I can create a new build directory, during the weekend, my current build build directory is a bit dirty. |
Apply suggestions from review
|
@dzenanz @hjmjohnson I also did most of the suggestion, still open the "Poynton" suggestion (#7254 (comment)) though looks like I have no access to that site either... |
hjmjohnson
left a comment
There was a problem hiding this comment.
Thanks, albert-github. I checked 9e089bd: the SonarSource URL is gone, the Stimulate header and itk-module.cmake now carry the suggested text, and the dead ftp://ftp.cmrr.umn.edu line went with it.
Two things remain. First, both new Stimulate comments point at Modules/IO/Stimulate/README.md, which this PR does not add, so they now reference a file that does not exist. The suggested README is in the collapsed block of my previous review; adding it (edited as you like) closes this. Second, the Poynton link you could not open now redirects to a 403 page; the Colour FAQ moved to https://poynton.ca/pdf/ColourFAQ.pdf (suggestions inline).
nit: the PR now has two commits with the same subject, DOC: No trivial redirects. Squashing them into one before merge keeps the history clean.
- corrected Poynton link - added file Modules/IO/Stimulate/README.md
I always try to keep the subject the same, the changes always are because of the same problem. |
Verified at 77139b2: Stimulate README added and Poynton link now points to the PDF. Requested changes are addressed; dismissing my change request.
When running a link checker on the ITK documentation a number of links are mentioned under "List of redirects" where a non-trivial change is possible, these have been applied (after a small discussion in #7253).
PR Checklist