Skip to content

Commit

Permalink
Another doctest attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Ames committed Sep 18, 2024
1 parent 6ccc2aa commit d761fd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PyThermo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ end

abstract type Chemical end

const _DOC_PRECISION_FIX = r"(\d\.\d\d)\d*" => s"\1"
const _DOCTEST = """jldoctest pythermo; setup = :(using PyThermo), filter = r"(\\d\\.\\d\\d)\\d*" => s"\\1" """

"""
Species(ID::String; T=298.15, P=101325)
Expand All @@ -66,7 +66,7 @@ P : pressure of the chemical (default 101325 Pa)
Examples
--------
```jldoctest pythermo; setup = :(using PyThermo), filter = $_DOC_PRECISION_FIX
```$_DOCTEST
julia> He = Species("He")
Species(He, 298.1 K, 1.013e+05 Pa)
Expand Down Expand Up @@ -132,7 +132,7 @@ The composition can also be specified by providing a vector of `"ID" => molefrac
Examples
--------
```jldoctest; setup = :(using PyThermo), filter = $_DOC_PRECISION_FIX;
```$_DOCTEST
julia> air = Mixture(["N2" => 0.78, "O2" => 0.21, "Ar" => 0.01])
Mixture(78% N2, 21% O2, 1% Ar, 298.1 K, 1.013e+05 Pa)
Expand Down

2 comments on commit d761fd3

@stillyslalom
Copy link
Owner

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/115434

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.0 -m "<description of version>" d761fd3d9887c8b154b7c1f157a9c6da13b018a7
git push origin v0.3.0

Please sign in to comment.