Skip to content

Commit

Permalink
Add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonOresten committed Oct 29, 2024
1 parent d54d614 commit d0cdb6f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/properties.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,22 @@ checkproperty(::Any, ::AbstractProperty) = nothing
unpack(x) = x
unpack(p::AbstractProperty) = p.value

"""
StandardProperty
StandardProperty(value)
A property with arbitrary type. The value is retained as is.
This is the default property type for [`addproperties`](@ref).
See also [`IndexableProperty`](@ref).
"""
struct StandardProperty{T} <: AbstractProperty
value::T
end

Base.getindex(p::AbstractProperty, ::Any) = unpack(p)
Base.getindex(p::StandardProperty, ::Any) = unpack(p)

"""
IndexableProperty
Expand Down

2 comments on commit d0cdb6f

@AntonOresten
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 register

Release notes:

  • Changed HDF5 file structure, meaning ProteinStructureStores that were serialized in v0.3 can not be opened in v0.4. Please open an issue if this presents a problem.
  • Add readattribute and writeattribute functions for structure metadata.
  • Add readproperty, writeproperty, and deleteproperty functions for lazy manipulation of ProteinStructureStore entries.
  • Rename PersistentProperty to StandardProperty.
  • Generalized property serialization to categorize properties in subgroups by the AbstractProperty wrapper types.
  • Add @mmcifdict_str macro for getting the MMCIFDict of a PDB entry.

@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/118287

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.4.0 -m "<description of version>" d0cdb6f706730a9e3612ab1e47b20f6e8fdc0792
git push origin v0.4.0

Please sign in to comment.