项目作者: andre-barbe

项目描述 :
Automate running GTAP
高级语言: Python
项目地址: git://github.com/andre-barbe/Auto-GTAP.git
创建时间: 2018-03-09T21:35:56Z
项目社区:https://github.com/andre-barbe/Auto-GTAP

开源协议:MIT License

下载


Auto-GTAP

Auto-GTAP combines all steps of running a GTAP-based research project into a single automated framework.

Why use Auto-GTAP?

In principle, a GTAP simulation can be run with a single command. However, GTAP-based research projects usually contain more than just the model simulation. A project may also need to build a database, change aggregations, modify parameters, calculate shocks, or run multiple simulations, all the while shuffle around various files at each stage. While a single model simulation is already automated, these other task are not.

Auto-GTAP combines all these tasks into a single automated framework. By reducing the amount of manual orchestration required to run a GTAP project, Auto-GTAP will increase the speed and replicability of your analysis.

Getting started

Prerequisites

Mandatory

  • Python 3.6 (other versions untested)
  • Pyyaml 4.2b4 (other versions untested)

Additional requirements for GTAP-E Validation advanced example

Additional requirements for Productivity Increase advanced example

Clone the repository

  1. cd your_project_directory
  2. git clone https://github.com/andre-barbe/Auto-GTAP.git

Create a Python virtual environment

  1. python -m venv venv

Activate the virtual environment

  1. ./venv/Scripts/activate

Running Auto-GTAP

  • Script path: Main.py
  • Source root: src
  • Working directory (depends on example): examples\productivity-increase-simple

(Optional) For productivity increase advanced example

This example includes a step to aggregate GTAP data, and thus requires the disaggregated data file from GTAP. This data file is not freely available but must be purchased from GTAP. Thus we have not included it with Auto-GTAP: users must manually acquire it and place it into Auto-GTAP.

The specific data used in this example was the PR2_v10_2014_Sep2017 release of GTAPg2. It was located in

  1. and should be placed in
  2. ````Auto-GTAP\examples\productivity_increase\InputFiles\GTPAg2\GTAP10p2\GTAP\2014

Example projects

Documentation