obspy.io.xseed.fields.FixedString

class FixedString(id, name, length, flags='', **kwargs)[source]

Bases: Field

A string field with a fixed width.

Public Methods

convert

get_seed

get_xml

parse_seed

parse_xml

read

write

Private Methods

Warning

Private methods are mainly for internal/developer use and their API might change without notice.

FixedString._format_string(s)

Using SEED specific flags to format strings.

This method is partly adopted from fseed.py, the SEED builder for SeisComP written by Andres Heinloo, GFZ Potsdam in 2005.

FixedString._repr_pretty_(p, cycle)

Special Methods

FixedString.__delattr__(name, /)

Implement delattr(self, name).

FixedString.__dir__()

Default dir() implementation.

FixedString.__eq__(value, /)

Return self==value.

FixedString.__format__(format_spec, /)

Default object formatter.

FixedString.__ge__(value, /)

Return self>=value.

FixedString.__getattribute__(name, /)

Return getattr(self, name).

FixedString.__gt__(value, /)

Return self>value.

FixedString.__hash__()

Return hash(self).

FixedString.__init__(id, name, length, flags='', **kwargs)[source]
FixedString.__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

FixedString.__le__(value, /)

Return self<=value.

FixedString.__lt__(value, /)

Return self<value.

FixedString.__ne__(value, /)

Return self!=value.

FixedString.__new__(**kwargs)
FixedString.__reduce__()

Helper for pickle.

FixedString.__reduce_ex__(protocol, /)

Helper for pickle.

FixedString.__repr__()

Return repr(self).

FixedString.__setattr__(name, value, /)

Implement setattr(self, name, value).

FixedString.__sizeof__()

Size of object in memory, in bytes.

FixedString.__str__()
FixedString.__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).