Skip to content

Commit

Permalink
update news, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreener64 committed Nov 23, 2024
1 parent 29d70e2 commit a2e3fa0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# BioStructures.jl release notes

## v4.3.0 - Nov 2024

* Selection strings are made much faster.

## v4.2.1 - Oct 2024

* Change compatibility bounds for new MetaGraphs.jl release.
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "BioStructures"
uuid = "de9282ab-8554-53be-b2d6-f6c222edabfc"
authors = ["Joe G Greener <[email protected]>"]
version = "4.2.1"
version = "4.3.0"

[deps]
BioGenerics = "47718e42-2ac5-11e9-14af-e5595289c2ea"
Expand Down
3 changes: 3 additions & 0 deletions src/select.jl
Original file line number Diff line number Diff line change
Expand Up @@ -440,11 +440,14 @@ struct Select{Q} <: Function
query_string::String
query::Q
end

function Select(query_string::AbstractString)
query = parse_query(query_string)
return Select(query_string, query)
end

(s::Select)(at) = apply_query(s.query, at)

Base.show(io::IO, ::MIME"text/plain", s::Select) = print(io, """Select("$(s.query_string)")""")

"String selection syntax."
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ end
@test_throws ArgumentError collectatoms(struc, BioStructures.Select("index = A")) # Invalid value type
@test_throws ArgumentError collectatoms(struc, BioStructures.Select("resnum C"))

# test show method for @sel_str
# Test show method for @sel_str
buff = IOBuffer()
show(buff, MIME"text/plain"(), sel"name CA and resnum 1")
@test String(take!(buff)) == """Select("name CA and resnum 1")"""
Expand Down

2 comments on commit a2e3fa0

@jgreener64
Copy link
Member 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/120039

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 v4.3.0 -m "<description of version>" a2e3fa0ad0d5ecea5b6bef1c3bfe34ff0579b150
git push origin v4.3.0

Please sign in to comment.