Skip to content

My implementation of Guan Codes (generalized Gray codes) in Python.

License

Notifications You must be signed in to change notification settings

Tomev-CTP/GuanCodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guan Codes

A simple package for generating Gray and Guan codes.

Summary

Getting Started

So far, to get the project one only needs to download it from the repository (or any other source).

It's also possible to download it as a package with

pip install guancodes

which will download the package from pypi.

Prerequisites

To run the scripts there will be needed some version of Python. During the development I'm using 3.8, but I believe that it will also work just fine with some earlier or newer version (at least for now).

In some places I use typing package, that's why 3.8 version is desirable.

Code style

Throughout this work PEP-8 will be used. There are several cases where this may go south.

  • In some versions of the code matrices may be denoted by capital letters (as in standard mathematical notation). In order to be more PEP-friendly I'll try to use prefix m_ instead of capital letters, e.g. m_u would be the equivalent of U. Alternatively explicit use of mathematical notation is also acceptable.

Running the tests

Just run all test in tests folder with pytest.

  • Note that (for now) there are no unit tests. Just simple sanity check of returned results.

Versioning

I'll use SemVer for versioning and try to keep track of the version in the tags.

Authors

License

This project is licensed under the Apache License, v.2.0. See the LICENSE.md file for details.

Acknowledgments

  • CTP PAS - This project was done during my Ph.D. at CTP PAS.

About

My implementation of Guan Codes (generalized Gray codes) in Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages