From 26fe52edb3f5cd5ad71d52eb53bd9331470a3a7e Mon Sep 17 00:00:00 2001 From: Marek Kaluba Date: Wed, 29 Nov 2023 00:37:46 +0100 Subject: [PATCH] workaround findfirst problems on julia-1.6 --- src/Characters/character_tables.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Characters/character_tables.jl b/src/Characters/character_tables.jl index 20873ee..fb3a437 100644 --- a/src/Characters/character_tables.jl +++ b/src/Characters/character_tables.jl @@ -78,7 +78,9 @@ function CharacterTable( # make order of characters deterministic vals .= sortslices(vals; dims = 1) # and that the trivial character is first - k = findfirst(r -> all(isone, r), eachrow(vals)) + k = findfirst(i -> all(isone, @views vals[i, :]), axes(vals, 1)) + # doesn't work on julia-1.6 + # k = findfirst(r -> all(isone, r), eachrow(vals)) if k ≠ 1 _swap_rows!(vals, 1, k) end