vibesketcher.document.transfer¶
Read-only transfer of exactly one selected, complete canvas molecule.
Functions
|
Append one viewer geometry, refusing changed connectivity or identity warnings. |
|
Export a complete selected molecule as QVF without editing |
Classes
|
|
|
|
|
Exceptions
The selection cannot be transferred without guessing its meaning. |
- exception vibesketcher.document.transfer.TransferRefused[source]¶
Bases:
ValueErrorThe selection cannot be transferred without guessing its meaning.
- class vibesketcher.document.transfer.SelectedAtom(*, node, atom)[source]¶
Bases:
BaseModel- Parameters:
- model_config = {'extra': 'forbid', 'strict': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- atom: StrictInt¶
- class vibesketcher.document.transfer.TransferSelection(*, atoms, generate=False)[source]¶
Bases:
BaseModel- Parameters:
atoms (Annotated[list[SelectedAtom], MinLen(min_length=1), MaxLen(max_length=500)])
generate (bool)
- model_config = {'extra': 'forbid', 'strict': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- atoms: list[SelectedAtom]¶
- class vibesketcher.document.transfer.StructureTransfer(data: 'bytes', species: 'str', generated: 'bool')[source]¶
Bases:
object
- vibesketcher.document.transfer.prepare_transfer(document, selection)[source]¶
Export a complete selected molecule as QVF without editing
document.References belong to this exact document’s KET atom slots. Partial and multiple fragments are refused, including two copies of the same species. Generating a missing conformer requires explicit
generate=True.- Parameters:
document (Document)
selection (TransferSelection)
- Return type: