Skip to content

Commit

Permalink
Merge pull request #48 from SimonEnsemble/tune_up_2024
Browse files Browse the repository at this point in the history
doc tests run
  • Loading branch information
SimonEnsemble authored Feb 8, 2024
2 parents 9daffbe + 80d99b8 commit b4a5d5a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 2 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Documenter
using Controlz
using Polynomials

# using Controlz before all docstrings
DocMeta.setdocmeta!(Controlz, :DocTestSetup, :(using Controlz); recursive=true)
Expand All @@ -9,6 +10,7 @@ makedocs(
modules = [Controlz],
# source = "src",
doctest = true,
warnonly = true,
sitename = "Controlz.jl",
clean = true,
pages = ["Controlz" => "index.md",
Expand Down
6 changes: 3 additions & 3 deletions docs/src/tfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ as rational functions associated with a time delay, each `TransferFunction` data
```jldoctest gdef
g.numerator
# output
Polynomials.Polynomial(1.0 + 5.0*s)
Polynomial(1.0 + 5.0*s)
```

```jldoctest gdef
g.denominator
# output
Polynomials.Polynomial(5.0 + 4.0*s + 1.0*s^2)
Polynomial(5.0 + 4.0*s + 1.0*s^2)
```

```jldoctest gdef
Expand Down Expand Up @@ -240,7 +240,7 @@ margins.ω_g # gain crossover freq. (radians / time)
margins.gain_margin # gain margin
margins.phase_margin # phase margin (radians)
# output
1.7479849408794201
1.74798494087942
```


Expand Down
2 changes: 1 addition & 1 deletion src/systems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ a polynomial of type `Polynomial`
g_ol = 4 / (s + 3) / (s + 2) / (s + 1)
characteristic_polynomial(g_ol)
# output
Polynomials.Polynomial(10.0 + 11.0*s + 6.0*s^2 + 1.0*s^3)
Polynomial(10.0 + 11.0*s + 6.0*s^2 + 1.0*s^3)
```
"""
function characteristic_polynomial(g_ol::TransferFunction)
Expand Down
3 changes: 0 additions & 3 deletions src/tf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,6 @@ evaluate(tf, 1.0)
# output
0.25
```
```jldoctest eval
```
"""
function evaluate(tf::TransferFunction, z::Number)
return tf.numerator(z) / tf.denominator(z) * exp(-tf.time_delay * z)
Expand Down

2 comments on commit b4a5d5a

@SimonEnsemble
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/100447

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.5 -m "<description of version>" b4a5d5a903b6aa379dc9bd728c9a958bfe12b3ec
git push origin v0.3.5

Please sign in to comment.