I thought we already had done this, but it might have gotten mixed up in some update. We should try to update the docstrings in analyze.py. In particular the get_derivatives method needs to be updated to include a mention of derivkit as an option.
As a stretch goal for this issue we should review the rest of the docstrings and see where updates or streamlining is needed and remove spurious / stale comments.
Finally, as suggested by @nikosarcevic, we should add a note (directly on the README or adding a linked document to the README) about the limitations of using the internal 5pt_stencil routine mentioning:
- The code is intended to be used internally in
augur, and is not intended as a general numerical differentiation routine, for that we refer the user to general numerical differentiation packages such as numdifftools and derivkit.
- The default (constant / scalar) step-size value was chosen arbitrarily (it works for a certain set of 3x2pt parameter + data vector configurations, but that's irrelevant here). The user needs to change its value accordingly for their own experiments, and verify the accuracy of the derivatives themselves. I guess something that use at your own risk -- we expect expert usage and the user needs to verify their results and cannot just trust blindly that this will work for all circumstances and set ups.
I thought we already had done this, but it might have gotten mixed up in some update. We should try to update the docstrings in
analyze.py. In particular theget_derivativesmethod needs to be updated to include a mention ofderivkitas an option.As a stretch goal for this issue we should review the rest of the docstrings and see where updates or streamlining is needed and remove spurious / stale comments.
Finally, as suggested by @nikosarcevic, we should add a note (directly on the
READMEor adding a linked document to theREADME) about the limitations of using the internal5pt_stencilroutine mentioning:augur, and is not intended as a general numerical differentiation routine, for that we refer the user to general numerical differentiation packages such asnumdifftoolsandderivkit.