Skip to content

Commit

Permalink
Address some coverage issues
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-petersen committed Jun 12, 2024
1 parent 8c8340b commit 44d818c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 231 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
**/.ipynb_checkpoints/*

# Documentation (avoid committing generated content)
docs/build/
docs/build/

# Bases not yet ready for primetime
src/EXPeof.jl
2 changes: 1 addition & 1 deletion docs/src/bases.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

### Clutton-Brock (1973)
```@docs
AstroBasis.CB73Basis
CB73Basis
```

### Hernquist (1992)
Expand Down
229 changes: 0 additions & 229 deletions src/EXPeof.jl

This file was deleted.

6 changes: 6 additions & 0 deletions test/test_spherical.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ ltest, nradial = 2, 5

@testset "sphericalbases" begin
@testset "CB73" begin
# build bases with unique cases
basis = AstroBasis.CB73Basis(lmax=ltest,nradial=1,G=G, rb=rb)
basis = AstroBasis.CB73Basis(lmax=ltest,nradial=2,G=G, rb=rb)
# build a standard basis
basis = AstroBasis.CB73Basis(lmax=ltest,nradial=nradial,G=G, rb=rb)
@test dimension(basis) == 3
@test getparameters(basis)["name"] == "CB73"
Expand All @@ -17,6 +21,8 @@ ltest, nradial = 2, 5
@test basis.tabUl[2] == 0
tabDl!(basis,0,rb)
@test basis.tabDl[2] == 0
# test the basis writing (for coverage!)
AstroBasis.WriteParameters("tmp.h5",basis,"w")
end
@testset "Hernquist" begin
basis = AstroBasis.HernquistBasis(lmax=ltest,nradial=nradial,G=G, rb=rb)
Expand Down

0 comments on commit 44d818c

Please sign in to comment.