This is a quick fix to the check on the photutils module version, which can be a string that doesn't convert to a float. String tests with >, <, etc. work for well-formed version numbers, for example:
>>> import photutils
>>> msg = 'Version {0} is > 0.5 .... {1}'
>>> print(msg.format(photutils.__version__, photutils.__version__ > '0.5'))
Version 0.7.dev3423 is > 0.5 .... True
This is a quick fix to the check on the
photutils
module version, which can be astring
that doesn't convert to afloat
. String tests with>
,<
, etc. work for well-formed version numbers, for example: