Skip to content

Commit

Permalink
more on sig_lim
Browse files Browse the repository at this point in the history
  • Loading branch information
profxj committed Aug 24, 2019
1 parent 24e3987 commit a837778
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions linetools/isgm/abscomponent.py
Expand Up @@ -769,7 +769,7 @@ def synthesize_colm(self, overwrite=False, redo_aodm=False, nsig_upper=2., debug
pass
elif aline.attrib['flag_N'] == 3: # Upper limit
if self.flag_N == 0:
self.attrib['N'] = aline.attrib['N']
self.attrib['N'] = max(aline.attrib['N'], nsig_upper*aline.attrib['sig_N'])
self.attrib['sig_N'] = aline.attrib['sig_N']
self.attrib['flag_N'] = 3
elif self.flag_N in [1, 2]:
Expand Down Expand Up @@ -1012,7 +1012,10 @@ def to_dict(self):
# AbsLines
cdict['lines'] = {}
for iline in self._abslines:
cdict['lines'][iline.wrest.value] = iline.to_dict()
try:
cdict['lines'][iline.wrest.value] = iline.to_dict()
except:
pdb.set_trace()
# set linear quantities in column density
_, _ = ltaa.linear_clm(cdict['attrib'])

Expand Down

0 comments on commit a837778

Please sign in to comment.