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

Method load

numexpr3/ne3compiler.py:1482–1492  ·  view source on GitHub ↗

Load the wisdom from 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

1480
1481
1482 def load(self, wisdomFile: Optional[str]=None) -> None:
1483 '''
1484 Load the wisdom from a file on disk (or otherwise file-like object).
1485
1486 wisdomFile should support the :code:`io.IOBase` or similar interface.
1487 '''
1488 if wisdomFile == None:
1489 wisdomFile = self.wisdomFile
1490
1491 with open(wisdomFile, 'rb') as fh:
1492 self = pickle.load(fh)
1493
1494 def dump(self, wisdomFile: Optional[str]=None) -> None:
1495 '''

Callers 2

run_generatorFunction · 0.80
ne3compiler.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected