Skip to content

Commit 0d795cb

Browse files
committed
Apply codespell changes
1 parent 11a8a83 commit 0d795cb

6 files changed

+34
-17
lines changed

examples/exploring_lowlevel_pypestutils_functions.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@
436436
"id": "a21a0eac-9f18-4759-9fd4-3edd97ac3ff1",
437437
"metadata": {},
438438
"source": [
439-
"Now lets also add an `isite` interger column to marks where difference sites start and stop:"
439+
"Now lets also add an `isite` integer column to marks where difference sites start and stop:"
440440
]
441441
},
442442
{
@@ -500,7 +500,7 @@
500500
"id": "373f642b-880f-4593-9c9d-dd71c5dc251e",
501501
"metadata": {},
502502
"source": [
503-
"Thats it! MOD2OBS done..."
503+
"That's it! MOD2OBS done..."
504504
]
505505
},
506506
{
@@ -538,7 +538,7 @@
538538
"id": "7d977397-773f-4a0d-bd30-af43c41a493f",
539539
"metadata": {},
540540
"source": [
541-
"Thats the centroids of all nodes (across all layers). Let's focus on 2-D stuff here...so we need to get the first `nrow * ncol` nodes:"
541+
"That's the centroids of all nodes (across all layers). Let's focus on 2-D stuff here...so we need to get the first `nrow * ncol` nodes:"
542542
]
543543
},
544544
{

examples/exploring_pypestutils_helpers.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
"id": "20bdd61b-c8a5-4a49-882e-b35cd40e17f8",
218218
"metadata": {},
219219
"source": [
220-
"So thats it! If we look in the `w_d` workspace, we can see what output files were created by `mod2obs_mf6()`:"
220+
"So that's it! If we look in the `w_d` workspace, we can see what output files were created by `mod2obs_mf6()`:"
221221
]
222222
},
223223
{

examples/pypestutils_pstfrom_quadtree_mf6.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
"m = sim.get_model(\"freyberg6\")\n",
141141
"m.modelgrid.set_coord_info(\n",
142142
" angrot=-55\n",
143-
") # for some reason flopy isnt picking up angrot from the disv options..."
143+
") # for some reason flopy isn't picking up angrot from the disv options..."
144144
]
145145
},
146146
{
@@ -395,7 +395,7 @@
395395
"cell_type": "markdown",
396396
"metadata": {},
397397
"source": [
398-
"Ok, thats pretty awesome. So now lets proceed as usual with `PstFrom`"
398+
"Ok, that's pretty awesome. So now lets proceed as usual with `PstFrom`"
399399
]
400400
},
401401
{
@@ -434,7 +434,7 @@
434434
"\n",
435435
"Let's setup grid-scale multiplier parameters and fancy pilot point multipliers for HK in all layers. Typically, we would want pass a `geostruct` to `PstFrom.add_parameters()` for the grid-scale parameters to that later when we generate the prior parameter ensemble, grid-scale parameter realizations would get some spatial correlation. But in this notebook, we are focused on using `pypestutils`, so when we get to the prior parameter ensemble generation, we will use `pypestutils` to generate spatially correlated grid-scale parameter realizations.\n",
436436
"\n",
437-
"To start with, lets make sure to reset the \"value\" column in `ppdf` to 1.0 so we can use it as a multiplier...and...this where it gets deep: we need to have some spatial correlation on the pilot point spatial correlation attributes - yeesh! This is where the term \"hyper-parameter\" comes from: We are treating the controling attributes of the pilot point interpolation as \"parameters\" in the PEST sense, which means we want those attributes to have some spatial structure to them, otherwise, the resulting property fields will have implausible bearing, aniso, and/or correlation length variability (that is, those quantities will vary sharply over short distances, which we dont want). So we need to define, you guessed it, a geostatistical structure for...the...geostatistical structure?! #inception"
437+
"To start with, lets make sure to reset the \"value\" column in `ppdf` to 1.0 so we can use it as a multiplier...and...this where it gets deep: we need to have some spatial correlation on the pilot point spatial correlation attributes - yeesh! This is where the term \"hyper-parameter\" comes from: We are treating the controlling attributes of the pilot point interpolation as \"parameters\" in the PEST sense, which means we want those attributes to have some spatial structure to them, otherwise, the resulting property fields will have implausible bearing, aniso, and/or correlation length variability (that is, those quantities will vary sharply over short distances, which we dont want). So we need to define, you guessed it, a geostatistical structure for...the...geostatistical structure?! #inception"
438438
]
439439
},
440440
{
@@ -541,9 +541,9 @@
541541
"cell_type": "markdown",
542542
"metadata": {},
543543
"source": [
544-
"### Getting the `pypestutils` pilot point interpolation into the foward run process\n",
544+
"### Getting the `pypestutils` pilot point interpolation into the forward run process\n",
545545
"\n",
546-
"So we added extra fancy pilot points to our pest interface with the smoothness of `PstFrom`. But we still need to interpolate the pilot point values using the associated (estimated) hyper-parameters to the model grid at runtime. To do this, we have setup a little helper funtion in a python script called \"ppu_helpers.py\". This helper function will read the \".grb\" file at runtime so we need to make sure it always available. So let's copy the current \".grb\" file to a file for safe keeping (in case MODFLOW-6 fails to run to competion and we lose the \".grb\" file for the next run!)"
546+
"So we added extra fancy pilot points to our pest interface with the smoothness of `PstFrom`. But we still need to interpolate the pilot point values using the associated (estimated) hyper-parameters to the model grid at runtime. To do this, we have setup a little helper function in a python script called \"ppu_helpers.py\". This helper function will read the \".grb\" file at runtime so we need to make sure it always available. So let's copy the current \".grb\" file to a file for safe keeping (in case MODFLOW-6 fails to run to completion and we lose the \".grb\" file for the next run!)"
547547
]
548548
},
549549
{

examples/pypestutils_pstfrom_structured_mf6.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@
305305
"cell_type": "markdown",
306306
"metadata": {},
307307
"source": [
308-
"Well thats ok, but we dont really want pilot points in the inactive zones, do we? Let's try this again, this time pass the `idomain` as the \"zone\" array:"
308+
"Well that's ok, but we dont really want pilot points in the inactive zones, do we? Let's try this again, this time pass the `idomain` as the \"zone\" array:"
309309
]
310310
},
311311
{
@@ -338,7 +338,7 @@
338338
"cell_type": "markdown",
339339
"metadata": {},
340340
"source": [
341-
"Mucho gusto! Thats better. We can also pass other array quantities to this simple helper if we want to sample arrays to the pilot point values (including the quantities we modify for the pilot point below). Let's do something fun (and quasi-geologic?): Let's assume that in the vicinity of the SFR boundary, there are buried meander-shaped deposits, but that as we move away from the SFR boundary, more traditional two-point geostatistical heterogeneity exists. Sounds fancy right? We can do this with spatially varying geostatistical hyper-parameters..."
341+
"Mucho gusto! That's better. We can also pass other array quantities to this simple helper if we want to sample arrays to the pilot point values (including the quantities we modify for the pilot point below). Let's do something fun (and quasi-geologic?): Let's assume that in the vicinity of the SFR boundary, there are buried meander-shaped deposits, but that as we move away from the SFR boundary, more traditional two-point geostatistical heterogeneity exists. Sounds fancy right? We can do this with spatially varying geostatistical hyper-parameters..."
342342
]
343343
},
344344
{
@@ -476,7 +476,7 @@
476476
"cell_type": "markdown",
477477
"metadata": {},
478478
"source": [
479-
"Ok, thats pretty awesome. So now lets proceed as usual with `PstFrom`"
479+
"Ok, that's pretty awesome. So now lets proceed as usual with `PstFrom`"
480480
]
481481
},
482482
{
@@ -515,7 +515,7 @@
515515
"\n",
516516
"Let's setup grid-scale multiplier parameters and fancy pilot point multipliers for HK in all layers. Typically, we would want pass a `geostruct` to `PstFrom.add_parameters()` for the grid-scale parameters to that later when we generate the prior parameter ensemble, grid-scale parameter realizations would get some spatial correlation. But in this notebook, we are focused on using `pypestutils`, so when we get to the prior parameter ensemble generation, we will use `pypestutils` to generate spatially correlated grid-scale parameter realizations.\n",
517517
"\n",
518-
"To start with, lets make sure to reset the \"value\" column in `ppdf` to 1.0 so we can use it as a multiplier...and...this where it gets deep: we need to have some spatial correlation on the pilot point spatial correlation attributes - yeesh! This is where the term \"hyper-parameter\" comes from: We are treating the controling attributes of the pilot point interpolation as \"parameters\" in the PEST sense, which means we want those attributes to have some spatial structure to them, otherwise, the resulting property fields will have implausible bearing, aniso, and/or correlation length variability (that is, those quantities will vary sharply over short distances, which we dont want). So we need to define, you guessed it, a geostatistical structure for...the...geostatistical structure?! #inception"
518+
"To start with, lets make sure to reset the \"value\" column in `ppdf` to 1.0 so we can use it as a multiplier...and...this where it gets deep: we need to have some spatial correlation on the pilot point spatial correlation attributes - yeesh! This is where the term \"hyper-parameter\" comes from: We are treating the controlling attributes of the pilot point interpolation as \"parameters\" in the PEST sense, which means we want those attributes to have some spatial structure to them, otherwise, the resulting property fields will have implausible bearing, aniso, and/or correlation length variability (that is, those quantities will vary sharply over short distances, which we dont want). So we need to define, you guessed it, a geostatistical structure for...the...geostatistical structure?! #inception"
519519
]
520520
},
521521
{
@@ -622,9 +622,9 @@
622622
"cell_type": "markdown",
623623
"metadata": {},
624624
"source": [
625-
"### Getting the `pypestutils` pilot point interpolation into the foward run process\n",
625+
"### Getting the `pypestutils` pilot point interpolation into the forward run process\n",
626626
"\n",
627-
"So we added extra fancy pilot points to our pest interface with the smoothness of `PstFrom`. But we still need to interpolate the pilot point values using the associated (estimated) hyper-parameters to the model grid at runtime. To do this, we have setup a little helper funtion in a python script called \"ppu_helpers.py\". This helper function will read the \".grb\" file at runtime so we need to make sure it always available. So let's copy the current \".grb\" file to a file for safe keeping (in case MODFLOW-6 fails to run to competion and we lose the \".grb\" file for the next run!)"
627+
"So we added extra fancy pilot points to our pest interface with the smoothness of `PstFrom`. But we still need to interpolate the pilot point values using the associated (estimated) hyper-parameters to the model grid at runtime. To do this, we have setup a little helper function in a python script called \"ppu_helpers.py\". This helper function will read the \".grb\" file at runtime so we need to make sure it always available. So let's copy the current \".grb\" file to a file for safe keeping (in case MODFLOW-6 fails to run to completion and we lose the \".grb\" file for the next run!)"
628628
]
629629
},
630630
{

examples/understanding_variograms_and_realizations.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"id": "cb1483d1-e062-4567-bd85-715e20f382f9",
112112
"metadata": {},
113113
"source": [
114-
"Move these slowly so it doesnt flicker...\n",
114+
"Move these slowly so it doesn't flicker...\n",
115115
"\n",
116116
" - corrlen = the correlation length of the variogram\n",
117117
" - anisotropy = the anisotropy ratio of the primary to second axes of the anisotropy ellipse\n",
@@ -143,7 +143,7 @@
143143
"source": [
144144
"# These go to 11...\n",
145145
"\n",
146-
"Now let's explore what happens when we introduce hyper parameteres on the property variogram. In essense, we are now going to treat the bearing, anisotropy, and correlation length of the above variogram as themselves being described by variograms - wat?! Its like geostatistical inception..."
146+
"Now let's explore what happens when we introduce hyper parameters on the property variogram. In essence, we are now going to treat the bearing, anisotropy, and correlation length of the above variogram as themselves being described by variograms - wat?! Its like geostatistical inception..."
147147
]
148148
},
149149
{

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,23 @@ before-build = [
7676
[tool.cibuildwheel.windows]
7777
before-build = "pip install wheel"
7878

79+
[tool.codespell]
80+
skip = "*.grb,*.log,./pestutils/sgsim_code.f90,./pestutils/lapack1.F"
81+
ignore-words-list = [
82+
"acount",
83+
"afile",
84+
"aline",
85+
"alo",
86+
"delt",
87+
"ect",
88+
"gaus",
89+
"inout",
90+
"nam",
91+
"nd",
92+
"rel",
93+
"wel",
94+
]
95+
7996
[tool.ruff.lint]
8097
select = [
8198
"D", # pydocstyle

0 commit comments

Comments
 (0)