This commit is contained in:
Lauri Jesmin
2023-12-06 16:12:31 +02:00
parent 9a8224b719
commit f93aa5f05f

View File

@@ -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 = []