• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IAMconsortium / pyam / 689
100%

Build:
DEFAULT BRANCH: master
Ran 22 Feb 2019 08:34AM UTC
Jobs 4
Files 11
Run time 5min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
689

push

travis-ci

gidden
Initialize an `IamDataFrame` from `pd.DataFrame` with formatting specs (#199)

* initial impl for giving default pyam dataframes

* move again into core

* small fixes

* update concat to try to cast to dataframe

* appease stickler

* fix `TypeError` in `concat()`

* add `concat_with_pipe()` in `utils` with some tests

* cast elements in `concat_with_pipe()` to `str`

* drop `nan` instead of casting to `str`

* insert function `reduce_hierarchy()` and add tests

* raise error if initializing `IamDataFrame`with duplicate rows in `data`

* remove unused legacy function

* add auxiliary function `sort_data()` for consistent ordering of cols

* use `sort_data()` in `append()`

* add `sort_data()` to some unit tests to make them pass

* refactor and add first test for `df_to_pyam()`

* clean-up before stickler gives me an earful...

* clean-up of implementation of `df_to_pyam()`

* update docstrings

* allow input-df with columns `year` and `time`

* defining `defaults` doesn't seem to be necessary

* require `value` arg in `df_to_pyam()` instead of using all columns

* check for conflicts with existing columns, add test

* add option in `df_to_pyam()` to rename cols

* add feature to concat required column from multiple given columns

* make `cast_to_iam` partof `format_data()`

* rename function to `read_file()` because it can only read one file

* pass kwargs for `format_data` through `read_file()`

* pep8 and docstring cleanup

* add to release notes

* minor edits as requested by @gidden in the review

58 of 58 new or added lines in 2 files covered. (100.0%)

1642 of 1943 relevant lines covered (84.51%)

3.38 hits per line

Jobs
ID Job ID Ran Files Coverage
1 689.1 (PYENV=py37) 22 Feb 2019 08:34AM UTC 0
84.3
Travis Job 689.1
2 689.2 (PYENV=py27) 22 Feb 2019 08:37AM UTC 0
84.46
Travis Job 689.2
3 689.3 (PYENV=py37) 22 Feb 2019 08:38AM UTC 0
84.3
Travis Job 689.3
4 689.4 (PYENV=py27) 22 Feb 2019 08:39AM UTC 0
84.46
Travis Job 689.4
Source Files on build 689
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #689
  • fcb81fe0 on github
  • Prev Build on master (#686)
  • Next Build on master (#699)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc