Skip to content

Commit 231575c

Browse files
committed
typos CI
1 parent 32654d6 commit 231575c

18 files changed

+47
-28
lines changed

.github/workflows/SpellCheck.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Spell Check
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
typos-check:
7+
name: Spell Check with Typos
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout Actions Repository
11+
uses: actions/checkout@v3
12+
- name: Check spelling
13+
uses: crate-ci/[email protected]

.typos.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[default.extend-words]
2+
nin = "nin"
3+
nd = "nd"
4+
Strat = "Strat"
5+
eles = "eles"
6+
ser = "ser"

docs/src/basics/AbstractSystem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ patterns via an abstract interpretation without requiring differentiation.
121121

122122
At the end, the system types have `DEProblem` constructors, like `ODEProblem`,
123123
which allow for directly generating the problem types required for numerical
124-
methods. The first argument is always the `AbstractSystem`, and the proceding
124+
methods. The first argument is always the `AbstractSystem`, and the next
125125
arguments match the argument order of their original constructors. Whenever an
126126
array would normally be provided, such as `u0` the initial condition of an
127127
`ODEProblem`, it is instead replaced with a variable map, i.e., an array of

docs/src/basics/Linearization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ If linearization is to be performed around multiple operating points, the simpli
5151

5252
## Symbolic linearization
5353

54-
The function [`ModelingToolkit.linearize_symbolic`](@ref) works simiar to [`ModelingToolkit.linearize`](@ref) but returns symbolic rather than numeric Jacobians. Symbolic linearization have several limitations and no all systems that can be linearized numerically can be linearized symbolically.
54+
The function [`ModelingToolkit.linearize_symbolic`](@ref) works similar to [`ModelingToolkit.linearize`](@ref) but returns symbolic rather than numeric Jacobians. Symbolic linearization have several limitations and no all systems that can be linearized numerically can be linearized symbolically.
5555

5656
## Input derivatives
5757

docs/src/basics/MTKModel_Connector.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ equations.
2929
- `@icon` : for embedding the model icon
3030
- `@parameters`: for specifying the symbolic parameters
3131
- `@structural_parameters`: for specifying non-symbolic parameters
32-
- `@variables`: for specifing the states
32+
- `@variables`: for specifying the states
3333

3434
Let's explore these in more detail with the following example:
3535

@@ -104,7 +104,7 @@ end
104104

105105
#### `@structural_parameters` begin block
106106

107-
- This block is for non symbolic input arguements. These are for inputs that usually are not meant to be part of components; but influence how they are defined. One can list inputs like boolean flags, functions etc... here.
107+
- This block is for non symbolic input arguments. These are for inputs that usually are not meant to be part of components; but influence how they are defined. One can list inputs like boolean flags, functions etc... here.
108108
- Whenever default values are specified, unlike parameters/variables, they are reflected in the keyword argument list.
109109

110110
#### `@parameters` and `@variables` begin block

docs/src/tutorials/bifurcation_diagram_computation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# [Bifurcation Diagrams](@id bifurcation_diagrams)
22

3-
Bifurcation diagrams describes how, for a dynamic system, the quantity and quality of its steady states changes with a parameter's value. These can be computed through the [BifurcationKit.jl](https://github.com/bifurcationkit/BifurcationKit.jl) package. ModelingToolkit provides a simple interface for creating BifurcationKit compatible `BifurcationProblem`s from `NonlinearSystem`s and `ODESystem`s. All teh features provided by BifurcationKit can then be applied to these systems. This tutorial provides a brief introduction for these features, with BifurcationKit.jl providing [a more extensive documentation](https://bifurcationkit.github.io/BifurcationKitDocs.jl/stable/).
3+
Bifurcation diagrams describes how, for a dynamic system, the quantity and quality of its steady states changes with a parameter's value. These can be computed through the [BifurcationKit.jl](https://github.com/bifurcationkit/BifurcationKit.jl) package. ModelingToolkit provides a simple interface for creating BifurcationKit compatible `BifurcationProblem`s from `NonlinearSystem`s and `ODESystem`s. All the features provided by BifurcationKit can then be applied to these systems. This tutorial provides a brief introduction for these features, with BifurcationKit.jl providing [a more extensive documentation](https://bifurcationkit.github.io/BifurcationKitDocs.jl/stable/).
44

55
### Creating a `BifurcationProblem`
66

docs/src/tutorials/domain_connections.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ nothing #hide
205205

206206
![actsys2](https://github.com/SciML/ModelingToolkit.jl/assets/40798837/8ed50035-f6ac-48cb-a585-1ef415154a02)
207207

208-
After running `structural_simplify()` on `actsys2`, the defaults will show that `act.port_a.ρ` points to `fluid_a₊ρ` and `act.port_b.ρ` points to `fluid_b₊ρ`. This is a special case, in most cases a hydraulic system will have only 1 fluid, however this simple system has 2 separate domain networks. Therefore, we can connect a single fluid to both networks. This does not interfer with the mathmatical equations of the system, since no states are connected.
208+
After running `structural_simplify()` on `actsys2`, the defaults will show that `act.port_a.ρ` points to `fluid_a₊ρ` and `act.port_b.ρ` points to `fluid_b₊ρ`. This is a special case, in most cases a hydraulic system will have only 1 fluid, however this simple system has 2 separate domain networks. Therefore, we can connect a single fluid to both networks. This does not interfere with the mathematical equations of the system, since no states are connected.
209209

210210
```@example domain
211211
@component function ActuatorSystem1(; name)
@@ -239,7 +239,7 @@ nothing #hide
239239

240240
## Special Connection Cases (`domain_connect()`)
241241

242-
In some cases a component will be defined with 2 connectors of the same domain, but they are not connected. For example the `Restrictor` defined here gives equations to define the behavior of how the 2 connectors `port_a` and `port_b` are physcially connected.
242+
In some cases a component will be defined with 2 connectors of the same domain, but they are not connected. For example the `Restrictor` defined here gives equations to define the behavior of how the 2 connectors `port_a` and `port_b` are physically connected.
243243

244244
```@example domain
245245
@component function Restrictor(; name, p_int)

docs/src/tutorials/ode_modeling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ plot(solve(prob))
327327

328328
More on this topic may be found in [Composing Models and Building Reusable Components](@ref acausal).
329329

330-
## Inital Guess
330+
## Initial Guess
331331

332332
It is often a good idea to specify reasonable values for the initial state and the
333333
parameters of a model component. Then, these do not have to be explicitly specified when constructing the `ODEProblem`.
@@ -347,7 +347,7 @@ end
347347
```
348348

349349
While defining the model `UnitstepFOLFactory`, an initial guess of 0.0 is assigned to `x(t)` and 1.0 to `τ`.
350-
Additionaly, these initial guesses can be modified while creating instances of `UnitstepFOLFactory` by passing arguements.
350+
Additionally, these initial guesses can be modified while creating instances of `UnitstepFOLFactory` by passing arguments.
351351

352352
```@example ode2
353353
@named fol = UnitstepFOLFactory(; x = 0.1)

ext/MTKBifurcationKitExt.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct ObservableRecordFromSolution{S, T}
2020
param_end_idxs::Int64
2121
# The index (in subs_vals) that contain the bifurcation parameter.
2222
bif_par_idx::Int64
23-
# A Vector of pairs (Symbolic => value) with teh default values of all system variables and parameters.
23+
# A Vector of pairs (Symbolic => value) with the default values of all system variables and parameters.
2424
subs_vals::T
2525

2626
function ObservableRecordFromSolution(nsys::NonlinearSystem,
@@ -41,10 +41,10 @@ struct ObservableRecordFromSolution{S, T}
4141
# Gets the (base) substitution values for observables.
4242
subs_vals_obs = [obs.lhs => substitute(obs.rhs,
4343
[subs_vals_states; subs_vals_params]) for obs in observed(nsys)]
44-
# Sometimes observables depend on other observables, hence we make a second upate to this vector.
44+
# Sometimes observables depend on other observables, hence we make a second update to this vector.
4545
subs_vals_obs = [obs.lhs => substitute(obs.rhs,
4646
[subs_vals_states; subs_vals_params; subs_vals_obs]) for obs in observed(nsys)]
47-
# During the bifurcation process, teh value of some states, parameters, and observables may vary (and are calculated in each step). Those that are not are stored in this vector
47+
# During the bifurcation process, the value of some states, parameters, and observables may vary (and are calculated in each step). Those that are not are stored in this vector
4848
subs_vals = [subs_vals_states; subs_vals_params; subs_vals_obs]
4949

5050
param_end_idxs = state_end_idxs + length(parameters(nsys))

ext/MTKDeepDiffsExt.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ function Base.show(io::IO, l::BipartiteAdjacencyListDiff)
7272
new_nonempty = isnothing(l.new.u) ? nothing : !isempty(l.new.u)
7373
old_nonempty = isnothing(l.old.u) ? nothing : !isempty(l.old.u)
7474
if new_nonempty === true && old_nonempty === true
75-
if (!isempty(setdiff(l.new.highligh_u, l.new.u)) ||
76-
!isempty(setdiff(l.old.highligh_u, l.old.u)))
77-
throw(ArgumentError("The provided `highligh_u` must be a sub-graph of `u`."))
75+
if (!isempty(setdiff(l.new.highlight_u, l.new.u)) ||
76+
!isempty(setdiff(l.old.highlight_u, l.old.u)))
77+
throw(ArgumentError("The provided `highlight_u` must be a sub-graph of `u`."))
7878
end
7979

8080
new_items = Dict(i => HighlightInt(i, :nothing, i === l.new.match) for i in l.new.u)

0 commit comments

Comments
 (0)