18 from typing
import TypeVar, Generic, Final
19 from pathlib
import Path
23 from .sample
import Sample
26 SampleDataType = TypeVar(
"SampleDataType")
29 class LocalSample(Generic[SampleDataType], Sample[SampleDataType]):
32 Represents a local sample object\n
33 The purpose of this class is to provide a way to work with
34 data samples that are stored locally
39 name of sample retrieved from path
44 def __init__(self, path: Path) ->
None:
47 self.name: Final = path.stem
48 self._path: Final = path
55 Path -> path for local sample
58 return self._path.parent / self._path.stem
65 Path -> zip path for local sample
70 def download(self, decrypt: bool =
True, ignoreCache: bool =
False) ->
None:
71 logging.getLogger(
"coretexpylib").warning(
">> [Coretex] Local sample cannot be downloaded")
73 def load(self) -> SampleDataType:
None download(self, bool decrypt=True, bool ignoreCache=False)