Target file path for the item in measurements directory Args: item: NameItem for the measurement Returns: Target file path, None if necessary props are missing
(self, item)
| 325 | return f'{item.form}/{item.name}' |
| 326 | |
| 327 | def target_path(self, item): |
| 328 | """Target file path for the item in measurements directory |
| 329 | |
| 330 | Args: |
| 331 | item: NameItem for the measurement |
| 332 | |
| 333 | Returns: |
| 334 | Target file path, None if necessary props are missing |
| 335 | """ |
| 336 | if item.is_ignored or item.form is None or item.name is None: |
| 337 | return None |
| 338 | path = self.measurements_path.joinpath('data', item.form, f'{item.name}.csv') |
| 339 | if not is_file_name_allowed(item.name): |
| 340 | raise ValueError(f'Target path cannot be "{path}"') |
| 341 | return path |
| 342 | |
| 343 | @abstractmethod |
| 344 | def process_group(self, items, new_only=True): |
no test coverage detected