Giter VIP home page Giter VIP logo

ryser's Introduction

PyPI version python package python publish

ryser

Latin squares and related designs

ryser's People

Contributors

mhenderson avatar

Watchers

 avatar  avatar  avatar

ryser's Issues

BUG: Row absences broken

import ryser

a = ryser.Latin({1:1, 12:3}, 9)

AttributeError                            Traceback (most recent call last)

<ipython-input-11-5e79bc83ef6a> in <module>()
----> 1 a.row_absences(1)

/usr/local/lib/python3.6/dist-packages/ryser/__init__.py in row_absences(self, row_index)
    176         for x in presences:
    177             if x in result:
--> 178                result.remove(x)
    179         return result
    180 

AttributeError: 'range' object has no attribute 'remove'

BUG: Item access broken

import ryser

a = ryser.Latin({1:1, 12:3}, 9)
a[1,1]

KeyError                                  Traceback (most recent call last)

<ipython-input-19-73b9fe84793e> in <module>()
----> 1 a[1,1]

/usr/local/lib/python3.6/dist-packages/ryser/__init__.py in __getitem__(self, key)
    153 
    154     def __getitem__(self, key):
--> 155         return self._P[cell(key[0], key[1], self._size)]
    156 
    157     def size(self):

KeyError: 11

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.