Skip to content

Commit 410c650

Browse files
committed
Merge branch 'master' into matrixalgebra
2 parents 5eaf71c + fccb38f commit 410c650

File tree

4 files changed

+47
-3
lines changed

4 files changed

+47
-3
lines changed

.github/workflows/CompatCheck.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Compat Check
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
- 'main'
8+
- 'release-'
9+
tags: '*'
10+
pull_request:
11+
workflow_dispatch:
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
test:
19+
name: Compat bounds check - ${{ matrix.julia-version }}
20+
runs-on: ubuntu-latest
21+
strategy:
22+
matrix:
23+
downgrade_mode: ['alldeps']
24+
julia-version: ['1.10', '1']
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: julia-actions/setup-julia@v1
28+
with:
29+
version: ${{ matrix.julia-version }}
30+
- uses: julia-actions/julia-downgrade-compat@v2
31+
with:
32+
mode: ${{ matrix.downgrade_mode }}
33+
skip: Random, LinearAlgebra, Test, Combinatorics
34+
- uses: julia-actions/julia-buildpkg@v1
35+
- uses: julia-actions/julia-runtest@v1

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ PackageExtensionCompat = "1"
3939
Random = "1"
4040
ScopedValues = "1.3.0"
4141
Strided = "2"
42-
TensorKitSectors = "0.1"
42+
TensorKitSectors = "0.1.4, 0.2"
4343
TensorOperations = "5.1"
4444
Test = "1"
4545
TestExtras = "0.2,0.3"
4646
TupleTools = "1.1"
47-
VectorInterface = "0.4, 0.5"
47+
VectorInterface = "0.4.8, 0.5"
4848
Zygote = "0.7"
4949
julia = "1.10"
5050

src/planar/preprocessors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function _construct_braidingtensors!(ex, preargs, indexmap) # ex is guaranteed t
211211
newargs = Vector{Any}(undef, length(args))
212212
newargs[1] = args[1]
213213
success = true
214-
indices = TO.getindices(ex)
214+
indices = [TO.getindices(arg) for arg in args]
215215
for i in 2:length(ex.args)
216216
indexmapa = copy(indexmap)
217217
newargs[i], successa = _construct_braidingtensors!(args[i], preargs, indexmapa)

test/planar.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,4 +284,13 @@ end
284284

285285
@test tr1 tr2 tr3 tr4 tr5 tr6 tr7
286286
end
287+
@testset "Issue 262" begin
288+
V =^2
289+
A = rand(T, V V)
290+
B = rand(T, V V')
291+
C = rand(T, V' V)
292+
@planar D1[i; j] := A[i; j] + B[i; k] * C[k; j]
293+
@planar D2[i; j] := B[i; k] * C[k; j] + A[i; j]
294+
@test D1 D2
295+
end
287296
end

0 commit comments

Comments
 (0)