silent_file_map

class pyrosetta.io.silent_file_map.SilentFileEnergyAccessor(sdata)

Bases: Mapping

Map class providing read-only energies access to protein silent file data.

_abc_cache = <_weakrefset.WeakSet object>
_abc_negative_cache = <_weakrefset.WeakSet object>
_abc_negative_cache_version = 41
_abc_registry = <_weakrefset.WeakSet object>
get(k[, d]) D[k] if k in D, else d.  d defaults to None.
items() a set-like object providing a view on D's items
keys()

Return list of all tags in silent file data.

values() an object providing a view on D's values
class pyrosetta.io.silent_file_map.SilentFileMap(filename=None, data=None)

Bases: MutableMapping

Map class providing key-value interface to silent file data.

_abc_cache = <_weakrefset.WeakSet object>
_abc_negative_cache = <_weakrefset.WeakSet object>
_abc_negative_cache_version = 41
_abc_registry = <_weakrefset.WeakSet object>
clear() None.  Remove all items from D.
property energies

Return SilentFileEnergiesAccessor over silent file map.

get(k[, d]) D[k] if k in D, else d.  d defaults to None.
items() a set-like object providing a view on D's items
keys() a set-like object providing a view on D's keys
pop(k[, d]) v, remove specified key and return the corresponding value.

If key is not found, d is returned if given, otherwise KeyError is raised.

popitem() (k, v), remove and return some (key, value) pair

as a 2-tuple; but raise KeyError if D is empty.

property poses

Return SilentFilePoseAccessor over silent file map.

setdefault(k[, d]) D.get(k,d), also set D[k]=d if k not in D
property tags

Return list of all tags in silent file data.

update([E, ]**F) None.  Update D from mapping/iterable E and F.

If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v

values() an object providing a view on D's values
write_file(filename=None, force=False)

Write file to given filename.

class pyrosetta.io.silent_file_map.SilentFilePoseAccessor(sdata)

Bases: Mapping

Map class providing read-only pose access to protein silent file data.

_abc_cache = <_weakrefset.WeakSet object>
_abc_negative_cache = <_weakrefset.WeakSet object>
_abc_negative_cache_version = 41
_abc_registry = <_weakrefset.WeakSet object>
get(k[, d]) D[k] if k in D, else d.  d defaults to None.
items() a set-like object providing a view on D's items
keys()

Return list of all tags in silent file data.

values() an object providing a view on D's values
pyrosetta.io.silent_file_map._open_bz2_compressed(f)
pyrosetta.io.silent_file_map._open_gzip_compressed(f)
pyrosetta.io.silent_file_map.open_compressed(filename)

Open a possibly compressed file or stream as a decompressed file object. Checks for gzip/bz2 prefix bytes and returns a decompression stream if needed. filename - str filename or file object supporting seek