MCPcopy
hub / github.com/jaakkopasanen/AutoEq / target_path

Method target_path

dbtools/crawler.py:327–341  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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):

Callers 6

prompt_callbackMethod · 0.95
prune_measurementsMethod · 0.95
rename_measurementMethod · 0.95
process_groupMethod · 0.45
process_groupMethod · 0.45
process_groupMethod · 0.45

Calls 1

is_file_name_allowedFunction · 0.90

Tested by

no test coverage detected