Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix for
timeseries2velocity.py --bootstrap --save-res
(#733)
When running `timeseries2velocity.py` with bootstrapping, we use the function `time_func.estimate_time_func` to repeatedly fit the time series data. This function returns the design matrix, `G`, however when bootstrapping we don't assign the design matrix to a variable, meaning that if we try to save the residual file we get the error `UnboundLocalError: local variable 'G' referenced before assignment` at line 702. If we want to output the residual when bootstrapping, we need to get the full design matrix. I've added a line of code to do this.
- Loading branch information