Skip to content

Commit

Permalink
deprecated AbstractTensors
Browse files Browse the repository at this point in the history
  • Loading branch information
chakravala committed Apr 23, 2024
1 parent 1e94f1a commit 9c755ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 1 addition & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
10 changes: 5 additions & 5 deletions src/Similitude.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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))
Expand Down

2 comments on commit 9c755ac

@chakravala
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/105469

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.8 -m "<description of version>" 9c755ace7260e44efc7cc3e446397ffff119f424
git push origin v0.2.8

Please sign in to comment.