-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correct the domains when building the transformer function in si…
…mulate
- Loading branch information
Showing
3 changed files
with
25 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
using Test, SpectralFitting | ||
|
||
# path to the data directory | ||
data1 = SpectralFitting.XmmData( | ||
SpectralFitting.XmmEPIC(), | ||
joinpath(testdir, "xmm/pn_spec_grp.fits"), | ||
) | ||
|
||
|
||
# smoke test | ||
model = GaussianLine() + PowerLaw(a = FitParam(0.2)) | ||
sim = simulate( | ||
model, | ||
data1.data.response, | ||
data1.data.ancillary; | ||
seed = 8, | ||
exposure_time = 1e1, | ||
) | ||
|
||
# TODO: add a fit. can't do it at the moment as the simulated datasets don't | ||
# support masking the model domain, so we have singular values at high energies |