Skip to content

Commit

Permalink
issue from transitioning stages from ids to strings
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesBuchner committed Jun 11, 2019
1 parent 43fab75 commit a3ebf35
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions bxa/sherpa/background/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ def set_filter(self):
notice(0.4, 9.8)
def set_model(self, stage):
i = self.storage.i
withsoft = stage > 0
withlines = stage > 1
withsoft = stage not in ('continuum')
withlines = stage not in ('continuum', 'softfeatures')
logbm.info('stage "%s" for %s ...' % (stage, i))
continuum = self.boxes[0]
contlevel = self.contlevel
Expand Down
10 changes: 5 additions & 5 deletions examples/sherpa/chandra/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@
sphere.abund_.freeze()
sphere.fe_abund_.freeze()
sphere.redshift = redshift
sphere.nH.min = 1e20 / 1e22
sphere.nH.max = 1e26 / 1e22
sphere.nH.val = 1e22 / 1e22
galabso.nH.freeze()
galabso.nH.val = galnh_value / 1e22
sphere.nh.min = 1e20 / 1e22
sphere.nh.max = 1e26 / 1e22
sphere.nh.val = 1e22 / 1e22
galabso.nh.freeze()
galabso.nh.val = galnh_value / 1e22

print('freezing background params')
for p in get_bkg_model(id).pars:
Expand Down

0 comments on commit a3ebf35

Please sign in to comment.