Skip to content

update docstrings on analyze.py and add some disclaimer about the usage of 5pt_stencil #129

@fjaviersanchez

Description

@fjaviersanchez

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:

  1. 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.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions