diff --git a/Project.toml b/Project.toml index 523731dd..7edb6cd5 100644 --- a/Project.toml +++ b/Project.toml @@ -9,7 +9,6 @@ LRUCache = "8ac3fa9e-de4c-5943-b1dc-09c6b5f20637" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" PackageExtensionCompat = "65ce6f38-6b18-4e1d-a461-8949797d7930" Strided = "5e0ebb24-38b0-5f93-81fe-25c709ecae67" -TensorKitSectors = "7ea117e4-0799-4282-ac6e-748b4bc2d0f5" TensorOperations = "6aa20fa7-93e2-5fca-9bc0-fbd0db3c71a2" TupleTools = "9d95972d-f1c8-5527-a6e0-b4b365fa01f6" VectorInterface = "409d34a3-91d5-4945-b6ec-7529ddf182d8" diff --git a/src/TensorKit.jl b/src/TensorKit.jl index a7756643..e640f065 100644 --- a/src/TensorKit.jl +++ b/src/TensorKit.jl @@ -168,10 +168,11 @@ Base.show(io::IO, e::IndexError) = print(io, "IndexError(", e.message, ")") # Definitions and methods for superselection sectors (quantum numbers) #---------------------------------------------------------------------- -using TensorKitSectors -import TensorKitSectors: dim, BraidingStyle, FusionStyle, ⊠, ⊗ -import TensorKitSectors: dual, type_repr -import TensorKitSectors: twist +include(joinpath(@__DIR__, "..", "TensorKitSectors", "src", "TensorKitSectors.jl")) +using .TensorKitSectors +import .TensorKitSectors: dim, BraidingStyle, FusionStyle, ⊠, ⊗ +import .TensorKitSectors: dual, type_repr +import .TensorKitSectors: twist # Constructing and manipulating fusion trees and iterators thereof #------------------------------------------------------------------ diff --git a/test/newsectors.jl b/test/newsectors.jl index 16cd8ef0..ca625aa1 100644 --- a/test/newsectors.jl +++ b/test/newsectors.jl @@ -6,10 +6,11 @@ module NewSectors export NewSU2Irrep using HalfIntegers, WignerSymbols -using TensorKitSectors +using TensorKit +using TensorKit: TensorKitSectors -import TensorKitSectors: FusionStyle, BraidingStyle, Nsymbol, Fsymbol, Rsymbol, dim, - fusiontensor, ⊗ +import TensorKit.TensorKitSectors: FusionStyle, BraidingStyle, Nsymbol, Fsymbol, Rsymbol, dim, + fusiontensor, ⊗, SectorValues struct NewSU2Irrep <: Sector j::HalfInt diff --git a/test/runtests.jl b/test/runtests.jl index eccb7f93..9705fc57 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,7 +1,3 @@ -# TODO: remove this once separate folders are registered -import Pkg; -Pkg.develop(Pkg.PackageSpec(path=joinpath(@__DIR__, "..", "TensorKitSectors"))) - using Test using TestExtras using Random