File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -108,16 +108,6 @@ def assign_window_label(labels, majority=0.66):
108
108
return None
109
109
110
110
111
- from contextlib import contextmanager
112
- @contextmanager
113
- def NotTemporaryDirectory ():
114
-
115
- path = 'temp-test'
116
- if not os .path .exists (path ):
117
- os .makedirs (path )
118
- yield path
119
-
120
-
121
111
def timebased_features (windows : list [pandas .DataFrame ],
122
112
columns : list [str ],
123
113
micropython_bin = 'micropython' ) -> pandas .DataFrame :
@@ -136,7 +126,7 @@ def timebased_features(windows : list[pandas.DataFrame],
136
126
# lower=numpy.quantile(data, 0.01),
137
127
#)
138
128
139
- with NotTemporaryDirectory () as tempdir :
129
+ with tempfile . TemporaryDirectory () as tempdir :
140
130
data_path = os .path .join (tempdir , 'data.npy' )
141
131
features_path = os .path .join (tempdir , 'features.npy' )
142
132
You can’t perform that action at this time.
0 commit comments