From 9c755ace7260e44efc7cc3e446397ffff119f424 Mon Sep 17 00:00:00 2001 From: Michael Reed <18372368+chakravala@users.noreply.github.com> Date: Tue, 23 Apr 2024 08:57:12 -0400 Subject: [PATCH] deprecated AbstractTensors --- .appveyor.yml | 2 +- Project.toml | 4 +--- src/Similitude.jl | 10 +++++----- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index f83c137..5ee4791 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -2,7 +2,7 @@ environment: matrix: - julia_version: 1 - julia_version: 1.6 - - julia_version: 1.8 + - julia_version: 1.10 - julia_version: nightly platform: diff --git a/Project.toml b/Project.toml index e408f8d..f82889e 100644 --- a/Project.toml +++ b/Project.toml @@ -1,17 +1,15 @@ name = "Similitude" uuid = "d70e672a-ff44-4dfc-8031-4cc812d84922" authors = ["Michael Reed"] -version = "0.2.7" +version = "0.2.8" [deps] UnitSystems = "3a241a3c-2137-41aa-af5e-1388e404ca09" FieldAlgebra = "0b62d163-fd1d-4060-a953-4385d03545e2" FieldConstants = "73d362c4-b7ec-495f-a538-f22f12d4d8ae" -AbstractTensors = "a8e43f4a-99b7-5565-8bf1-0165161caaea" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" [compat] -AbstractTensors = "0.7" FieldConstants = "0.1" FieldAlgebra = "0.1.3" UnitSystems = "0.3.9" diff --git a/src/Similitude.jl b/src/Similitude.jl index 24a4ef8..cf0b7b7 100644 --- a/src/Similitude.jl +++ b/src/Similitude.jl @@ -26,10 +26,10 @@ import UnitSystems: Systems, Dimensionless, Constants, Physics, Convert, Derived const dir = dirname(pathof(UnitSystems)) using LinearAlgebra -import AbstractTensors: TupleVector, Variables, Values, value import FieldConstants: param, Constant import FieldAlgebra +import FieldAlgebra: TupleVector, Variables, Values, value import FieldAlgebra: showgroup, factorize, valueat, product, coefprod, makeint, measure import FieldAlgebra: AbstractModule, AbelianGroup, Group, LogGroup, ExpGroup import FieldAlgebra: value, isonezero, islog, base @@ -43,10 +43,10 @@ include("dimension.jl") include("constant.jl") dimtext(u) = isq -printdims(io::IO,x::Group{T,dims},u::UnitSystem) where T = printdims(io,x,dimtext(normal(u))) -printdims(io::IO,x::Group{T,vals},u::UnitSystem) where T = printdims(io,x,basis) -printdims(io::IO,x::Group{T,dims}) where T = printdims(io,x,isq) -printdims(io::IO,x::Group{T,vals}) where T = printdims(io,x,basis) +printdims(io::IO,x::Group{T,dims},u::UnitSystem) where T = printdims(io,x.v,dimtext(normal(u))) +printdims(io::IO,x::Group{T,vals},u::UnitSystem) where T = printdims(io,x.v,basis) +printdims(io::IO,x::Group{T,dims}) where T = printdims(io,x.v,isq) +printdims(io::IO,x::Group{T,vals}) where T = printdims(io,x.v,basis) #logdb(x::Constant{D}) where D = Constant{logdb(D)}() logdb(x::Quantity{D,U}) where {D,U} = Quantity{logdb(D),U}(logdb(x.v))