18 from typing
import Dict, Any
19 from typing_extensions
import override
20 from pathlib
import Path
22 from .base
import BaseCustomDataset
23 from ..network_dataset
import NetworkDataset, _chunkSampleImport
24 from ...sample
import CustomSample
25 from ....codable
import KeyDescriptor
31 Custom Dataset class which is used for Other Task
32 Represents the collection of archived samples
36 def __init__(self) -> None:
37 super().__init__(CustomSample)
41 def _keyDescriptors(cls) -> Dict[str, KeyDescriptor]:
42 descriptors = super()._keyDescriptors()
43 descriptors[
"samples"] =
KeyDescriptor(
"sessions", CustomSample, list)
48 def _uploadSample(self, samplePath: Path, sampleName: str, **metadata: Any) -> CustomSample:
49 return _chunkSampleImport(self.
_sampleType_sampleType, sampleName, samplePath, self.id)