Skip to content

Commit

Permalink
Merge pull request #10 from ZhanZiyuan/feature/fix_suffix
Browse files Browse the repository at this point in the history
Changed `.npy` to `.npz`.
  • Loading branch information
ZhanZiyuan authored May 27, 2024
2 parents 4691514 + 6527d5c commit cf7f59f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pixel_puzzle/pixel_puzzle.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def decode_base64(encoded_text: str,
def shuffle_pixels(origin_image: str,
shuffled_image: str,
seed: Union[int, None] = None,
index_file: Union[str, Path, None] = Path(__file__).with_suffix(".npy")) -> None:
index_file: Union[str, Path, None] = Path(__file__).with_suffix(".npz")) -> None:
"""
Shuffle the arrangement of pixels on two dimensions.
"""
Expand Down Expand Up @@ -64,7 +64,7 @@ def shuffle_pixels(origin_image: str,
def recover_pixels(shuffled_image: str,
recovered_image: str,
seed: Union[int, None] = None,
index_file: Union[str, Path, None] = Path(__file__).with_suffix(".npy")) -> None:
index_file: Union[str, Path, None] = Path(__file__).with_suffix(".npz")) -> None:
"""
Recover the arrangement of pixels on two dimensions.
"""
Expand Down

0 comments on commit cf7f59f

Please sign in to comment.