Skip to content

Commit

Permalink
add / to the template_lib
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Jan 19, 2024
1 parent 9a38af4 commit fa68139
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion py/rvspecfit/fitter_ccf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_ccf_info(spec_setup, config):
"""
if spec_setup not in CCFCache.ccfs:
prefix = config['template_lib']
prefix = config['template_lib'] + '/'
ccf_continuum = config.get('ccf_continuum_normalize')
if ccf_continuum is None:
ccf_continuum = True
Expand Down
4 changes: 2 additions & 2 deletions py/rvspecfit/spec_inter.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def getInterpolator(HR, config, warmup_cache=False):
"""
if HR not in interp_cache.interps:

savefile = config['template_lib'] + make_nd.INTERPOL_PKL_NAME % HR
savefile = config['template_lib'] + '/' + make_nd.INTERPOL_PKL_NAME % HR
with open(savefile, 'rb') as fd0:
fd = pickle.load(fd0)
log_spec = fd.get('log_spec') or True
Expand All @@ -314,7 +314,7 @@ def getInterpolator(HR, config, warmup_cache=False):
raise RuntimeError('Unrecognized interpolation file')

if interp_type in ['triangulation', 'regulargrid']:
dats = np.load(config['template_lib'] +
dats = np.load(config['template_lib'] + '/' +
make_nd.INTERPOL_DAT_NAME % HR,
mmap_mode='r')
if warmup_cache:
Expand Down

0 comments on commit fa68139

Please sign in to comment.