Skip to content

Commit

Permalink
Merge pull request #383 from jdebacker/fix_mkdir
Browse files Browse the repository at this point in the history
Fix example script error
  • Loading branch information
jdebacker authored May 11, 2018
2 parents 845bf0d + 5480bc5 commit 91c0738
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ to release. Stay tuned for an upcoming release!
* Install the [Anaconda distribution](https://www.anaconda.com/distribution/) of Python
* Clone this repository to a directory on your computer
* From the terminal (or Conda command prompt), navigate to the directory to which you cloned this repository and run `conda env create -f environment.yml`
* Then, `source activate ospcdyn`
* Then, `source activate ospcdyn` (on Mac/Linux) or `conda activate ospcdyn` on Windows.
* Then install by `python setup.py install` (use `python setup.py develop` if you would like to modifty the code base and run the updated model)
* Navigate to `./run_examples`
* Run the model with an example reform from terminal/command prompt by typing `python run_ogusa_example.py`
Expand Down
4 changes: 4 additions & 0 deletions run_examples/run_ogusa_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ def run_micro_macro(user_params):
'baseline_spending': False, 'data': 'cps',
'client': client, 'num_workers': num_workers}

start_time = time.time()
runner(**kwargs)
print('run time = ', time.time()-start_time)

# return ans - the percentage changes in macro aggregates and prices
# due to policy changes from the baseline to the reform
ans = postprocess.create_diff(baseline_dir=BASELINE_DIR,
Expand Down

0 comments on commit 91c0738

Please sign in to comment.