Skip to content

Commit

Permalink
Merge pull request #2 from DavidT3/bug/issue_1
Browse files Browse the repository at this point in the history
Invalid apec version found
  • Loading branch information
jzuhone committed Oct 3, 2018
2 parents ee57110 + c3ef1d0 commit 7068c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soxs/spectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def __init__(self, emin, emax, nbins, var_elem=None, apec_root=None,
if apec_vers is None:
filedir = os.path.join(os.path.dirname(__file__), 'files')
cfile = glob.glob("%s/apec_*_coco.fits" % filedir)[0]
apec_vers = cfile.split("_")[1][1:]
apec_vers = cfile.split("/")[-1].split("_")[1][1:]
mylog.info("Using APEC version %s." % apec_vers)
if nei and apec_root is None:
raise RuntimeError("The NEI APEC tables are not supplied with "
Expand Down

0 comments on commit 7068c8b

Please sign in to comment.