Skip to content

Commit

Permalink
Merge pull request #245 from 42-AI/239-python03-ex02
Browse files Browse the repository at this point in the history
Update en.subject.tex
  • Loading branch information
PlumeRoberts authored May 20, 2022
2 parents 16343b5 + 7d1bef3 commit 24d18a5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions module03/subject/en.subject.tex
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ \section*{Instructions}

def thin(self, array, n, axis):
"""
Deletes every n-th line pixels along the specified axis (0: vertical, 1: horizontal)
Deletes every n-th line pixels along the specified axis (0: Horizontal, 1: Vertical)
Args:
-----
array: numpy.ndarray.
Expand Down Expand Up @@ -526,12 +526,12 @@ \section*{Examples}
arr2 = np.array("A B C D E F G H I".split() * 6).reshape(-1,9)
spb.thin(arr2,3,0)
#Output :
array([['A', 'B', 'D', 'E', 'G', 'H', 'J', 'K'],
['A', 'B', 'D', 'E', 'G', 'H', 'J', 'K'],
['A', 'B', 'D', 'E', 'G', 'H', 'J', 'K'],
['A', 'B', 'D', 'E', 'G', 'H', 'J', 'K'],
['A', 'B', 'D', 'E', 'G', 'H', 'J', 'K'],
['A', 'B', 'D', 'E', 'G', 'H', 'J', 'K']], dtype='<U1')
array([['A', 'B', 'D', 'E', 'G', 'H'],
['A', 'B', 'D', 'E', 'G', 'H'],
['A', 'B', 'D', 'E', 'G', 'H'],
['A', 'B', 'D', 'E', 'G', 'H'],
['A', 'B', 'D', 'E', 'G', 'H'],
['A', 'B', 'D', 'E', 'G', 'H']], dtype='<U1')


arr3 = np.array([[1, 2, 3],[1, 2, 3],[1, 2, 3]])
Expand Down Expand Up @@ -975,4 +975,4 @@ \section*{Acknowledgements}
\vfill
\doclicenseThis

\end{document}
\end{document}

0 comments on commit 24d18a5

Please sign in to comment.