Coretex
|
Public Member Functions | |
None | download (self, bool decrypt=True, bool ignoreCache=False) |
None | unzip (self, bool ignoreCache=False) |
Path | joinPath (self, Union[Path, str] other) |
Represents the generic class Sample Includes methods that can be used by any instance of Sample and abstract methods that must be implemented by any subclass
None coretex.entities.sample.sample.Sample.download | ( | self, | |
bool | decrypt = True , |
||
bool | ignoreCache = False |
||
) |
Downloads the Sample if it is an instance or a subclass of NetworkSample Ignored for instances and subclasses of LocalSample
Reimplemented in coretex.entities.sample.network_sample.NetworkSample, and coretex.entities.sample.local_sample.LocalSample.
Path coretex.entities.sample.sample.Sample.joinPath | ( | self, | |
Union[Path, str] | other | ||
) |
Joins sample path and provided path Parameters ---------- other : Union[Path, str] path for join Returns ------- Path -> path created from sample path and provided path Example ------- >>> print(sampleObj.joinPath("dummy.zip")) Path("path/to/sample/dummy.zip")
Definition at line 98 of file sample.py.
None coretex.entities.sample.sample.Sample.unzip | ( | self, | |
bool | ignoreCache = False |
||
) |
Unzip sample zip file Parameters ---------- ignoreCache : bool if set to false performs unzip action even if sample is previously unzipped
Reimplemented in coretex.entities.sample.sequence_sample.local_sequence_sample.LocalSequenceSample, and coretex.entities.sample.network_sample.NetworkSample.