diff options
-rw-r--r-- | binoculars/backends/sixs.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/binoculars/backends/sixs.py b/binoculars/backends/sixs.py index 38b495f..6350129 100644 --- a/binoculars/backends/sixs.py +++ b/binoculars/backends/sixs.py @@ -433,7 +433,10 @@ class SIXS(backend.InputBase): filename = None if self.config.nexusdir: dirname = self.config.nexusdir - files = [f for f in os.listdir(dirname) if str(scanno).zfill(5) in f] + files = [f for f in os.listdir(dirname) + if ((str(scanno).zfill(5) in f) + and (os.path.splitext(f)[1] in ['.hdf5', '.nxs'])) + ] if files is not []: filename = os.path.join(dirname, files[0]) else: |