Holder of data files of an sample.
| 42 | |
| 43 | |
| 44 | class SampleData: |
| 45 | """Holder of data files of an sample.""" |
| 46 | |
| 47 | def __init__(self, attr): |
| 48 | self.attr = attr |
| 49 | self.sample = attr["sample"] |
| 50 | files = attr.get("files", None) |
| 51 | self.files = [DataFile(f) for f in files] |
| 52 | |
| 53 | def __str__(self): |
| 54 | return str(self.attr) |
| 55 | |
| 56 | |
| 57 | def _loadYAML(yaml_path): |