(self, attr)
| 30 | """Holder of a data file.""" |
| 31 | |
| 32 | def __init__(self, attr): |
| 33 | self.attr = attr |
| 34 | self.path = attr["path"] |
| 35 | self.url = attr["url"] |
| 36 | if "checksum" not in attr: |
| 37 | logger.warning("Checksum of %s not provided!", self.path) |
| 38 | self.checksum = attr.get("checksum", None) |
| 39 | |
| 40 | def __str__(self): |
| 41 | return str(self.attr) |