-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extend IamDataFrame to use extra data columns and sub-annual time (#167)
* extend unit tests for input as `datetime` * refactor `timeseries()` to use `time_col` * enable filtering by extra columns in `data` * add check that no column conflicts exist between `meta` and `data` * raise error when using `append()` with incompatible time formats * docstring clean-up * pep8 * test additional time formats * clean up returned json object returned from IIASA db * add kwarg `iamc_index` to `timeseries()` for clean or full index * fix bug in setting `extra_cols` from long format * when retrieving data from iiasadb, check that versions are unique * appeasing stickler * appeasing stickler more * change default behaviour of `timeseries()` to include all extra cols * Add extra tests and time filter (#9) * Add test of extra col init behaviour * Add failing tests of time filtering * Setup time filtering tests * Pass test filter year * Redo tests of time filtering and include super messy first steps towards implementation * Fill out tests and reset core * Finish implementation of time filtering, cleaning up needed * Refactor core so apply filters can use self.time_col * remove test for `meta` with extra columns (behaviour not supported) * fix bug in error message match for Python 2 as suggested by @znicholls * update docstring for `filter()` and fix warning message formatting * try again to fix bug in error message mattch for Python 2 * enable initializing with wide format and datetime columns * extend initialization of IamDataFrame for extra columns, distinguish `year` and `time` * refactor from static to `self._LONG_IDX` * refactor `format_data()` to accept datetime as columns * fix rebase error * add to release notes * add `iamc_index` as kwarg to `to_csv()` and `to_excel()` * appeasing stickler * refactor `_df` to `_data` in `__init__()` * move tests related to aggregation checks to own test script * make check-aggregates work including unit * appease stickler * move tests related to aggregation checks to own test script * make check-aggregates work including unit * Fix up README instructions * Appease stickler * Appease stickler more * Try putting matplotlib import stuff first * make stickler ignore E402
- Loading branch information
1 parent
df399d6
commit 627a2b4
Showing
9 changed files
with
602 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.