From 15405c9070cf2f75b93a2327b0acb2b1af031ac9 Mon Sep 17 00:00:00 2001 From: Hunter Rew Date: Thu, 24 Apr 2014 09:22:33 -0400 Subject: Fixed the data type for n --- simulate.m | 2 +- source/simulate.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/simulate.m b/simulate.m index d459192..aeef180 100644 --- a/simulate.m +++ b/simulate.m @@ -5,7 +5,7 @@ function simulate() target = [source_dir, 'simulate.py']; tic(); - runCommand(sprintf('python %s %s %0.0f', target, source_dir, n)); + runCommand(sprintf('python %s %s %d', target, source_dir, n)); toc(); end diff --git a/source/simulate.py b/source/simulate.py index 5a316f4..d0ff380 100644 --- a/source/simulate.py +++ b/source/simulate.py @@ -119,7 +119,7 @@ def main(): source_dir = './' global data_dir - data_dir = root_dir + 'data/test/' + data_dir = root_dir + 'data/' global config_dir config_dir = source_dir + 'config/' @@ -127,7 +127,7 @@ def main(): global time_multiplier time_multiplier = 100 - n = sys.argv[2] # Number of processes to run + n = int(sys.argv[2]) # Number of processes to run decays_ab = readArgs('decay_ab') decays_bc = readArgs('decay_bc') -- cgit v1.2.3