Miscelaneous functions
Chemfiles.FormatMetadata — TypeMetadata associated with one of the format Chemfiles can read/write
name::StringName of the format
extension::Union{Nothing, String}Extension associated with the format, or
nothingif there is no extension associated.description::StringExtended user-facing description of the format
reference::StringURL pointing to the format definition/reference
read::BoolIs reading files in this format implemented?
write::BoolIs writing files in this format implemented?
memory::BoolDoes this format support in-memory IO?
positions::BoolDoes this format support storing atomic positions?
velocities::BoolDoes this format support storing atomic velocities?
unit_cell::BoolDoes this format support storing unit cell information?
atoms::BoolDoes this format support storing atom names or types?
bonds::BoolDoes this format support storing bonds between atoms?
residues::BoolDoes this format support storing residues?
Chemfiles.add_configuration — Methodadd_configuration(path::String)
Read configuration data from the file at path.
By default, chemfiles reads configuration from any file name .chemfilesrc in the current directory or any parent directory. This function can be used to add data from another configuration file.
This function will fail if there is no file at path, or if the file is incorectly formatted. Data from the new configuration file will overwrite any existing data.
Chemfiles.clear_errors — Methodclear_errors()
Clear any error messages stored by the chemfiles runtime.
Chemfiles.format_list — Methodformat_list() -> Array{Chemfiles.FormatMetadata,1}
Get the full list of formats supported by Chemfiles, and associated metadata
Chemfiles.last_error — Methodlast_error() -> String
Get the last error message from the chemfiles runtime.
Chemfiles.set_warning_callback — Methodset_warning_callback(callback::Function)
Set the global warning callback to be used for each warning event.
The callback function must take a String and return nothing.