Skip to content

Releases: JGCRI/gcamreader

v1.4.0: gcamreader

31 Aug 21:30
1b1895d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.3.1...v1.4.0

v1.3.1: gcamreader

23 Aug 17:49
Compare
Choose a tag to compare

Bug fixes from v1.3.0 to include:

v1.3.0: gcamreader

23 Aug 17:27
55a71c6
Compare
Choose a tag to compare

🥳 A new CLI was introduced by @publicmatt enabling the following:

python3 -m gcamreader -d /path/to/database -q /path/to/query.xml -o /path/to/output

This will run query.xml against database and output a .csv file for each query in the batch to output/*.csv

By default, the cli works with a local database, but a similar command for remote is also available:

python3 -m gcamreader remote --username admin --hostname localhost -d database_basex_[...] -q /path/to/query.xml -o /path/to/output

By default, the password flag can be left off, in which case, the user will be prompted for one. Additionally, the port number defaults to 8984, which is similar to the source.

Additionally, help docs can be accessed with:

> python3 -m gcamreader --help

Usage: python -m gcamreader [OPTIONS] COMMAND [ARGS]...

  Run queries against a gcam scenario database.

      Saves outputs as .csv

  Documentation: https://github.com/JGCRI/gcamreader/

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  local*  query gcam scenario databases
  remote  query a remote server containing gcam scenario databases

And version number can be viewed as well:

 > python3 -m gcamreader --version
python -m gcamreader, version 1.2.6

This commit adds the following dependencies for the cli functionality:

  • click
  • click-default-group-wheel

v1.2.6: gcamreader

15 Oct 13:45
93228af
Compare
Choose a tag to compare

Bug fix affecting any results in which "vintaged" technologies are queried when there are collapsed technologies in the structure. This causes a need to aggregate to remove duplicity.

Corresponding issue: #26
Corresponding PR: #27

v1.2.5: gcamreader

11 Aug 18:25
Compare
Choose a tag to compare

Bug fix for old path name error to the model interface jar.

v1.2.4: gcamreader

10 Aug 18:38
eea1c82
Compare
Choose a tag to compare

Changes:

  • name change to gcamreader
  • now installable from PyPi via pip install gcamreader
  • changed Travis CI to GitHub actions
  • updated README with actions build, codecov, zenodo

v1.2.0: gcam_reader

19 May 16:47
658d8db
Compare
Choose a tag to compare

v1.2.0: gcam_reader

  • Update BaseX from 9.0.1 to 9.5.0 to match what GCAM v5.3 is currently using
  • Update version to 1.2.0

gcam_reader v0.1.0

29 May 21:17
7618069
Compare
Choose a tag to compare

This is an initial beta release of gcam_reader.

gcam_reader is a Python package for reading GCAM output databases that is used by other GCAM ecosystem models to extract relevant input data for use sector-specific applications.