Skip to content

Commit 080c73f

Browse files
committed
format header of motif.py and test_motif.py
1 parent 69e82e1 commit 080c73f

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

tests/feature_extraction/test_motifs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
# This file as well as the whole tsfresh package are licenced under the MIT licence (see the LICENCE.txt)
33
# This module Ezekiel Kruglick 2017
44

5-
from __future__ import absolute_import, division
6-
from __future__ import print_function
5+
from __future__ import absolute_import, division, print_function
6+
77
import unittest
8+
import six
89
import numpy as np
910
from tsfresh.feature_extraction import motifs
10-
import six
1111

1212
sample_array1 = np.array([9., -63., 5., 157., -21., -20., 27., -72., -123.,
1313
94., 154., -57., -48., 18., -5., 14., 5., -7.,

tsfresh/feature_extraction/motifs.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1-
import numpy as np
2-
from six.moves import range
1+
# -*- coding: utf-8 -*-
2+
# This file as well as the whole tsfresh package are licenced under the MIT licence (see the LICENCE.txt)
3+
# Maximilian Christ (maximilianchrist.com), Blue Yonder Gmbh, 2016
4+
35
"""
4-
Functions and support for finding, grooming, and filtering time series data motifs
6+
Functions and support for finding, grooming, and filtering time series motifs.
7+
A motif is a characteristic subsequence of the inspected time series.
8+
59
by Ezekiel Kruglick
610
"""
711

12+
import numpy as np
13+
from six.moves import range
14+
15+
816

917
def distance(x, y):
1018
"""

0 commit comments

Comments
 (0)