Skip to content

Commit 063fa41

Browse files
refactor(types): replace tag field with cmp in cable part types
1 parent 3ca6af4 commit 063fa41

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/cablebuilder/types.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ abstract type AbstractCablePart end
33
@inline r_ex(p::AbstractCablePart) = r_ex(p.shape)
44

55
struct ConductorPart{L, T, S <: AbstractShape{L, T}} <: AbstractCablePart
6-
tag::Symbol
6+
cmp::Symbol
77
shape::S
88
material::Material{T}
99
end
1010

1111
function ConductorPart(
12-
tag::Symbol,
12+
cmp::Symbol,
1313
shape::AbstractShape{L, T_shape},
1414
mat::Material{T_mat},
1515
) where {L, T_shape <: Real, T_mat <: Real}
@@ -20,17 +20,17 @@ function ConductorPart(
2020
s = convert(AbstractShape{L, T}, shape)
2121
m = convert(Material{T}, mat)
2222

23-
return ConductorPart{L, T, typeof(s)}(tag, s, m)
23+
return ConductorPart{L, T, typeof(s)}(cmp, s, m)
2424
end
2525

2626
struct InsulatorPart{L, T, S <: AbstractShape{L, T}} <: AbstractCablePart
27-
tag::Symbol
27+
cmp::Symbol
2828
shape::S
2929
material::Material{T}
3030
end
3131

3232
function InsulatorPart(
33-
tag::Symbol,
33+
cmp::Symbol,
3434
shape::AbstractShape{L, T_shape},
3535
mat::Material{T_mat},
3636
) where {L, T_shape <: Real, T_mat <: Real}
@@ -41,5 +41,5 @@ function InsulatorPart(
4141
s = convert(AbstractShape{L, T}, shape)
4242
m = convert(Material{T}, mat)
4343

44-
return InsulatorPart{L, T, typeof(s)}(tag, s, m)
44+
return InsulatorPart{L, T, typeof(s)}(cmp, s, m)
4545
end

0 commit comments

Comments
 (0)