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/
makeThe code is in Python 3.6 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
-
makerun the model, all sensitivity analysis to build all tables and figures. -
make testperform regression tests, docstests, and scripted tests (if any) -
make reg_tests_resetcopy results tables from the current dir into tables.tocompare/ -
make cleandelete results files -
make cleanerdelete results files and Python cache files
Under Linux, spyder3 reads editor configuration from ~/.config/pep8
max-line-length = 100
ignore=W503,E402
-
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: Plan, Parameter, Run
-
Files starting with plan_ instanciate a
Planobject -
Files starting with parameter_ instanciate a
Parameterobject -
Files starting with run_ instanciate one or more
Runobject-s -
Files starting with test_ are used by the pytest framework.
-
Files in
tables.tocompareare used for regression testing. Usemake reg_tests_resetto populate/update it.