MCPcopy
hub / github.com/Vchitect/Latte / _open_file

Method _open_file

tools/utils/dataset.py:342–347  ·  view source on GitHub ↗
(self, fname)

Source from the content-addressed store, hash-verified

340 return self._zipfile
341
342 def _open_file(self, fname):
343 if self._type == 'dir':
344 return open(os.path.join(os.path.dirname(self._path), fname), 'rb')
345 if self._type == 'zip':
346 return self._get_zipfile().open(fname, 'r')
347 return None
348
349 def close(self):
350 try:

Callers 2

_load_raw_labelsMethod · 0.95
_load_raw_framesMethod · 0.95

Calls 1

_get_zipfileMethod · 0.95

Tested by

no test coverage detected