Skip to content

Commit 013686a

Browse files
committed
add callout explaining use of color & colour
1 parent 34f3dda commit 013686a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

episodes/03-skimage-images.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,18 @@ original data type and the data range back 0 to 255.
354354
Note that it is often better to use image values represented by floating point values,
355355
because using floating point numbers is numerically more stable.
356356
357+
> ## Colour and `color`
358+
>
359+
> The Carpentries generally prefers UK English spelling,
360+
> which is why we use "colour" in the explanatory text of this lesson.
361+
> However, `skimage` contains many modules and functions that include
362+
> the US English spelling, `color`.
363+
> The exact spelling matters here,
364+
> e.g. you will encounter an error if you try to run `skimage.colour.rgb2gray()`.
365+
> To account for this, we will use the US English spelling, `color`,
366+
> in example Python code throughout the lesson.
367+
{: .callout }
368+
357369
~~~
358370
"""
359371
* Python script to load a color image as grayscale.

0 commit comments

Comments
 (0)