Skip to content

Commit

Permalink
0.1.2
Browse files Browse the repository at this point in the history
Bug fix in RS-coding
  • Loading branch information
adrianschlatter committed Nov 26, 2022
2 parents b27bc42 + c456821 commit 7585877
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
13 changes: 10 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If you are working in a graphically enabled IPython terminal, you'll see your da

![IPython integration](imgs/ipython.png)

Using the DataMatrix object you get the SVG source like this:
Using the DataMatrix object, you get the SVG source like this:

```
myDataMatrix.svg()
Expand Down Expand Up @@ -62,8 +62,15 @@ ppf.datamatrix is available via [pypi](https://pypi.org):
pip install ppf.datamatrix
```

# Still reading?

If you read this far, you're probably not here for the first time. If you
use and like ppf.datamatrix, would you consider giving it a Github Star? (The
button is at the top of this website.)


# Change Log

* 0.1.1: Fixed bug in datamatrix.ascii encoding of digit pairs
* 0.1: Initial port of datamatrix–svg
* 0.1.2: Fixed bug in RS correction data for each block
* 0.1.1: Fixed bug in datamatrix.ascii encoding of digit pairs
* 0.1: Initial port of datamatrix–svg
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = ppf-datamatrix
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version = 0.1.1
version = 0.1.2
description = Python port of https://github.com/datalog/datamatrix-svg
long_description = file: docs/README_pypi.md
long_description_content_type = text/markdown
Expand Down
2 changes: 1 addition & 1 deletion src/ppf/datamatrix/datamatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def bit(x, y):
if x:
rc[j] = rc[j + 1] ^ ex[(lg[rs[j]] + lg[x]) % 255]
else:
rc[j] = 0
rc[j] = rc[j + 1]

# interleaved correction data
for i in range(s):
Expand Down

0 comments on commit 7585877

Please sign in to comment.