Skip to content
Snippets Groups Projects
Commit 27fbe6a7 authored by Peterson, Peter's avatar Peterson, Peter
Browse files

Filter out empty cache directory items

parent 593f7216
No related branches found
No related tags found
No related merge requests found
...@@ -322,7 +322,8 @@ class SNSPowderReduction(DistributedDataProcessorAlgorithm): ...@@ -322,7 +322,8 @@ class SNSPowderReduction(DistributedDataProcessorAlgorithm):
self._offsetFactor = self.getProperty("OffsetData").value self._offsetFactor = self.getProperty("OffsetData").value
self._outDir = self.getProperty("OutputDirectory").value self._outDir = self.getProperty("OutputDirectory").value
# Caching options # Caching options
self._cache_dirs = [os.path.abspath(me.strip()) for me in self.getProperty("CacheDir").value.split(',')] self._cache_dirs = [os.path.abspath(me.strip()) for me in self.getProperty("CacheDir").value.split(',')
if me.strip()] # filter out empty elements
self._cache_dir = self._cache_dirs[0] if self._cache_dirs else "" self._cache_dir = self._cache_dirs[0] if self._cache_dirs else ""
self._clean_cache = self.getProperty("CleanCache").value self._clean_cache = self.getProperty("CleanCache").value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment