McStasMcXtrace / iFit

a simple library to analyze data (with McCode and Phonons/DFT hooks). :warning: this project has been moved to https://gitlab.com/soleil-data-treatment/soleil-software-projects/remote-desktop
http://ifit.mccode.org
Other
5 stars 5 forks source link

iFunc: allow cache for value ? #186

Open farhi opened 5 years ago

farhi commented 5 years ago

A cache holding the last model evaluation may be added in the class definition, and feval related calls. It would be returned immediately when called with:

farhi commented 5 years ago

We may introduce a private property to hold a cache for the object. This can be used further to store temporary data, hidden. It can be done when converting iFunc to handle based class #184, similarly as done now for idata (with temporary estruct object to be renamed as idata when ready).