First time here? Check out the FAQ!

Ask Your Question
0

Is there a way to save the object returned by Rbf?

asked 14 years ago

Shashank gravatar image

I am trying to use Rbf from scipy to interpolate scattered data. Is there a way to save the returned object (the function returned by Rbf command) rather than constructing the Rbf everytime I run the program. I saw this comment in rbf.py

attach anything left in kwargs to self for use by any user-callable function or to save on the object returned.

But I am not sure how to use it or whether it is actually what I am trying to do.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 14 years ago

Shashank gravatar image

Sorry about not googling enough before posting the question. There is something called a "pickle" to do this.

http://docs.python.org/library/pickle.html

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 14 years ago

Seen: 337 times

Last updated: May 05 '11