Skip to content

Commit

Permalink
Fix typos and spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpiper committed Aug 1, 2023
1 parent 80b8492 commit 4f2c10a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lessons/python/7_oop.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
"In this lesson,\n",
"we'll go over some of the basics of OOP using Python.\n",
"This will be useful for EPSP scientists because\n",
"numerical models written with OOP techinques tend to be easier understand, debug, maintain, and extend.\n",
"numerical models written with OOP techniques tend to be easier understand, debug, maintain, and extend.\n",
"Landlab is an example.\n",
"Further, if you intens to develop a Landlab component,\n",
"it has to be written with OOP techinues."
"Further, if you intend to develop a Landlab component,\n",
"it must be written with OOP techniques."
]
},
{
Expand Down Expand Up @@ -227,7 +227,7 @@
"In the signatures of the two methods,\n",
"we're using [type hints](https://docs.python.org/3/library/typing.html).\n",
"This is a choice;\n",
"they're useful, but not necessaery.\n",
"they're useful, but not necessary.\n",
"\n",
"Within a class definition,\n",
"the variable *self* is used to define and access attributes and methods.\n",
Expand Down Expand Up @@ -410,7 +410,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Note that most of the work in the contructor goes into forming arguments appropriate for `Shape`,\n",
"Note that most of the work in the constructor goes into forming arguments appropriate for `Shape`,\n",
"although creating *w* and *h* attributes for `Rectangle` helps with calculating the area."
]
},
Expand Down Expand Up @@ -620,7 +620,7 @@
"source": [
"It requires time to become adept at object-oriented programming,\n",
"but the time is usually well-spent\n",
"bcause code (think model code!) that is developed with OOP techniques\n",
"because code (think model code!) that is developed with OOP techniques\n",
"tends to be more robust and easier to test, maintain, and extend.\n",
"\n",
"The concepts from this lesson are explored further in a recent CSDMS [webinar](https://youtu.be/dLrahDArm4w)\n",
Expand All @@ -642,7 +642,7 @@
"| class | the programming structure that defines what goes into an object |\n",
"| attribute | data associated with an object |\n",
"| method | a function that belongs to an object |\n",
"| instance | synoym for object |\n",
"| instance | synonym for object |\n",
"| constructor | the function called when an object is created |\n",
"| inheritance | the mechanism for deriving a new class from an existing class|\n",
"| subclass | a class derived through inheritance |\n",
Expand Down

0 comments on commit 4f2c10a

Please sign in to comment.