Skip to content

Commit 87cb253

Browse files
committed
Replace \parallel by \sqcup
1 parent 697ccf0 commit 87cb253

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Here are some unique features:
2121
keeping constants around.
2222

2323
- Pipelines can be easily constructed with clean syntax
24-
`(f1 → f2 → f3) (f4 → f5)`, and they are automatically
24+
`(f1 → f2 → f3) (f4 → f5)`, and they are automatically
2525
revertible when the individual transforms are revertible.
2626

2727
- Branches of a pipeline are run in parallel using multiple threads
@@ -86,7 +86,7 @@ f2 = Scale()
8686
f3 = Quantile()
8787
f4 = Functional(cos)
8888
f5 = Interquartile()
89-
pipeline = (f1 f2 f3) (f4 f5)
89+
pipeline = (f1 f2 f3) (f4 f5)
9090

9191
# feed data into the pipeline
9292
table |> pipeline |> corner
@@ -130,7 +130,7 @@ Please check the docstrings for additional information.
130130
| `DRS` | Shortcut for `ZScore() → EigenAnalysis(:VD)` |
131131
| `SDS` | Shortcut for `ZScore() → EigenAnalysis(:VDV)` |
132132
| `Sequential` | Transform created with `` (\to in LaTeX) |
133-
| `Parallel` | Transform created with `` (\parallel in LaTeX) |
133+
| `Parallel` | Transform created with `` (\parallel in LaTeX) |
134134

135135
### External
136136

src/TableTransforms.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ export
3939
PCA, DRS, SDS,
4040
Sequential,
4141
Parallel,
42-
,
42+
,
4343

4444
end

src/transforms/parallel.jl

+5-5
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ function revert(p::Parallel, newtable, cache)
8989
end
9090

9191
"""
92-
transform₁ transform₂ transformₙ
92+
transform₁ transform₂ transformₙ
9393
9494
Create a [`Parallel`](@ref) transform with
9595
`[transform₁, transform₂, …, transformₙ]`.
9696
"""
97-
(t1::Transform, t2::Transform) = Parallel([t1, t2])
98-
(t1::Transform, t2::Parallel) = Parallel([t1; t2.transforms])
99-
(t1::Parallel, t2::Transform) = Parallel([t1.transforms; t2])
100-
(t1::Parallel, t2::Parallel) = Parallel([t1.transforms; t2.transforms])
97+
(t1::Transform, t2::Transform) = Parallel([t1, t2])
98+
(t1::Transform, t2::Parallel) = Parallel([t1; t2.transforms])
99+
(t1::Parallel, t2::Transform) = Parallel([t1.transforms; t2])
100+
(t1::Parallel, t2::Parallel) = Parallel([t1.transforms; t2.transforms])

test/transforms.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
y = x + rand(Normal(0,2), 1500)
308308
z = y + rand(Normal(0,5), 1500)
309309
t = Table(; x, y, z)
310-
T = Scale(low=0.3, high=0.6) EigenAnalysis(:VDV)
310+
T = Scale(low=0.3, high=0.6) EigenAnalysis(:VDV)
311311
n, c = apply(T, t)
312312
tₒ = revert(T, n, c)
313313
@test Tables.matrix(t) Tables.matrix(tₒ)
@@ -317,7 +317,7 @@
317317
y = x + rand(Normal(0,2), 1500)
318318
z = y + rand(Normal(0,5), 1500)
319319
t = Table(; x, y, z)
320-
T = ZScore() EigenAnalysis(:V)
320+
T = ZScore() EigenAnalysis(:V)
321321
n = T(t)
322322
@test length(Tables.columnnames(n)) == 6
323323

@@ -329,8 +329,8 @@
329329
T₁ = Center()
330330
T₂ = Scale(low=0.2, high=0.8)
331331
T₃ = EigenAnalysis(:VD)
332-
P₁ = T₁ (T₂ T₃)
333-
P₂ = (T₁ T₂) (T₁ T₃)
332+
P₁ = T₁ (T₂ T₃)
333+
P₂ = (T₁ T₂) (T₁ T₃)
334334
n₁ = P₁(t)
335335
n₂ = P₂(t)
336336
@test Tables.matrix(n₁) Tables.matrix(n₂)

0 commit comments

Comments
 (0)