From b51ca907f1240726cd071f8629b372a541d077bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Picca=20Fr=C3=A9d=C3=A9ric-Emmanuel?= Date: Wed, 12 Oct 2016 16:38:53 +0200 Subject: fix for real the new nexusdir --- binoculars/backends/sixs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binoculars/backends/sixs.py b/binoculars/backends/sixs.py index ebe448f..5e1bf32 100644 --- a/binoculars/backends/sixs.py +++ b/binoculars/backends/sixs.py @@ -404,7 +404,7 @@ 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) in f] + files = [f for f in os.listdir(dirname) if str(scanno).zfill(5) in f] if files is not []: filename = os.path.join(dirname, files[0]) else: -- cgit v1.2.3