Skip to content
Snippets Groups Projects
Commit b6cdcb78 authored by Alex Wiens's avatar Alex Wiens
Browse files

Prule.builtin: Remove unnecessary prints

parent 7fb308ec
No related branches found
No related tags found
No related merge requests found
...@@ -186,7 +186,6 @@ class Data: ...@@ -186,7 +186,6 @@ class Data:
col_mean = np.mean(sel, axis=1, keepdims=True) col_mean = np.mean(sel, axis=1, keepdims=True)
new_col.append(col_mean) new_col.append(col_mean)
new_array = np.column_stack(new_col) new_array = np.column_stack(new_col)
print(new_array.shape)
return Data(new_array, copy.deepcopy(self.time), copy.deepcopy(self.metadata)) return Data(new_array, copy.deepcopy(self.time), copy.deepcopy(self.metadata))
# mean_int # mean_int
# This "mean" function considers irregular sample times by # This "mean" function considers irregular sample times by
...@@ -257,7 +256,6 @@ class Data: ...@@ -257,7 +256,6 @@ class Data:
col_sum = np.sum(sel, axis=1, keepdims=True) col_sum = np.sum(sel, axis=1, keepdims=True)
new_col.append(col_sum) new_col.append(col_sum)
new_array = np.column_stack(new_col) new_array = np.column_stack(new_col)
print(new_array.shape)
return Data(new_array, copy.deepcopy(self.time), copy.deepcopy(self.metadata)) return Data(new_array, copy.deepcopy(self.time), copy.deepcopy(self.metadata))
def any(self, scope='time'): def any(self, scope='time'):
if scope == 'all': if scope == 'all':
...@@ -363,7 +361,6 @@ class Data: ...@@ -363,7 +361,6 @@ class Data:
pf = np.polynomial.polynomial.Polynomial.fit(x, self.array[:,i].magnitude, deg=1) pf = np.polynomial.polynomial.Polynomial.fit(x, self.array[:,i].magnitude, deg=1)
pf_conv = pf.convert() pf_conv = pf.convert()
pfs.append(pf_conv) pfs.append(pf_conv)
print(pf)
return pfs return pfs
def to_array(self): def to_array(self):
time = self.time time = self.time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment