Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
checks for creating recognizable series
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrenn committed Aug 19, 2016
1 parent b18d3aa commit 85c1a03
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/sage/combinat/recognizable_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,18 +260,10 @@ def __init__(self, parent, mu, left=None, right=None):

A = self.parent().alphabet()
if isinstance(mu, (list, tuple)):
if len(A) != len(mu):
raise ValueError('TODO')
mu = dict(zip(A, mu))
mu = Family(mu)
# TODO some check that alphabet is correct
#if A != self.mu:
# raise ValueError('TODO')

#self.k = len(self.matrices)
#self.d = self.matrices[0].nrows()
#if not all(M.dimensions() == (self.d, self.d) for M in self.matrices):
# raise ValueError # TODO
if not mu.is_finite():
raise NotImplementedError('mu is not a finite family of matrices.')

self._left_ = left
self._mu_ = mu
Expand Down

0 comments on commit 85c1a03

Please sign in to comment.