the expression was always true under python2 and
is a syntax error in python3. Replacing it with
if len(list()) > 0 caused test case failures
so this seemed like the best idea.
if not (groups[0] == 'IPAR' or groups[0] == 'Intensities'):
raise ValueError('ipar can only process IPAR directories')
- bustard_pattern = os.path.join(pathname, 'Bustard*')
# contents of the matrix file?
matrix_pathname = os.path.join(pathname, 'Matrix', 's_matrix.txt')
if os.path.exists(matrix_pathname):
# this is IPAR_1.01
i.matrix = open(matrix_pathname, 'r').read()
- elif glob(bustard_pattern) > 0:
+ else:
i.matrix = None
# its still live.