Skip to content

Commit

Permalink
test: supress more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fjebaker committed Sep 30, 2023
1 parent a54c3ba commit c5fe433
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/fitting/test-fit-multi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ include("../dummies.jl")

# generate some fake powerlaw data with three components
dummy_data =
make_dummy_dataset((E) -> (E^(-0.1) + E^(-3.0) + E^(-1.0)); units = "count / s")
make_dummy_dataset((E) -> (E^(-0.1) + E^(-3.0) + E^(-1.0)); units = "count / s keV")

# model with two components
model = PowerLaw() + PowerLaw()
Expand Down
2 changes: 1 addition & 1 deletion test/fitting/test-fit-optim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include("../dummies.jl")

# generate some fake powerlaw data with three components
dummy_data =
make_dummy_dataset((E) -> (E^(-0.1) + E^(-3.0) + E^(-1.0)); units = "count / s")
make_dummy_dataset((E) -> (E^(-0.1) + E^(-3.0) + E^(-1.0)); units = "count / s keV")

# model with two components
model = PowerLaw(K = FitParam(10.0)) + PowerLaw(K = FitParam(10.0))
Expand Down
4 changes: 2 additions & 2 deletions test/fitting/test-fit-powerlaw.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using SpectralFitting
include("../dummies.jl")

# generate some fake powerlaw data
dummy_data = make_dummy_dataset((E) -> (E^(-3.0)); units = "count / s")
dummy_data = make_dummy_dataset((E) -> (E^(-3.0)); units = "count / s keV")

# test that both julia and xspec implementations can fit simple
model = PowerLaw()
Expand All @@ -22,7 +22,7 @@ result = fit(prob, LevenbergMarquadt())
@test result.u [12.06629478087094, 3.080992500319396] atol = 1e-4

# composite power law
dummy_data = make_dummy_dataset((E) -> (E^(-3.0) + E^(-1)); units = "count / s")
dummy_data = make_dummy_dataset((E) -> (E^(-3.0) + E^(-1)); units = "count / s keV")

# julia implementation
model = PowerLaw() + PowerLaw(a = FitParam(1.0))
Expand Down

0 comments on commit c5fe433

Please sign in to comment.