Skip to content

Commit

Permalink
modular arithmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed Sep 11, 2024
1 parent cd481b8 commit bed8417
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sleepstudy.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ let f = Figure(; size=(800,400))
# order of grid positions to plot the facets in
gridpos = Dict{String, NTuple{2,Int}}()
for (subj, pos) in zip(reg.subj, Iterators.product(1:2, 1:9))
gridpos[subj] = pos
for (i, subj) in enumerate(reg.subj)
gridpos[subj] = fldmod1(i, 9)
end
gridpos
axes = Axis[]
Expand Down

0 comments on commit bed8417

Please sign in to comment.