Skip to content

Commit bcd3e9f

Browse files
authored
added function aliases that dont contain unicode characters for convenience (#805)
1 parent 09e6f1f commit bcd3e9f

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
MixedModels v4.31.0 Release Notes
2+
==============================
3+
- Added aliases `settheta!` and `profilesigma` for the functions `setθ!` and `profileσ` respectively
4+
15
MixedModels v4.30.0 Release Notes
26
==============================
37
- Refactor calls to backend optimizer to make it easier to add and use different optimization backends.

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "MixedModels"
22
uuid = "ff71e718-51f3-5ec2-a782-8ffcbfa3c316"
33
author = ["Phillip Alday <[email protected]>", "Douglas Bates <[email protected]>"]
4-
version = "4.30.1"
4+
version = "4.31.0"
55

66
[deps]
77
Arrow = "69666777-d1a9-59fb-9406-91d4454c9d45"

src/MixedModels.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export @formula,
125125
predict,
126126
profile,
127127
profileσ,
128+
profilesigma,
128129
profilevc,
129130
pwrss,
130131
ranef,
@@ -143,6 +144,7 @@ export @formula,
143144
shortestcovint,
144145
sdest,
145146
setθ!,
147+
settheta!,
146148
simulate,
147149
simulate!,
148150
sparse,
@@ -208,6 +210,11 @@ include("profile/profile.jl")
208210
include("nlopt.jl")
209211
include("prima.jl")
210212

213+
214+
# aliases with non-unicode function names
215+
const settheta! = setθ!
216+
const profilesigma = profileσ
217+
211218
# COV_EXCL_START
212219
@setup_workload begin
213220
# Putting some things in `setup` can reduce the size of the

test/misc.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ using MixedModels: dataset
1616
@test_throws MixedModels._MISSING_RE_ERROR MixedModel(@formula(yield ~ 0 + batch), dyestuff, Poisson())
1717
@test_throws MixedModels._MISSING_RE_ERROR MixedModel(@formula(yield ~ 1), dyestuff, Poisson())
1818
end
19+
20+
@testset "non-unicode function aliases for exports" begin
21+
@test settheta! === setθ!
22+
@test profilesigma === profileσ
23+
end

0 commit comments

Comments
 (0)