Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
gcalderone committed Mar 26, 2024
1 parent c7ae243 commit 2c27136
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Artifacts.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[qsfit_data]
git-tree-sha1 = "d92036936313dadf6a468ccb8934c6eb484b101a"
git-tree-sha1 = "33e2ba6965fcb715d73d81e4aeb6f34f0f47f04a"

[[qsfit_data.download]]
sha256 = "88b85eb59f5a98cc4e27c86576af091e60264cd080d72ce4d60f544352a96317"
sha256 = "cb720b35da3459ecf4b872c76c9b043eac816291cf29601732d3a4951ad50edd"
url = "http://wwwuser.oats.inaf.it/calderone/QSFit_data/qsfit_data.tar.gz"
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
SortMerge = "041a2d23-8c6e-5597-be73-bf96b5e0dfd4"
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
TextParse = "e0df1984-e451-5cb5-8b61-797a481e67e3"
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
UnitfulAstro = "6112ee07-acf9-5e0f-b108-d242c714bf9f"


[compat]
CMPFit = "0.3"
Cosmology = "1.0"
Expand Down
5 changes: 2 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ display(res.fitstats)
rm(GModelFitViewer.serialize_html(res))
@test res.fitstats.ndata == 3309
@test res.fitstats.nfree == 70
@test res.fitstats.fitstat 1.201114868884555
# @test abs(res.fitstats.fitstat - 1.201116391196934) < 1e-5


spec = Spectrum(Val(:SDSS_DR10), joinpath(QSFit.qsfit_data(), "test", "spec-2233-53845-0594.fits"))
recipe = Recipe(Type1, redshift=0.0999, Av=3.1 * 0.0209587)
res = analyze(recipe, spec)
display(res.bestfit)
display(res.fitstats)
@gp res; viewer(res)
rm(GModelFitViewer.serialize_html(res))
@test res.fitstats.ndata == 3118
@test res.fitstats.nfree == 83
@test res.fitstats.fitstat 1.2621845693945035
# @test abs(res.fitstats.fitstat - 1.2621845693945035) < 1e-5

0 comments on commit 2c27136

Please sign in to comment.