Skip to content

Commit 58b56e5

Browse files
committed
1.6.2-32.td1:
- fixed bugs when parsing functions from lmodel.dat file and in the function load_xspec_local_models - Update Changes.txt, increment patch level
1 parent e1b8f99 commit 58b56e5

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

Changes.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ Changes since 1.6.2 (released Jan 2012)
6666
back = (BACKGROUND_UP + BACKGROUND_DOWN)
6767
/(BACKSCUP + BACKSCDN)
6868
32.Mh1. Fix option string update for fit-method "simann".
69+
32.td1. Fix a bug when parsing the lmodel.dat file and loading
70+
local models
6971

7072
Changes since 1.6.1 (released Jul 2010)
7173
---------------------------------------

modules/xspec/src/xspec.sl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ static define choose_exec_symbol_hook (m) %{{{
232232
{
233233
if (m.exec_symbol_hook != NULL)
234234
return;
235-
236235
variable fmt = "_xspec_%s_f_hook";
237236
m.has_fortran_linkage = 1;
238237

@@ -242,13 +241,13 @@ static define choose_exec_symbol_hook (m) %{{{
242241
switch (prefix)
243242
{
244243
case "C_" or case "c_":
245-
%m.routine_name = m.routine_name[[2:]];
244+
m.routine_name = m.routine_name[[2:]];
246245
fmt = "_xspec_%s_C_hook";
247246
m.has_fortran_linkage = 0;
248247
}
249248
{
250249
case "F_":
251-
%m.routine_name = m.routine_name[[2:]];
250+
m.routine_name = m.routine_name[[2:]];
252251
fmt = "_xspec_%s_F_hook";
253252
m.has_fortran_linkage = 1;
254253
}
@@ -426,8 +425,8 @@ define build_xspec_local_models () %{{{
426425
%}}}
427426

428427
private define make_lib_path (dir, name) %{{{
429-
{
430-
variable path = path_concat (dir, "${s}.${shared_lib_ext}"$);
428+
{
429+
variable path = path_concat (dir, "lib${name}.${shared_lib_ext}"$);
431430

432431
if (NULL == stat_file (path))
433432
{
@@ -451,9 +450,10 @@ private define guess_lib_path (nargs) %{{{
451450
variable s, dir = get_local_model_dir();
452451

453452
if (nargs == 2)
454-
{
453+
{
455454
(dir, s) = ();
456-
return make_lib_path (dir, s);
455+
456+
return make_lib_path (dir, s);
457457
}
458458
else if (nargs == 1)
459459
{
@@ -477,7 +477,7 @@ private define guess_lib_path (nargs) %{{{
477477

478478
variable names = glob ("${dir}/*.${shared_lib_ext}"$);
479479
if (length(names) == 1)
480-
return path_concat (dir, names[0]);
480+
return names[0];
481481

482482
return NULL;
483483
}
@@ -578,7 +578,7 @@ private define load_lmodels_from_dir (dir, file) %{{{
578578
define load_xspec_local_models () %{{{
579579
{
580580
variable dirs, env;
581-
581+
582582
switch (_NARGS)
583583
{
584584
case 0:

src/isis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ extern "C" {
3636
#include <slang.h>
3737

3838
#define ISIS_VERSION 10602
39-
#define ISIS_VERSION_STRING "1.6.2-32.Mh1"
39+
#define ISIS_VERSION_STRING "1.6.2-32.td1"
4040
#define ISIS_VERSION_PREFIX 1.6.2
4141

4242
#define ISIS_API_VERSION 6

0 commit comments

Comments
 (0)