Skip to content

Commit

Permalink
Merge sherpa#2052 (DougBurke) - XSPEC: do not test bvvnei unless 12.1…
Browse files Browse the repository at this point in the history
…4.0i or later is used

XSPEC: do not test bvvnei unless 12.14.0i or later is used
  • Loading branch information
wmclaugh committed May 28, 2024
2 parents fd5da63 + a406a65 commit 9aef535
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sherpa/astro/xspec/tests/test_xspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ def get_xspec_models():
"12.14.0c", "12.14.0d", "12.14.0e"]:
remove_item(model_names, 'XSbsedov')

# The bvvnei model causes a crash with XSPEC 12.14.0 to 12.14.0h
# (it should be fixed in 12.14.0i and later). The model is not
# present before 12.14.0.
#
if version in ["12.14.0", "12.14.0a", "12.14.0b",
"12.14.0c", "12.14.0d", "12.14.0e",
"12.14.0f", "12.14.0g", "12.14.0h"]:
remove_item(model_names, 'XSbvvnei')

models = [getattr(xs, model_name) for model_name in model_names]
models = list(filter(lambda mod: mod.version_enabled, models))

Expand Down

0 comments on commit 9aef535

Please sign in to comment.