[mlpack-svn] r15635 - in mlpack/conf/jenkins-conf/benchmark: benchmark util
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Aug 19 09:17:58 EDT 2013
Author: marcus
Date: Mon Aug 19 09:17:58 2013
New Revision: 15635
Log:
Create folder structure for the scripts.
Modified:
mlpack/conf/jenkins-conf/benchmark/benchmark/make_reports.py
mlpack/conf/jenkins-conf/benchmark/benchmark/memory_benchmark.py
mlpack/conf/jenkins-conf/benchmark/benchmark/run_benchmark.py
mlpack/conf/jenkins-conf/benchmark/util/misc.py
Modified: mlpack/conf/jenkins-conf/benchmark/benchmark/make_reports.py
==============================================================================
--- mlpack/conf/jenkins-conf/benchmark/benchmark/make_reports.py (original)
+++ mlpack/conf/jenkins-conf/benchmark/benchmark/make_reports.py Mon Aug 19 09:17:58 2013
@@ -319,6 +319,9 @@
# Reports settings.
database = "reports/benchmark.db"
+ # Create folder structure.
+ CreateDirectoryStructure(["reports/img", "reports/etc"])
+
# Read Config.
config = Parser(configfile, verbose=False)
streamData = config.StreamMerge()
Modified: mlpack/conf/jenkins-conf/benchmark/benchmark/memory_benchmark.py
==============================================================================
--- mlpack/conf/jenkins-conf/benchmark/benchmark/memory_benchmark.py (original)
+++ mlpack/conf/jenkins-conf/benchmark/benchmark/memory_benchmark.py Mon Aug 19 09:17:58 2013
@@ -71,6 +71,9 @@
timeout = 23000
database = "reports/benchmark.db"
+ # Create folder structure.
+ CreateDirectoryStructure(["reports/img", "reports/etc"])
+
# Read Config.
config = Parser(configfile, verbose=False)
streamData = config.StreamMerge()
Modified: mlpack/conf/jenkins-conf/benchmark/benchmark/run_benchmark.py
==============================================================================
--- mlpack/conf/jenkins-conf/benchmark/benchmark/run_benchmark.py (original)
+++ mlpack/conf/jenkins-conf/benchmark/benchmark/run_benchmark.py Mon Aug 19 09:17:58 2013
@@ -106,6 +106,9 @@
timeout = 23000
database = "reports/benchmark.db"
+ # Create folder structure.
+ CreateDirectoryStructure("reports/img", "reports/etc")
+
# Read Config.
config = Parser(configfile, verbose=False)
streamData = config.StreamMerge()
Modified: mlpack/conf/jenkins-conf/benchmark/util/misc.py
==============================================================================
--- mlpack/conf/jenkins-conf/benchmark/util/misc.py (original)
+++ mlpack/conf/jenkins-conf/benchmark/util/misc.py Mon Aug 19 09:17:58 2013
@@ -146,3 +146,13 @@
return dataset
else:
return dataset[0:len(dataset) - len(dataExtension)] + formats[0]
+
+'''
+Create the directory structure for the scripts.
+
+ at param directories - List of directories to create.
+'''
+def CreateDirectoryStructure(directories):
+ for directory in directories:
+ if not os.path.exists(directory):
+ os.makedirs(directory)
More information about the mlpack-svn
mailing list