currently, print_pdb, xyz, etc. will either print to the screen or to a file handle. A better approach would be to return a string (or lines or an iterator) that the user can decide where the output should go.
a string could then be used for easy clones (not really clone, but gens of similar objects) via reading in strings.
Perhaps adding the new method would be a good start:
currently, print_pdb, xyz, etc. will either print to the screen or to a file handle. A better approach would be to return a string (or lines or an iterator) that the user can decide where the output should go.
a string could then be used for easy clones (not really clone, but gens of similar objects) via reading in strings.
Perhaps adding the new method would be a good start: