Skip to content

Commit ec86c79

Browse files
authored
Update yml, docs/make, LazyGrids v1 (#65)
* Add docstring * Synchronize yml * Standardize make * Compat LazyGrids v1 * Add _typos
1 parent b242370 commit ec86c79

File tree

5 files changed

+39
-10
lines changed

5 files changed

+39
-10
lines changed

.github/workflows/SpellCheck.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Spell Check
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
typos-check:
7+
name: Spell Check with Typos
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout Actions Repository
11+
uses: actions/checkout@v4
12+
- name: Check spelling
13+
uses: crate-ci/typos@master

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ Requires = "ae029012-a4dd-5104-9daa-d747884805df"
1414
FFTW = "1.4.5, 1.5"
1515
ImageGeoms = "0.9, 0.10"
1616
Interpolations = "0.14, 0.15"
17-
LazyGrids = "0.4, 0.5"
17+
LazyGrids = "0.4, 0.5, 1"
1818
Requires = "1.3"
1919
julia = "1.10"

_typos.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[default]
2+
extend-ignore-identifiers-re = [
3+
"iy",
4+
]

docs/make.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ execute = isempty(ARGS) || ARGS[1] == "run"
22

33
org, reps = :JuliaImageRecon, :Sinograms
44
eval(:(using $reps))
5-
using Documenter
6-
using Literate
5+
import Documenter
6+
import Literate
77

88
# https://juliadocs.github.io/Documenter.jl/stable/man/syntax/#@example-block
99
ENV["GKSwstype"] = "100"
@@ -23,7 +23,7 @@ binder_root_url =
2323

2424

2525
repo = eval(:($reps))
26-
DocMeta.setdocmeta!(repo, :DocTestSetup, :(using $reps; import $reps); recursive=true)
26+
Documenter.DocMeta.setdocmeta!(repo, :DocTestSetup, :(using $reps); recursive=true)
2727

2828
# preprocessing
2929
inc1 = "include(\"../../../inc/reproduce.jl\")"
@@ -77,7 +77,7 @@ format = Documenter.HTML(;
7777
assets = ["assets/custom.css"],
7878
)
7979

80-
makedocs(;
80+
Documenter.makedocs(;
8181
modules = [repo],
8282
authors = "Jeff Fessler and contributors",
8383
sitename = "$repo.jl",
@@ -90,7 +90,7 @@ makedocs(;
9090
)
9191

9292
if isci
93-
deploydocs(;
93+
Documenter.deploydocs(;
9494
repo = "github.com/$base",
9595
devbranch = "main",
9696
devurl = "dev",

src/geom/common.jl

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,29 @@ typically degrees.
2727
angles(rg::RayGeom) =
2828
range(rg.orbit_start, length = rg.na, step = rg.orbit / rg.na)
2929

30-
# angles in radians
30+
"""
31+
_ar(rg::RayGeom)
32+
Angles in radians.
33+
"""
3134
_ar(rg::RayGeom) = to_radians(angles(rg))
3235

33-
# minimum orbit for a fan-beam short scan
36+
"""
37+
_orbit_short(rg::RayGeom)
38+
Minimum orbit for a fan-beam short scan.
39+
"""
3440
_orbit_short(rg::RayGeom) = 180 + 2 * rad2deg(_gamma_max(rg)) # (degrees)
3541

36-
# distance from detector arc focal spot to source for fan-beam
42+
"""
43+
_dfs(::Union{SinoFan,CtFan})
44+
Distance from detector arc focal spot to source for fan-beam.
45+
"""
3746
_dfs(::Union{SinoFanArc{Td},CtFanArc{Td}}) where Td = zero(Td)
3847
_dfs(::Union{SinoFanFlat{Td},CtFanFlat{Td}}) where Td = Inf * oneunit(Td)
3948

40-
# distance from source to origin for fan-beam
49+
"""
50+
_dso(rg::Union{SinoFan,CtFan}) = rg.dsd - rg.dod
51+
Distance from source to origin for fan-beam.
52+
"""
4153
_dso(rg::Union{SinoFan,CtFan}) = rg.dsd - rg.dod
4254

4355
"""

0 commit comments

Comments
 (0)