Updated global_sig to calculate chi-squared. Added module with linear regression.
Added calfiles for two basic arrays, one that inherits from phs and one that inherits from amp.
In global_sig.py I moved file reading to its own file, added a function to fit the global signal with a line through the origin in place of a linear fit. In the test_regress_vary_* functions I added a filter to only plot points with good reduced chi-squared fits.

I put the calfiles, figures, and coeff data in their own folders.

In useful_functions.py I fixed the reduced chi-squared calculation so that it divided by the correct degrees of freedom and I added functions to fit lines through the origin, power laws, and legendre functions.
In global_sig.py I changed the chi restriction to a boolean flag and I changed the functions to accept baselines and coefficients instead of calfiles
Did more fitting
Merge branch 'master' of https://github.com/dannyjacobs/capo
Merge branch 'master' of https://github.com/mpresley42/capo

Getting Morgan's updates.
Pull practice
Script to transfer to USA.
Modified scheduler and task_server in ddr_compress to have a transfer step at end from pot to usa.
Merge branch 'master' of github.com:dannyjacobs/capo
Merge branch 'master' of shredder:/usr/global/paper/capo
Added new linear fitting method and fixed gsm loading and power spectrum fitting
Added comments on rest of global_sig.py functions. Changed locations of antennae in basic_amp_array.py so that they have smaller baselines. This decreased the error in the global signal calculation by an order of magnitude, but we still need to eliminate a couple more orders.
Added error computation to the linear fit
updated code
Merge branch 'master' of https://github.com/carinacheng/capo
Moved some things out of inner loop in ctc/code/single_baseline.py
Added functions to useful_functions.py that would calculate the standard deviation error of the fits. Added a function that would fit a general polynomial using the least squares method. Changed functions in global_sig.py to utilize new fitting abilities.
Added a new file for the functions that generalize the coefficient calculation to any spherical harmonic and do stuff with the full Q matrix. It's not yet reproducing the results for l,m=0,0, so it's still in progress.