Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

MemoizeFunction does not store input values requested by draw methods #2659

Open
josephmure opened this issue May 15, 2024 · 1 comment
Open
Labels

Comments

@josephmure
Copy link
Collaborator

What happened?

When the draw method of a MemoizeFunction is called, I would expect the grid points on which the function was called in order to produce the graph to be stored, but they are not.

How to reproduce the issue?

import openturns as ot
fun = ot.SymbolicFunction("x", "sin(x)")
mem = ot.MemoizeFunction(fun)
mem.draw(0.0, 10.0, 100)
print(mem.getInputHistory().getSize()) # prints 0

Version

master

Operating System

Linux

Installation media

from source

Additional Context

No response

@josephmure josephmure added the bug label May 15, 2024
@josephmure
Copy link
Collaborator Author

Tagging @vchabri who discovered the issue.

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

No branches or pull requests

1 participant