MCPcopy Create free account
hub / github.com/MAC-VO/MAC-VO / name

Method name

DataLoader/SequenceBase.py:20–25  ·  view source on GitHub ↗

Assign a short name for the dataset class. By default will be the class name. Overwrite this function if you want to create a more readable name used in `name` field in config.

(cls)

Source from the content-addressed store, hash-verified

18class SequenceBase(IterableDataset[T_Data], ABC, ConfigTestableSubclass):
19 @classmethod
20 def name(cls) -> str:
21 """
22 Assign a short name for the dataset class. By default will be the class name.
23 Overwrite this function if you want to create a more readable name used in `name` field in config.
24 """
25 return cls.__name__
26
27 @abstractmethod
28 def __getitem__(self, local_index: int) -> T_Data: ...

Callers 2

__repr__Method · 0.95
smart_transformFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected