From 030862aecbed71117cde5ac5c2e711a384b357b7 Mon Sep 17 00:00:00 2001 From: Karl Pierce Date: Mon, 13 Mar 2023 13:08:21 -0400 Subject: [PATCH 1/4] Add ReferenceTests to Project.toml --- ITensorGLMakie/Project.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ITensorGLMakie/Project.toml b/ITensorGLMakie/Project.toml index 72749f7b6b..5c02fce0a3 100644 --- a/ITensorGLMakie/Project.toml +++ b/ITensorGLMakie/Project.toml @@ -7,9 +7,11 @@ version = "0.1.1" GLMakie = "e9467ef8-e4e7-5192-8a1a-b1aee30e663a" ITensorMakie = "72ca75eb-df6f-4d6b-80c5-d5eab17be3f9" Reexport = "189a3867-3050-52da-a836-e630ba90ab69" +ReferenceTests = "324d217c-45ce-50fc-942e-d289b448e8cf" [compat] GLMakie = "0.4.7, 0.6, 0.7, 0.8" ITensorMakie = "0.1.2" Reexport = "1.2.2" +ReferenceTests = "0.10.1" julia = "1.6" From 49a722492716f68a2a1bc18d95b4776cbffc270c Mon Sep 17 00:00:00 2001 From: Karl Pierce Date: Tue, 14 Mar 2023 11:59:53 -0400 Subject: [PATCH 2/4] Revert "Add ReferenceTests to Project.toml" This reverts commit 030862aecbed71117cde5ac5c2e711a384b357b7. --- ITensorGLMakie/Project.toml | 2 -- 1 file changed, 2 deletions(-) diff --git a/ITensorGLMakie/Project.toml b/ITensorGLMakie/Project.toml index 5c02fce0a3..72749f7b6b 100644 --- a/ITensorGLMakie/Project.toml +++ b/ITensorGLMakie/Project.toml @@ -7,11 +7,9 @@ version = "0.1.1" GLMakie = "e9467ef8-e4e7-5192-8a1a-b1aee30e663a" ITensorMakie = "72ca75eb-df6f-4d6b-80c5-d5eab17be3f9" Reexport = "189a3867-3050-52da-a836-e630ba90ab69" -ReferenceTests = "324d217c-45ce-50fc-942e-d289b448e8cf" [compat] GLMakie = "0.4.7, 0.6, 0.7, 0.8" ITensorMakie = "0.1.2" Reexport = "1.2.2" -ReferenceTests = "0.10.1" julia = "1.6" From 9fea70d00c038fe8fe0f0e341494c5cadbe41733 Mon Sep 17 00:00:00 2001 From: kmp5VT Date: Mon, 20 Mar 2023 14:51:01 -0400 Subject: [PATCH 3/4] Convert pair to tuple after modifying indices --- src/indexset.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/indexset.jl b/src/indexset.jl index 6a219b6bed..30ed3a2366 100644 --- a/src/indexset.jl +++ b/src/indexset.jl @@ -557,7 +557,7 @@ function replaceinds(is::Indices, rep_inds::Tuple{Vararg{Pair{<:Index,<:Index}}} end function replaceinds(is::Indices, rep_inds::Pair) - return replaceinds(is, Tuple(first(rep_inds)) .=> Tuple(last(rep_inds))) + return replaceinds(is, Tuple(first(rep_inds) .=> last(rep_inds))) end # Check that the QNs are all the same From cbab792752e4ecf988eaa1c675d5366bf163efcd Mon Sep 17 00:00:00 2001 From: kmp5VT Date: Mon, 20 Mar 2023 15:07:31 -0400 Subject: [PATCH 4/4] Don't use tuple in replaceinds --- src/indexset.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/indexset.jl b/src/indexset.jl index 30ed3a2366..858c80d9ef 100644 --- a/src/indexset.jl +++ b/src/indexset.jl @@ -557,7 +557,7 @@ function replaceinds(is::Indices, rep_inds::Tuple{Vararg{Pair{<:Index,<:Index}}} end function replaceinds(is::Indices, rep_inds::Pair) - return replaceinds(is, Tuple(first(rep_inds) .=> last(rep_inds))) + return replaceinds(is, first(rep_inds) .=> last(rep_inds)) end # Check that the QNs are all the same