Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Reconsider design for custom methods #34

Open
dilpath opened this issue May 24, 2023 · 0 comments
Open

Reconsider design for custom methods #34

dilpath opened this issue May 24, 2023 · 0 comments

Comments

@dilpath
Copy link
Member

dilpath commented May 24, 2023

At the moment, it's expected to be a class, that is then initialized with a function. Instead, we could expect some callable that accepts size/direction/point and returns the derivative.

fiddy/fiddy/derivative.py

Lines 177 to 183 in c015e4a

method = custom_methods.get(
method_id,
methods.get(
method_id,
None,
),
)(function=function)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant