From 193b29b30516261122c46cbd0aa25668358e173b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20P=2E=20Ren=C3=A9=20de=20Cotret?= Date: Mon, 27 Feb 2017 20:16:13 -0500 Subject: [PATCH] FIX: negative time-points only datasets would not be displayed Former-commit-id: b32b479d381fca1089baaf3a7442a8eb40dc5cb1 [formerly b32b479d381fca1089baaf3a7442a8eb40dc5cb1 [formerly 32f7269593cdae77f709df1bac439eddbd7d56e1]] Former-commit-id: 9d07304ec9b1b7adf2a4cb92d3a4f3ea3a529bfc Former-commit-id: ac6cad85e7b404008d70b7e268c1d479bc10dd8f --- iris/gui/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iris/gui/controller.py b/iris/gui/controller.py index b38637eb..39e03ad3 100644 --- a/iris/gui/controller.py +++ b/iris/gui/controller.py @@ -150,7 +150,7 @@ def compute_baseline(self, params): def load_raw_dataset(self, path): self.raw_dataset = RawDataset(path) self.raw_dataset_loaded_signal.emit(True) - self.display_raw_data(timedelay = min(map(abs, self.raw_dataset.time_points)), + self.display_raw_data(timedelay = min(self.raw_dataset.time_points), scan = min(self.raw_dataset.nscans)) @error_aware('Processed dataset could not be loaded.')