Skip to content

Commit

Permalink
Update jabba.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxinye committed Jul 8, 2024
1 parent 2e8ac4f commit 4098190
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions fABBA/jabba/jabba.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,10 +685,10 @@ def recast_shape(self, reconstruct_list):
fixed_len = self.recap_shape[1] * self.recap_shape[2]

if fixed_len > np.max(size_list):
warnings.warn('The reconstructed shape has been expanded.', ShapeWarning)
warnings.warn('The reconstructed shape has been expanded.')

elif fixed_len < np.max(size_list):
warnings.warn('The reconstructed shape has been squeezed.', ShapeWarning)
warnings.warn('The reconstructed shape has been squeezed.')

org_size = len(reconstruct_list)

Expand Down Expand Up @@ -1169,10 +1169,6 @@ def fillna(series, method='ffill'):



class ShapeWarning(EncodingWarning):
pass


def zip_longest(*iterables, fillvalue=None):
# zip_longest('ABCD', 'xy', fillvalue='-') → Ax By C- D-

Expand Down

0 comments on commit 4098190

Please sign in to comment.