Please provide here a summary of the changes introduced by this PR.
How to test?
Test new DVC stages for extract-features
import yaml
with open("dvc.yaml") as f:
d = yaml.safe_load(f)["stages"]
keys = {k for k in d.keys() if re.search(r"features.*in.*rd", k)}
print(f"--- Found {len(keys)} keys")
for k_rd in sorted(keys):
print(k_rd)
k_proj = re.sub(r"rd-", "proj-", k_rd)
assert k_proj in d.keys()
d1 = d[k_rd]
d2 = d[k_proj]
for (k1, v1), (k2, v2) in zip(d1.items(), d2.items()):
if isinstance(v1, list):
v1 = "\n".join(v1)
if isinstance(v2, list):
v2 = "\n".join(v2)
assert k1 == k2
assert v2 == re.sub(r"-rd", "-proj", v1)
Fixes #67
Description
Please provide here a summary of the changes introduced by this PR.
How to test?
Test new DVC stages for
extract-features
should print
Checklist