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