Skip to content

Commit 4a49f0c

Browse files
committed
Fix typos
1 parent a476e0d commit 4a49f0c

39 files changed

Lines changed: 130 additions & 130 deletions

SOME_HELPFUL_LINKS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* [Getting started with conda](https://conda.io/projects/conda/en/latest/user-guide/getting-started.html)
55
* [General information on conda environments](https://docs.conda.io/projects/conda/en/latest/user-guide/concepts/environments.html)
66
* [Managing Conda Environments](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html)
7-
* [Tutorial introduction to conda enviroments](https://towardsdatascience.com/getting-started-with-python-environments-using-conda-32e9f2779307)
7+
* [Tutorial introduction to conda environments](https://towardsdatascience.com/getting-started-with-python-environments-using-conda-32e9f2779307)
88
* [Conda-pack](https://conda.github.io/conda-pack/)
99

1010
### cheat sheets

docs/source/SOME_HELPFUL_LINKS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* [Getting started with conda](https://conda.io/projects/conda/en/latest/user-guide/getting-started.html)
55
* [General information on conda environments](https://docs.conda.io/projects/conda/en/latest/user-guide/concepts/environments.html)
66
* [Managing Conda Environments](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html)
7-
* [Tutorial introduction to conda enviroments](https://towardsdatascience.com/getting-started-with-python-environments-using-conda-32e9f2779307)
7+
* [Tutorial introduction to conda environments](https://towardsdatascience.com/getting-started-with-python-environments-using-conda-32e9f2779307)
88
* [Conda-pack](https://conda.github.io/conda-pack/)
99

1010
### cheat sheets

docs/source/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Adding a Notebook
3939

4040
8) Testing
4141

42-
* The `.github/workflows/test.yaml` workflow will check for successfull notebook execution.
42+
* The `.github/workflows/test.yaml` workflow will check for successful notebook execution.
4343
* If your notebook has intentional errors, consider just showing the error in a markdown block (wrapped in python`````` so that the syntax gets highlighted).
4444
* Otherwise, include the notebook in the `xfail_notebooks` list in `tests/test_notebooks.py`, so that the notebook gets marked as expected to fail (and doesn't fail the test workflow).
4545

installation/test_installation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pathlib as pl
22

3-
print('This may take a few minutes....note that varius package versions will be printed')
3+
print('This may take a few minutes....note that various package versions will be printed')
44

55

66
# numpy

notebooks/part0_python_intro/00_python_basics_review.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
"\n",
185185
"Variable names in Python can contain alphanumerical characters `a-z`, `A-Z`, `0-9` and some special characters such as `_`. Normal variable names must start with a letter. \n",
186186
"\n",
187-
"By convension, variable names start with a lower-case letter, and Class names start with a capital letter. \n",
187+
"By convention, variable names start with a lower-case letter, and Class names start with a capital letter. \n",
188188
"\n",
189189
"In addition, there are a number of Python keywords that cannot be used as variable names. These keywords are:\n",
190190
"\n",
@@ -488,7 +488,7 @@
488488
"cell_type": "markdown",
489489
"metadata": {},
490490
"source": [
491-
"This did exactly what it should, but looks strange at first. We `appended` on the data we wanted to, but since we passed a list, we just taked the list `[6,7,8]` on to the end of `a`. What if we wanted to continue our sequence? Then we could use `extend`."
491+
"This did exactly what it should, but looks strange at first. We `appended` on the data we wanted to, but since we passed a list, we just took the list `[6,7,8]` on to the end of `a`. What if we wanted to continue our sequence? Then we could use `extend`."
492492
]
493493
},
494494
{

notebooks/part0_python_intro/01_functions_scripts.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"cell_type": "markdown",
9292
"metadata": {},
9393
"source": [
94-
"The execution of a function introduces a new symbol table used for the local variables of the function. More precisely, all variable assignments in a function store the value in the local symbol table; whereas variable references first look in the local symbol table, then in the local symbol tables of enclosing functions, then in the global symbol table, and finally in the table of built-in names. Thus, global variables cannot be directly assigned a value within a function (unless named in a global statement), although they may be referenced. In plain english, that means the varaibles that are formed and used within a function can only be used within the function, unless they are ```return```-ed - they are sent back.\n"
94+
"The execution of a function introduces a new symbol table used for the local variables of the function. More precisely, all variable assignments in a function store the value in the local symbol table; whereas variable references first look in the local symbol table, then in the local symbol tables of enclosing functions, then in the global symbol table, and finally in the table of built-in names. Thus, global variables cannot be directly assigned a value within a function (unless named in a global statement), although they may be referenced. In plain english, that means the variables that are formed and used within a function can only be used within the function, unless they are ```return```-ed - they are sent back.\n"
9595
]
9696
},
9797
{
@@ -224,7 +224,7 @@
224224
"\n",
225225
"It is also possible to define functions with a variable number of arguments. In ```python```, there are three forms function arguments which can be combined. Each of these forms get used a lot.\n",
226226
"\n",
227-
"The most user-friendly form of a function argument is to specify an argument which has a default value. This creates a function that can be called with fewer arguments, but that also allows greater flexility in controlling the behaviro within the function itself. \n",
227+
"The most user-friendly form of a function argument is to specify an argument which has a default value. This creates a function that can be called with fewer arguments, but that also allows greater flexility in controlling the behavior within the function itself. \n",
228228
"\n",
229229
"For example:"
230230
]
@@ -450,7 +450,7 @@
450450
"source": [
451451
"# More on functions: ```lambda``` functions\n",
452452
"\n",
453-
"```lambda``` functions are a special type of function known as an \"in-line\" function. They are present in virtually all modern programming langauges (not Fortran, that's not modern) and are usually high-optimized. They allow you to quickly define a simple-ish function that can only accept a single, *required* argument. The only reason to introduce them is because they appear frequently when using a python library named ```pandas``` that we will cover later."
453+
"```lambda``` functions are a special type of function known as an \"in-line\" function. They are present in virtually all modern programming languages (not Fortran, that's not modern) and are usually high-optimized. They allow you to quickly define a simple-ish function that can only accept a single, *required* argument. The only reason to introduce them is because they appear frequently when using a python library named ```pandas``` that we will cover later."
454454
]
455455
},
456456
{
@@ -529,7 +529,7 @@
529529
"cell_type": "markdown",
530530
"metadata": {},
531531
"source": [
532-
"*Rewrite the Thiem function from above as a* ```lambda``` *function that only accepts an argument for one variable (you chose) then \"sweep\" over that varaible with a* ```range``` *of values in loop*"
532+
"*Rewrite the Thiem function from above as a* ```lambda``` *function that only accepts an argument for one variable (you chose) then \"sweep\" over that variable with a* ```range``` *of values in loop*"
533533
]
534534
},
535535
{

notebooks/part0_python_intro/02_Namespace_objects_modules_packages.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"\n",
1010
"There are a variety of ways to import existing code into a Python script or interactive session.\n",
1111
"\n",
12-
"There is alot of flexibility in how this is done, but a few suggested practices will be covered here."
12+
"There is a lot of flexibility in how this is done, but a few suggested practices will be covered here."
1313
]
1414
},
1515
{
@@ -519,7 +519,7 @@
519519
"source": [
520520
"Here, we've set up a class from which we can create instances later. Note that the syntax looks like a function. There are a couple strange things that deserve an explanation.\n",
521521
"\n",
522-
"* The argument `object` is optional and has to do with inheritence (which will only be briefly introduced in this class). \n",
522+
"* The argument `object` is optional and has to do with inheritance (which will only be briefly introduced in this class). \n",
523523
"* It is common to include at least one method\n",
524524
"* `__init__` is a special operator that initializes the class. \n",
525525
"* The first argument of `__init__` and really any method of a class is `self`.\n",
@@ -1190,15 +1190,15 @@
11901190
"source": [
11911191
"## Object-oriented programming (OOP)\n",
11921192
"\n",
1193-
"In the O'Reilly book _Learning Python, 5th Edition_ is a great discussion about Object-Oriented Programming. The author makes ths distinction that much of what we are doing with Python is _object-based_ but to truly be object-oriented, we need to also use something called inheritence."
1193+
"In the O'Reilly book _Learning Python, 5th Edition_ is a great discussion about Object-Oriented Programming. The author makes this distinction that much of what we are doing with Python is _object-based_ but to truly be object-oriented, we need to also use something called inheritance."
11941194
]
11951195
},
11961196
{
11971197
"cell_type": "markdown",
11981198
"id": "842f678c",
11991199
"metadata": {},
12001200
"source": [
1201-
"## Inheritence\n",
1201+
"## Inheritance\n",
12021202
"Let's revisit our class for rectangles without the overloading of `__add__`"
12031203
]
12041204
},

notebooks/part0_python_intro/03_useful-std-library-modules.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@
273273
"metadata": {},
274274
"source": [
275275
"Note that if you try to run the above cell twice, you'll get an error that the folder already exists\n",
276-
"``exist_ok=True`` supresses these errors."
276+
"``exist_ok=True`` suppresses these errors."
277277
]
278278
},
279279
{
@@ -400,7 +400,7 @@
400400
"cell_type": "markdown",
401401
"metadata": {},
402402
"source": [
403-
"**gottcha:** `Path.relative_to()` only works when the first path is a subpath of the second path, or if both paths are aboslute\n",
403+
"**gottcha:** `Path.relative_to()` only works when the first path is a subpath of the second path, or if both paths are absolute\n",
404404
"\n",
405405
"For example, try executing this line: \n",
406406
"\n",
@@ -1192,7 +1192,7 @@
11921192
"source": [
11931193
"## Bonus Application -- Using ``os`` to find the location of an executable\n",
11941194
"\n",
1195-
"There are often times that you run an executable that is nested somewhere deep within your system path. It can often be a good idea to know exactly where that executable is located. This might help you one day from accidently using an older version of an executable, such as MODFLOW."
1195+
"There are often times that you run an executable that is nested somewhere deep within your system path. It can often be a good idea to know exactly where that executable is located. This might help you one day from accidentally using an older version of an executable, such as MODFLOW."
11961196
]
11971197
},
11981198
{

notebooks/part0_python_intro/04_files_and_strings.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@
511511
"\n",
512512
"Construction of an f string is similar to the `str.format`, however we no longer need to add a `.format()` call to the end of the string. \n",
513513
"\n",
514-
"The call signiture for f-strings is:\n",
514+
"The call signature for f-strings is:\n",
515515
"\n",
516516
"```python\n",
517517
"f\"{some_variable}\"\n",
@@ -807,7 +807,7 @@
807807
"\n",
808808
"If the first character of `text` is a hash mark, the flow of execution goes to the top of the loop, ready to start processing the next line. If the `text` does not start with \"#\", the code falls through to do the processing at line 9, in this example, writing the line into the new file.\n",
809809
"\n",
810-
"Let’s consider one more case: suppose our original file contained empty lines. At the `if len(text) == 0` line, would this program do anything with the emtpy line? Yes! Recall that a blank line always includes the newline character in the string it returns. "
810+
"Let’s consider one more case: suppose our original file contained empty lines. At the `if len(text) == 0` line, would this program do anything with the empty line? Yes! Recall that a blank line always includes the newline character in the string it returns. "
811811
]
812812
},
813813
{

notebooks/part0_python_intro/05_numpy.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@
532532
"#print values from the beginning up to but not including the 10th value\n",
533533
"print('a[:10]: ', a[:10])\n",
534534
"\n",
535-
"#or print the values from postion 20 to the end\n",
535+
"#or print the values from position 20 to the end\n",
536536
"print('a[90:]', a[20:])"
537537
]
538538
},
@@ -1488,7 +1488,7 @@
14881488
"cell_type": "markdown",
14891489
"metadata": {},
14901490
"source": [
1491-
"### Masked arrays provide a convient away to explicitly handle nan values in the same object"
1491+
"### Masked arrays provide a convenient way to explicitly handle nan values in the same object"
14921492
]
14931493
},
14941494
{
@@ -1738,7 +1738,7 @@
17381738
"source": [
17391739
"## 1D Solute Transport\n",
17401740
"\n",
1741-
"A simple 1D transport analytical solution (Zheng and Bennet page 174; orignally from Ogata and Banks, 1961):\n",
1741+
"A simple 1D transport analytical solution (Zheng and Bennet page 174; originally from Ogata and Banks, 1961):\n",
17421742
"\n",
17431743
"$\\frac{C}{C_0} = \\frac{1}{2} \\left [ erfc \\left ( \\frac{x - v t}{\\sqrt{4Dt}} \\right ) + exp \\left ( \\frac{xv}{D} \\right ) erfc \\left ( \\frac{x + v t}{\\sqrt{4Dt}} \\right ) \\right ]$\n",
17441744
"\n",

0 commit comments

Comments
 (0)