pythia6: fix input verification issue and example data checksum. (#10563)

* pythia6: fix issue validating integer input.

* pythia6: account for apparent update of example data file.
This commit is contained in:
Chris Green 2019-02-13 23:17:46 -06:00 committed by Patrick Gartung
parent 24d7f0f0af
commit 051c66335f

View File

@ -14,8 +14,7 @@ def _is_integral(x):
"""Accepts only integral values.""" """Accepts only integral values."""
try: try:
return isinstance(int(x), numbers.Integral) and \ return isinstance(int(x), numbers.Integral) and \
(not isinstance(x, bool)) and \ (not isinstance(x, bool))
int(x) == x
except ValueError: except ValueError:
return False return False
@ -100,7 +99,7 @@ class Pythia6(CMakePackage):
'main81.f': 'main81.f':
'b02fecd1cd0f9ba16eaae53e9da0ba602569fdf0e46856cccdfb4c5b7ba33e8b', 'b02fecd1cd0f9ba16eaae53e9da0ba602569fdf0e46856cccdfb4c5b7ba33e8b',
'ttbar.lhe': 'ttbar.lhe':
'fb0d43175cc392b19c2b6633dcf673d0b56229b60bec92df4aa782c7196b149c'} 'db772b69ab4e0300d973b57414523ac8e7fa8535eac49ee52a6b69b1c131983d'}
for example, checksum in iteritems(examples): for example, checksum in iteritems(examples):
resource(name=example, resource(name=example,