Skip to content

Commit

Permalink
Merge pull request #276 from eric-wieser/remove-broken-method
Browse files Browse the repository at this point in the history
Remove `Layout.dict_to_multivector`.
  • Loading branch information
eric-wieser committed Mar 11, 2020
2 parents 2d541c3 + f0e9c55 commit ce8fe99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 0 additions & 7 deletions clifford/_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,13 +393,6 @@ def vee(aval, bval):
def basis_names(self):
return np.array(list(sorted(self.basis_vectors.keys())), dtype=bytes)

def dict_to_multivector(self, dict_in):
""" Takes a dictionary of coefficient values and converts it into a MultiVector object """
constructed_values = np.zeros(self.gaDims)
for k in list(dict_in.keys()):
constructed_values[int(k)] = dict_in[k]
return self._newMV(constructed_values)

def __repr__(self):
return "{}({!r}, {!r}, firstIdx={!r}, names={!r})".format(
type(self).__name__,
Expand Down
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Compatibility notes
* ``clifford.grades_present`` is deprecated in favor of
:meth:`MultiVector.grades`, the latter of which now takes an ``eps`` argument.
* ``del mv[i]`` is no longer legal, the equivalent ``mv[i] = 0`` should be used instead.
* ``Layout.dict_to_multivector`` has been removed. It was accidentally broken
in 1.0.5, so there is little point deprecating it.


Changes in 1.2.x
Expand Down

0 comments on commit ce8fe99

Please sign in to comment.