SWDEV-423947: Added ATT header option
Change-Id: I6e9ad213b578d752c865c9f9af4ee0b79d447e1b
This commit is contained in:
کامیت شده توسط
Giovanni Baraldi
والد
fdd4af4023
کامیت
e0962d9d63
@@ -38,7 +38,8 @@ in_filename = sys.argv[1]
|
||||
out_filename = in_filename.split(".att")[0] + ".out"
|
||||
|
||||
in_bytes = np.fromfile(in_filename, dtype=np.uint16)
|
||||
out_bytes = [map16(c) + "\n" for c in in_bytes]
|
||||
offset = 4 if in_bytes[0] >= 0xC000 else 0
|
||||
out_bytes = [map16(c) + "\n" for c in in_bytes[offset:]]
|
||||
|
||||
with open(out_filename, "w") as f:
|
||||
[f.write(b) for b in out_bytes]
|
||||
|
||||
مرجع در شماره جدید
Block a user