Skip to content

Commit

Permalink
Modified csort due to range changing from list to type for blue-yonder#8
Browse files Browse the repository at this point in the history
  • Loading branch information
earthgecko committed Nov 2, 2016
1 parent 42f0a8a commit 5d03264
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ def create_test_data_sample_with_target(self):
:return: target y which is the mean of each sample's timeseries
"""
cid = np.repeat(range(50), 3)
csort = range(3) * 50
# The csort was changed for Python 3 support
# https://github.com/blue-yonder/tsfresh/issues/8
# range has changed type in py3 from list to class
# csort = range(3) * 50
csort = list(range(3)) * 50
cval = [1, 2, 3] * 30 + [4, 5, 6] * 20
df = pd.DataFrame({'id': cid, 'kind': 'a', 'sort': csort, 'val': cval})
y = pd.Series([2] * 30 + [5] * 20)
Expand Down

0 comments on commit 5d03264

Please sign in to comment.