fix(import): align child-parent pedigree mapping by using name cell row for vertical alignment
This commit is contained in:
@@ -211,6 +211,7 @@ def extract_stammbaum(path):
|
||||
if not compact and not is_block_dob:
|
||||
continue
|
||||
|
||||
name_row = r
|
||||
if compact:
|
||||
name = clean_name(compact.group(1))
|
||||
dob, death, geno = parse_detail(t)
|
||||
@@ -225,6 +226,7 @@ def extract_stammbaum(path):
|
||||
if (c, rr) in cells and not re.match(r"^\*?\s?\d", cells[(c, rr)]) \
|
||||
and not gt.looks_like_genotype(cells[(c, rr)]):
|
||||
name = clean_name(cells[(c, rr)])
|
||||
name_row = rr
|
||||
used.add((c, rr))
|
||||
break
|
||||
farbschlag = ""
|
||||
@@ -275,7 +277,7 @@ def extract_stammbaum(path):
|
||||
"sourceFiles": [fname],
|
||||
"_gen": gen_of(c, col_offset),
|
||||
"_col": c,
|
||||
"_row": r,
|
||||
"_row": name_row,
|
||||
"_file": fname,
|
||||
"_zucht": norm_zucht(zraw),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user