| … | … | @@ -65,6 +65,16 @@ def add_to_atomspace(atoms: set[Atom] | list[Atom], atomspace: AtomSpace) -> Non |
| 65 | 65 | atomspace.add_atom(atom) |
| 66 | 66 | |
| 67 | 67 | |
| 68 | def copy_atomspace(src: AtomSpace, dst: AtomSpace) -> None: | |
| 69 | """Copy the content of src into the dst. | |
| 70 | ||
| 71 | The copy does not clean dst. | |
| 72 | ||
| 73 | """ | |
| 74 | ||
| 75 | add_to_atomspace(atomspace_roots(src), dst) | |
| 76 | ||
| 77 | ||
| 68 | 78 | def fetch_cogscms(atomspace: AtomSpace) -> set[Atom]: |
| 69 | 79 | """Fetch all cognitive schematics from an given atomspace.""" |
| 70 | 80 |