Account for reading version numbers from OPAL-X .stat files and fix the conditional statement.
Currently, load_dataset()
fails for .stat output files from OPAL-X, since the version regex does not account for the X in the version string:
- OPAL:
OPAL 2024.2 git rev. #...
- OPAL-X:
OPALX 2024.1.00 git rev. #...
Also if 'OPAL' and 'git rev.' in line:
is equivalent to just if 'git rev.' in line:
, since bool("OPAL") == True
. I changed it to if ('OPAL' in line) and ('git rev.' in line):
.