New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix typos in notebook #1967
Fix typos in notebook #1967
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -159,7 +159,7 @@ | |||||
"id": "83a6debf-e477-4b70-b82d-8e079ef8881e", | ||||||
"metadata": {}, | ||||||
"source": [ | ||||||
"`RasterSource`s support `numpy`-like array slicing, so we can read a smaller chip within the full raster like so:" | ||||||
"`RasterSources` support `numpy`-like array slicing, so we can read a smaller chip within the full raster like so:" | ||||||
] | ||||||
}, | ||||||
{ | ||||||
|
@@ -343,7 +343,7 @@ | |||||
"source": [ | ||||||
":class:`RasterSources <raster_source.raster_source.RasterSource>` accept a list of :class:`RasterTransformers <raster_transformer.raster_transformer.RasterTransformer>`, all of which are automatically applied (in the order specified) to each chip sampled from that :class:`.RasterSource`.\n", | ||||||
"\n", | ||||||
"Below we'll look at two such `RasterTransformer`s:\n", | ||||||
"Below we'll look at two such `RasterTransformers`:\n", | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This text is not currently correctly rendered because it is using single back ticks instead of double back ticks.
Suggested change
|
||||||
"\n", | ||||||
"- :class:`.MinMaxTransformer`\n", | ||||||
"- :class:`.StatsTransformer`\n", | ||||||
|
@@ -467,7 +467,7 @@ | |||||
"tags": [] | ||||||
}, | ||||||
"source": [ | ||||||
"Another useful ``RasterTransformer`` is the :class:`.StatsTransformer`. \n", | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a ReST cell. ReST uses double back ticks for inline code. |
||||||
"Another useful `RasterTransformer` is the :class:`.StatsTransformer`. \n", | ||||||
"\n", | ||||||
"Unlike `MinMaxTransformer <#MinMaxTransformer>`_, the :class:`.StatsTransformer` is able to deal with outlier values. It works by using channel means and standard deviations to convert values to z-scores and then clipping them to some number of standard deviations before scaling to 0-255 and converting to ``uint8``.\n", | ||||||
"\n", | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -522,7 +522,7 @@ | |
"id": "024fe3ab-412b-4242-849c-fc71dd986e78", | ||
"metadata": {}, | ||
"source": [ | ||
"## Transforming vector data using `VectorTransformer`s" | ||
"## Transforming vector data using `VectorTransformers`" | ||
] | ||
}, | ||
{ | ||
|
@@ -727,7 +727,7 @@ | |
"tags": [] | ||
}, | ||
"source": [ | ||
"``Point`` and ``LineString`` geometries are not directly useable if doing, say, semantic segmentation. The cells below show an example of converting road geometries (given in the form of ``LineString``s) into polygons using the :class:`.BufferTransformer`." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See other comment about ReST. |
||
"``Point`` and ``LineString`` geometries are not directly useable if doing, say, semantic segmentation. The cells below show an example of converting road geometries (given in the form of `LineString`) into polygons using the :class:`.BufferTransformer`." | ||
] | ||
}, | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
convention is a deliberate choice. The trailing "s" is excluded from the inline code block to clarify that it is just for pluralization and not part of the class' name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is inconsistent. Some places uses
s
, some not.https://docs.rastervision.io/en/0.21/usage/tutorials/reading_raster_data.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's true. The reason for that is a quirk of ReST/sphinx. The following is what I would like to do, but it does not work.
So I ended up including the "s" whenever the class name is linked to the API docs.