Skip to content

Commit

Permalink
infer dimensions for ACF.tau
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhammonds committed Apr 7, 2024
1 parent d613aad commit a1672f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion timescales/fit/acf.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,11 @@ def fit(self, lags=None, corrs=None, gen_fits=True, gen_components=False, with_c

if gen_fits and not np.isnan(self.params).any():
self.gen_corrs_fit(gen_components)
self.tau = self.params[:, 0]

if self.params.ndim == 1:
self.tau =self.params[0]
else:
self.tau = self.params[:, 0]
self.knee_freq = convert_knee(self.tau)
else:
self.tau = np.nan
Expand Down

0 comments on commit a1672f1

Please sign in to comment.