From fd9f82847df6185dc1f06a9b2b24f8ee81d89f51 Mon Sep 17 00:00:00 2001 From: Matt Cieslak Date: Wed, 13 Jun 2018 18:45:50 -0400 Subject: [PATCH] batch karcher mode currently works --- meap/batch_warp_dzdt.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/meap/batch_warp_dzdt.py b/meap/batch_warp_dzdt.py index cea7bb4..d3de677 100644 --- a/meap/batch_warp_dzdt.py +++ b/meap/batch_warp_dzdt.py @@ -142,8 +142,8 @@ def _num_cores_changed(self): if self.num_cores < 1 or self.num_cores > num_cores: self.num_cores = multiprocessing.cpu_count() - - def _input_directory_changed(self): + + def _configure_io(self): potential_files = glob(self.input_directory +"/*mea.mat") potential_files = [f for f in potential_files if not \ f.endswith("_aligned.mea.mat") ] @@ -158,7 +158,15 @@ def make_output_file(input_file): FileToProcess(input_file = f, output_file=make_output_file(f)) \ for f in potential_files ] + + def _output_directory_changed(self): + self._configure_io() + + def _file_suffix_changed(self): + self._configure_io() + def _input_directory_changed(self): + self._configure_io() def _b_run_fired(self): files_to_run = [f for f in self.files if not f.finished]