A class for more efficient appending of a large number of structures
to a single SD structure file.
For writing single structures, just use the Structure.write method.
For appending a small (less than a thousand) number of structures, the
Structure.append method will perform acceptably.
|
__init__(self,
filename,
overwrite=True)
Initialize needed mmlibs and open the file 'filename'. |
|
|
|
setOption(self,
option,
value)
Set an option not supported for all StructureWriter formats. |
|
|
|
append(self,
ct)
Append the provided structure to the open file. |
|
|
|
close(self)
Close the file. |
|
|
|
__del__(self)
Close the file and terminate the mmlibs. |
|
|
Inherited from _ReaderWriterContextManager :
__enter__ ,
__exit__
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|