Closed jrast closed 4 years ago
If you are interested in this addition, I will add some tests.
I required this functionality because I had had a srecord file which was quite fragmented and in wanted to merge all segments which had only a little gap inbetween.
I like the change. Sounds useful for other users as well. Let me know when it's ready for a review.
I added some testcases for this. From my side the PR is ready to be merged.
Note: I found out that fill
seems to be broken if the word_size
is changed from 8 bit to 16 bit. But this is a different issue.
I fixed the word size problem. Everything is released and available on PyPI. Version 16.2.0.
Extended the fill method with a
max_words
parameter which can be used to define the maximal empty space which should be filled. Holes wich are larger than the given size are not touched.