0696cd76cdddff6e83a94915ee98858a24dfeaee,cellprofiler/modules/createbatchfiles.py,CreateBatchFiles,enter_batch_mode,#CreateBatchFiles#Any#Any#,264
Before Change
state = zlib.decompress(self.batch_state.tostring())
image_set_list.load_state(state)
cpprefs.set_default_output_directory(self.custom_output_directory.value)
cpprefs.set_default_image_directory(self.default_image_directory.value)
def turn_off_batch_mode(self):
"""Remove any indications that we are in batch mode
After Change
assert isinstance(pipeline, cpp.Pipeline)
state = zlib.decompress(self.batch_state.tostring())
image_set_list.load_state(state)
if self.distributed_mode:
import tempfile
try:
cpprefs.set_default_output_directory(tempfile.gettempdir())
cpprefs.set_default_image_directory(tempfile.gettempdir())
except:
pass
else:
cpprefs.set_default_output_directory(self.custom_output_directory.value)
cpprefs.set_default_image_directory(self.default_image_directory.value)
def turn_off_batch_mode(self):
"""Remove any indications that we are in batch mode
This call restores the module to an editable state.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: CellProfiler/CellProfiler
Commit Name: 0696cd76cdddff6e83a94915ee98858a24dfeaee
Time: 2011-05-30
Author: thouis@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/modules/createbatchfiles.py
Class Name: CreateBatchFiles
Method Name: enter_batch_mode
Project Name: CellProfiler/CellProfiler
Commit Name: b95fc8377cebfcea77116cf939a6168176b09763
Time: 2013-08-27
Author: leek@broadinstitute.org
File Name: cellprofiler/modules/createbatchfiles.py
Class Name: CreateBatchFiles
Method Name: enter_batch_mode
Project Name: CellProfiler/CellProfiler
Commit Name: 1229a9e514ce51720bfd669e913f5a0f761a2490
Time: 2013-08-30
Author: leek@broadinstitute.org
File Name: cellprofiler/modules/createbatchfiles.py
Class Name: CreateBatchFiles
Method Name: enter_batch_mode