Skip to content

Commit a2e3fa0

Browse files
committed
update news, bump version
1 parent 29d70e2 commit a2e3fa0

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# BioStructures.jl release notes
22

3+
## v4.3.0 - Nov 2024
4+
5+
* Selection strings are made much faster.
6+
37
## v4.2.1 - Oct 2024
48

59
* Change compatibility bounds for new MetaGraphs.jl release.

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "BioStructures"
22
uuid = "de9282ab-8554-53be-b2d6-f6c222edabfc"
33
authors = ["Joe G Greener <jgreener@hotmail.co.uk>"]
4-
version = "4.2.1"
4+
version = "4.3.0"
55

66
[deps]
77
BioGenerics = "47718e42-2ac5-11e9-14af-e5595289c2ea"

src/select.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,14 @@ struct Select{Q} <: Function
440440
query_string::String
441441
query::Q
442442
end
443+
443444
function Select(query_string::AbstractString)
444445
query = parse_query(query_string)
445446
return Select(query_string, query)
446447
end
448+
447449
(s::Select)(at) = apply_query(s.query, at)
450+
448451
Base.show(io::IO, ::MIME"text/plain", s::Select) = print(io, """Select("$(s.query_string)")""")
449452

450453
"String selection syntax."

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ end
941941
@test_throws ArgumentError collectatoms(struc, BioStructures.Select("index = A")) # Invalid value type
942942
@test_throws ArgumentError collectatoms(struc, BioStructures.Select("resnum C"))
943943

944-
# test show method for @sel_str
944+
# Test show method for @sel_str
945945
buff = IOBuffer()
946946
show(buff, MIME"text/plain"(), sel"name CA and resnum 1")
947947
@test String(take!(buff)) == """Select("name CA and resnum 1")"""

0 commit comments

Comments
 (0)