Skip to content

Commit

Permalink
break my tests
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Arslan <[email protected]>
  • Loading branch information
palday and ararslan committed Aug 21, 2023
1 parent 2dba1a3 commit e838625
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/regressionmodel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,13 @@ _invlink_and_deriv(::typeof(identity), η) = (η, 1)
# for now, this is private API, but we should see how this goes and whether we can make it public API
# so local extensions (instead of Package-Extensions) are better supported
_model_link(::RegressionModel, invlink::Function) = invlink
function _model_link(::RegressionModel, ::AutoInvLink)
@static if VERSION < v"1.9"
@error "AutoInvLink requires extensions and is thus not available on Julia < 1.9."
function _model_link(model::RegressionModel, ::AutoInvLink)
msg = string("cannot automatically determine inverse link for models ",
"of type ", typeof(model))
@static if isdefined(Base, :get_extension)

Check warning on line 151 in src/regressionmodel.jl

View check run for this annotation

Codecov / codecov/patch

src/regressionmodel.jl#L151

Added line #L151 was not covered by tests
msg *= "; no appropriate extension has been loaded"
end
throw(ArgumentError("No appropriate extension is loaded for automatic " *
"determination of the inverse link for this model type"))
throw(ArgumentError(msg))
end

function _difference_method!(eff::Vector{T}, err::Vector{T},
Expand Down

0 comments on commit e838625

Please sign in to comment.