Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
torfjelde committed Dec 3, 2023
1 parent 011e41b commit 5ffa2ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions src/bijectors/ordered.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ function ordered(d::ContinuousMultivariateDistribution)
b = bijector(d)
binv = inverse(b)
if !is_monotonically_increasing(binv)
throw(
ArgumentError(
"ordered transform is not supported for $d.",
),
)
throw(ArgumentError("ordered transform is currently not supported for $d."))
end
return transformed(d, binv OrderedBijector() b)
end
Expand Down
1 change: 0 additions & 1 deletion test/bijectors/ordered.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ end
d_ordered = ordered(d)
@test d_ordered isa Bijectors.TransformedDistribution
@test d_ordered.dist === d
# @test d_ordered.transform isa OrderedBijector
y = randn(5)
x = inverse(bijector(d_ordered))(y)
@test issorted(x)
Expand Down

0 comments on commit 5ffa2ea

Please sign in to comment.