Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 2.4 KB

CHANGELOG.md

File metadata and controls

48 lines (35 loc) · 2.4 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

0.3.6 [2017-12-07]

Changed

  • Bugfix in the urllib (emission/planner.py). When using the module from a QGIS plugin on Windows this (strangly?) failed. "urllib" complained about the transportation scheme 'https' being unknown. Refactored the code to construct a 'urllib.request.Request' instance and using that as argument to 'urllib.request.urlopen' seems to work perfectly on linux, mac and windows.

0.3.5 [2017-12-06]

Changed

- Fixed some wrong entries in the database that caused a QGis plugin to crash (RoadEmissionCalculator)

  • Bugfix in the calculator. For some CH4 emission calculations the end result will result in a 'ZeroDivisionError'. In that case a 0.0 value was supposed to be returned by the 'calculate' method.

0.3.4 [2017-11-30]

Added

- Improved the readme file + cleanup

0.3.3 [2017-11-29]

Added

- Included the sqlite db file in setup.py, so it will be part of python wheel package

0.3.2 [2017-11-29]

Removed

- Removed annoying 'print' from planner.py

0.3.1 [2017-11-29]

Added

  • Added more required dependencies in the setup.py file. A fresh installation through pip will also install the required dependencies.

0.3 [2017-11-27]

Added

  • Major rewrite of the emission data included in this module. Went away from the JSON file and instead rewrote to use SQLite3 + sqlalchemy. Defined models for each table structure as well as util methods to properly lookup the correct emission for the vehicle choosen.

Changed

  • Changed our "sqlalchemy" to use a "scoped_session" to work in a threaded environment if neccesary.
  • Fixed minor bugs here and there.
  • Efforts to ensure a Python2 compatibility, while still primarily focus on Python 3.
  • Better error handling for issues with the remote webservice (a36c9c42ee33c967a4bd609cb78051f0486913d4)

Removed

  • dependency for the EmissionJSONReader (will be removed at a later stage)

0.2.3

A working module using a compressed JSON structure as its reference (database). The module will retrieve a list of positions (x,y,z) from the NPRA vegkart database and calculate the emission for the choosen vehicle based on that. All emissions are stored in the compressed JSON file.