MCPcopy Create free account
hub / github.com/pydata/numexpr / dump

Method dump

numexpr3/ne3compiler.py:1494–1504  ·  view source on GitHub ↗

Dump the wisdom into a file on disk (or otherwise file-like object). wisdomFile should support the :code:`io.IOBase` or similar interface.

(self, wisdomFile: Optional[str]=None)

Source from the content-addressed store, hash-verified

1492 self = pickle.load(fh)
1493
1494 def dump(self, wisdomFile: Optional[str]=None) -> None:
1495 '''
1496 Dump the wisdom into a file on disk (or otherwise file-like object).
1497
1498 wisdomFile should support the :code:`io.IOBase` or similar interface.
1499 '''
1500 if wisdomFile == None:
1501 wisdomFile = self.wisdomFile
1502
1503 with open(wisdomFile, 'wb') as fh:
1504 pickle.dump(self, fh)
1505
1506wisdom = _WisdomBankSingleton()

Callers 1

generateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected