Skip to content

Commit

Permalink
Make U1 AD tests less rectangular, restore RNG and precision
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Jan 4, 2024
1 parent 893f161 commit 5fdd659
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/ad.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ end

# Float32 and finite differences don't mix well
precision(::Type{<:Union{Float32,Complex{Float32}}}) = 1e-2
precision(::Type{<:Union{Float64,Complex{Float64}}}) = 1e-5
precision(::Type{<:Union{Float64,Complex{Float64}}}) = 1e-6

# rrules for functions that destroy inputs
# ----------------------------------------
Expand Down Expand Up @@ -111,7 +111,7 @@ Vlist = ((ℂ^2, (ℂ^3)', ℂ^3, ℂ^2, (ℂ^2)'),
ℂ[Z2Irrep](0 => 3, 1 => 2)',
ℂ[Z2Irrep](0 => 2, 1 => 3),
ℂ[Z2Irrep](0 => 2, 1 => 2)),
(ℂ[U1Irrep](0 => 1, 1 => 2, -1 => 2),
(ℂ[U1Irrep](0 => 2, 1 => 2, -1 => 2),
ℂ[U1Irrep](0 => 3, 1 => 1, -1 => 1),
ℂ[U1Irrep](0 => 2, 1 => 2, -1 => 1)',
ℂ[U1Irrep](0 => 1, 1 => 2, -1 => 2),
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ using .NewSectors

const TK = TensorKit

Random.seed!(12345)
Random.seed!(1234)

smallset(::Type{I}) where {I<:Sector} = take(values(I), 5)
function smallset(::Type{ProductSector{Tuple{I1,I2}}}) where {I1,I2}
Expand Down

0 comments on commit 5fdd659

Please sign in to comment.