Skip to content

Commit 62b70c3

Browse files
author
Kirill V. Lyadvinsky
committed
got rid of 'numpy' dependency
1 parent b6329cb commit 62b70c3

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
numpy

zxtools/hobeta.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import struct
99
from collections import namedtuple
1010
import argparse
11-
import numpy
1211

1312
from zxtools import CHUNK_SIZE
1413

@@ -41,7 +40,7 @@ def calc_checksum(data):
4140
""" Calculate checksum for data """
4241
check_sum = 0
4342
for i, value in enumerate(data):
44-
check_sum = numpy.uint16(check_sum + value*257 + i)
43+
check_sum = (check_sum + value*257 + i) % 0x10000
4544
return check_sum
4645

4746

0 commit comments

Comments
 (0)