Skip to content

Commit a1b25a9

Browse files
authoredMar 27, 2023
Merge pull request #111 from tpapp/tp/fix-static-array-domain-labels
fix static array domain labels
·
v0.8.17v0.8.5
2 parents 8b8a068 + 6e40439 commit a1b25a9

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed
 

‎Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "TransformVariables"
22
uuid = "84d833dd-6860-57f9-a1a7-6da5db126cff"
33
authors = ["Tamas K. Papp <tkpapp@gmail.com>"]
4-
version = "0.8.4"
4+
version = "0.8.5"
55

66
[deps]
77
ArgCheck = "dce04be8-c92d-5529-be00-80e4d2c0e197"

‎src/aggregation.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ function inverse_at!(x::AbstractVector, index,
174174
index
175175
end
176176

177-
function _domain_label(transformation::StaticArrayTransformation{D}, index::Int) where D
178-
_array_domain_label(transformation.inner_transformation, D, index)
177+
function _domain_label(transformation::StaticArrayTransformation{D,S}, index::Int) where {D,S}
178+
_array_domain_label(transformation.inner_transformation, fieldtypes(S), index)
179179
end
180180

181181
####

‎test/runtests.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,7 @@ end
636636
@testset "domain labels" begin
637637
t = as((a = asℝ₊,
638638
b = as(Array, asℝ₋, 1, 1),
639-
c = corr_cholesky_factor(2)))
640-
@test [domain_label(t, i) for i in 1:dimension(t)] == [".a", ".b[1,1]", ".c[1]"]
639+
c = corr_cholesky_factor(2),
640+
d = as(SVector{2}, asℝ₊)))
641+
@test [domain_label(t, i) for i in 1:dimension(t)] == [".a", ".b[1,1]", ".c[1]", ".d[1]", ".d[2]"]
641642
end

2 commit comments

Comments
 (2)

tpapp commented on Mar 27, 2023

@tpapp
OwnerAuthor

JuliaRegistrator commented on Mar 27, 2023

@JuliaRegistrator

Registration pull request created: JuliaRegistries/General/80398

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.8.5 -m "<description of version>" a1b25a99a966db5c27f0f9774b15b22b8a663e54
git push origin v0.8.5
Please sign in to comment.