MCPcopy Create free account
hub / github.com/numpy/numpy / __init__

Method __init__

numpy/lib/_datasource.py:246–254  ·  view source on GitHub ↗

Create a DataSource with a local path at destpath.

(self, destpath=os.curdir)

Source from the content-addressed store, hash-verified

244 """
245
246 def __init__(self, destpath=os.curdir):
247 """Create a DataSource with a local path at destpath."""
248 if destpath:
249 self._destpath = os.path.abspath(destpath)
250 self._istmpdest = False
251 else:
252 import tempfile # deferring import to improve startup time
253 self._destpath = tempfile.mkdtemp()
254 self._istmpdest = True
255
256 def __del__(self):
257 # Remove temp directories

Callers 1

__init__Method · 0.45

Calls 1

abspathMethod · 0.45

Tested by

no test coverage detected