obspy.io.xseed.fields.Field

class Field(id, name, *args, **kwargs)[source]

Bases: object

General SEED field.

Public Methods

convert

get_seed

get_xml

parse_seed

parse_xml

Private Methods

Warning

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

Field._format_string(s)[source]

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.

Field._repr_pretty_(p, cycle)[source]

Special Methods

Field.__delattr__(name, /)

Implement delattr(self, name).

Field.__dir__()

Default dir() implementation.

Field.__eq__(value, /)

Return self==value.

Field.__format__(format_spec, /)

Default object formatter.

Field.__ge__(value, /)

Return self>=value.

Field.__getattribute__(name, /)

Return getattr(self, name).

Field.__gt__(value, /)

Return self>value.

Field.__hash__()

Return hash(self).

Field.__init__(id, name, *args, **kwargs)[source]
Field.__init_subclass__()

This method is called when a class is subclassed.

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

Field.__le__(value, /)

Return self<=value.

Field.__lt__(value, /)

Return self<value.

Field.__ne__(value, /)

Return self!=value.

Field.__new__(**kwargs)
Field.__reduce__()

Helper for pickle.

Field.__reduce_ex__(protocol, /)

Helper for pickle.

Field.__repr__()

Return repr(self).

Field.__setattr__(name, value, /)

Implement setattr(self, name, value).

Field.__sizeof__()

Size of object in memory, in bytes.

Field.__str__()[source]
Field.__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).