Skip to content

Commit

Permalink
[Solving Issue plasticityai#50]
Browse files Browse the repository at this point in the history
The code took pad_to_length, pad_left and truncate_left as arguments but never used it which caused the issue reported here - plasticityai#50

This is an attempt to solve the above issue..
  • Loading branch information
ParikhKadam authored Apr 3, 2019
1 parent aec9862 commit cc1b43e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pymagnitude/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2082,7 +2082,13 @@ def query(self, q, pad_to_length=None,
truncate_left = truncate_left or self.magnitudes[0].truncate_left

# Query each model with the right set of keys
v = [m.query(self._take(q, multikey, i), normalized=(
v = [m.query(self._take(q, multikey, i), pad_to_length=(
pad_to_length if pad_to_length is not None else m.pad_to_length
), pad_left=(
pad_left if pad_left is not None else m.pad_left
), truncate_left=(
truncate_left if truncate_left is not None else m.truncate_left
), normalized=(
normalized if normalized is not None else m.normalized
))
for i, m in enumerate(self.magnitudes)]
Expand Down

0 comments on commit cc1b43e

Please sign in to comment.