Skip to content

Commit

Permalink
Merge pull request #296 from Timmmm/reformat
Browse files Browse the repository at this point in the history
Reapply pre-commit autoformat
  • Loading branch information
aswaterman authored Oct 8, 2024
2 parents 50e2986 + 0805c83 commit dcbdd96
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
)



def read_csv(filename):
"""
Reads a CSV file and returns a list of tuples.
Expand All @@ -65,7 +64,10 @@ def read_csv(filename):
csrs32 = read_csv("csrs32.csv")

# Load the argument lookup table (arg_lut) from a CSV file, mapping argument names to their bit positions
arg_lut = {row[0]: (int(row[1]), int(row[2])) for row in csv.reader(open("arg_lut.csv"), skipinitialspace=True)}
arg_lut = {
row[0]: (int(row[1]), int(row[2]))
for row in csv.reader(open("arg_lut.csv"), skipinitialspace=True)
}

# for mop
arg_lut["mop_r_t_30"] = (30, 30)
Expand Down

0 comments on commit dcbdd96

Please sign in to comment.