yungshenglu / USTC-TK2016

Toolkit for processing PCAP file and transform into image of MNIST dataset
Mozilla Public License 2.0
196 stars 61 forks source link

the bug of 3_Session2Png.py #4

Open smithCoderLeo opened 4 years ago

smithCoderLeo commented 4 years ago

in the line 23 "fh=numpy.reshape(fh[:rnwidth])...", need to modify to "fh=numpy.reshape(fh[:int(rnwidth)])", the slice indexes need to be Integer

yungshenglu commented 4 years ago

Hi @smithCoderLeo, could you please help to solve this issue by giving me a pull request. Thanks!!

smithCoderLeo commented 3 years ago

do you mean this problem?

pattyla@163.com

From: qianwang102 Date: 2020-12-24 10:26 To: yungshenglu/USTC-TK2016 CC: smithCoderLeo; Assign Subject: Re: [yungshenglu/USTC-TK2016] the bug of 3_Session2Png.py (#4) I met the same problem. How did you solve it? — You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or unsubscribe.

OStars commented 3 years ago

I met the same problem. In the line 22 rn = len(fh)/width which should be rn = len(fh)//width , otherwise the result would be float , not a interger