Skip to content

Commit

Permalink
Merge pull request #124 from antmicro/fix_timing_comparasion
Browse files Browse the repository at this point in the history
Fix backslash escape by converting any series of them into single backslash
  • Loading branch information
mkurc-ant authored Sep 23, 2021
2 parents 4d5af81 + 0c7eae6 commit 7a9d020
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fpga_interchange/compare_timings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import argparse
import sys
import re

# ============================================================================

Expand Down Expand Up @@ -50,12 +51,16 @@ def main():
with open(args.base_timing, 'r') as f:
for line in f.readlines():
line = line.split()
line[0] = re.sub(r"\\\\*", '\\', line[0])
print(line[0])
baseline[line[0]] = int(float(line[1]))

comp = {}
with open(args.compare_timing, 'r') as f:
for line in f.readlines():
line = line.split()
line[0] = re.sub(r"\\\\*", '\\', line[0])
print(line[0])
comp[line[0]] = int(float(line[1]))

map_net = {}
Expand Down

0 comments on commit 7a9d020

Please sign in to comment.