Skip to content

Commit

Permalink
error for 1.6 julia
Browse files Browse the repository at this point in the history
  • Loading branch information
aburousan committed Jan 20, 2024
1 parent ebf3ce3 commit c558d6f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
matrix:
version:
- '1.6'
- '1.10'
- '1.9'
# - 'nightly'
os:
- ubuntu-latest
Expand Down
12 changes: 6 additions & 6 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
using cosmic
using Cosmic
using Documenter

DocMeta.setdocmeta!(cosmic, :DocTestSetup, :(using cosmic); recursive=true)
DocMeta.setdocmeta!(Cosmic, :DocTestSetup, :(using Cosmic); recursive=true)

makedocs(;
modules=[cosmic],
authors="Kazi Abu Rousan",
repo="https://github.com/aburousan/cosmic.jl/blob/{commit}{path}#{line}",
sitename="cosmic.jl",
repo="https://github.com/aburousan/Cosmic.jl/blob/{commit}{path}#{line}",
sitename="Cosmic.jl",
format=Documenter.HTML(;
prettyurls=get(ENV, "CI", "false") == "true",
canonical="https://aburousan.github.io/cosmic.jl",
canonical="https://aburousan.github.io/Cosmic.jl",
edit_link="main",
assets=String[],
),
Expand All @@ -20,6 +20,6 @@ makedocs(;
)

deploydocs(;
repo="github.com/aburousan/cosmic.jl",
repo="github.com/aburousan/Cosmic.jl",
devbranch="main",
)
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```@meta
CurrentModule = cosmic
CurrentModule = Cosmic
```

# cosmic
Expand Down
2 changes: 1 addition & 1 deletion src/basic_cos.jl
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function scalefact_part(c::AbstractFlatCosmology,t)
elseif t > 2e5/1e9 && t <= 1.5e9/1e9
return (3/2)^(2/3)*(H0*t)^(2/3)*(c.Ω_m)^(1/3)
else
return (1/c.Ω_Λ - 1)^(1/3)*(sinh(3*H0*t(c.Ω_Λ)/2))^(2/3)
return cbrt(1/c.Ω_Λ - 1)*(sinh(3/2*H0*t*sqrt(c.Ω_Λ)))^(2/3)
end

end
Expand Down

0 comments on commit c558d6f

Please sign in to comment.