A recursive model of electricity production in Vietnam
(c) Dr. Minh Ha-Duong, CNRS, 2017 < minh.haduong@gmail.com >
All files licensed under the Creative Commons Attribution-ShareAlike 4.0 International see file LICENSE.TXT unless noted otherwise
git clone https://github.com/MinhHaDuong/VN-CSS-Scenario.git
cd VN-CCS-Scenario/
make
The code is in Python 3.5 it imports hashlib, sys, copy, functools from the standard library it imports pandas, mathplotlib, numpy from the scientific python core packages it uses statsmodels from the PyPI
To install dependencies: sudo -H pip3 install -r requirements.txt
The builds uses a standard Makefile
with
-
make
run the model, all sensitivity analysis to build all tables and figures. -
make test
perform regression tests, docstests, and scripted tests (if any) -
make reg_tests_reset
copy results tables from the current dir into tables.tocompare/ -
make clean
delete results files -
make cleaner
delete results files and Python cache files
-
Files in
data/
are raw data collected (PDF, XLS, web pages) from the web. -
Intermediate CSV or TXT (when used), are also in
data/
-
Files starting with data_X mostly make available the data found in
data/X/
-
Files starting with an Upper case define the class with that name
-
Files starting with plan_ instanciate a
PowerPlan
object -
Files starting with param_ instanciate a
Parameter
object -
Files in
tables.tocompare
are used for regression testing. Usemake reg_tests_reset
to populate/update it.