It is relatively common to want to compute some derived quantity from the columns in an input file rather than use them directly. For instance, when computing rho stats, the input catalog might have e_data and e_model, so you would want to compute the difference of these as "q".
Currently the standard practice is to just read the file directly, calculate the arrays you actually want and make a Catalog with the calculated arrays. @theoshutt suggested (#151) that we let TreeCorr do that work by specifying an eval calculation to be run on the columns that are in the file.
This PR implements this as follows for the case of a rho1 calculation:
It is relatively common to want to compute some derived quantity from the columns in an input file rather than use them directly. For instance, when computing rho stats, the input catalog might have e_data and e_model, so you would want to compute the difference of these as "q".
Currently the standard practice is to just read the file directly, calculate the arrays you actually want and make a Catalog with the calculated arrays. @theoshutt suggested (#151) that we let TreeCorr do that work by specifying an eval calculation to be run on the columns that are in the file.
This PR implements this as follows for the case of a rho1 calculation: