summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHunter Rew <hbrew@email.wm.edu>2014-04-24 09:22:33 -0400
committerHunter Rew <hbrew@email.wm.edu>2014-04-24 09:22:33 -0400
commit15405c9070cf2f75b93a2327b0acb2b1af031ac9 (patch)
tree8759720e864454e28548cb40d8268dd3a27c1275
parent80b579089e6ce787486772f34e80f369fe9c6888 (diff)
downloadeit_filter_simulations-15405c9070cf2f75b93a2327b0acb2b1af031ac9.tar.gz
eit_filter_simulations-15405c9070cf2f75b93a2327b0acb2b1af031ac9.zip
Fixed the data type for n
-rw-r--r--simulate.m2
-rw-r--r--source/simulate.py4
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')