parandus
This commit is contained in:
@@ -81,7 +81,7 @@ def findmapping(sr, tables, prefix):
|
|||||||
print(f"{prefix}Mapping {row} {sr} {len(tables)}")
|
print(f"{prefix}Mapping {row} {sr} {len(tables)}")
|
||||||
allresults.append(
|
allresults.append(
|
||||||
findmapping(
|
findmapping(
|
||||||
SR(row.target + (sr.startpoint - row.source), sr.length),
|
SR(row.target + (sr.startpoint - row.source), row.endpoint - sr.startpoint),
|
||||||
tables,
|
tables,
|
||||||
prefix + "#",
|
prefix + "#",
|
||||||
)
|
)
|
||||||
@@ -98,7 +98,7 @@ def findmapping(sr, tables, prefix):
|
|||||||
return min(allresults)
|
return min(allresults)
|
||||||
|
|
||||||
|
|
||||||
with open("data2.txt") as file:
|
with open("data.txt") as file:
|
||||||
lines = [line.rstrip() for line in file]
|
lines = [line.rstrip() for line in file]
|
||||||
|
|
||||||
tables = []
|
tables = []
|
||||||
|
|||||||
Reference in New Issue
Block a user