pyrocko.table

A slim table-like data structure for when pandas are too fat.

Classes

DType(...)

Guts placeholder for numpy.dtype.

Description([table])

Undocumented.

EventRecipe()

Undocumented.

Header(name[, unit, sub_headers, dtype, ...])

Undocumented.

LocationRecipe()

Undocumented.

MomentTensorRecipe()

Undocumented.

Recipe()

Undocumented.

SimpleRecipe(header, func)

Undocumented.

SubHeader(name[, unit, default, label])

Undocumented.

Table([name, nrows_capacity, ...])

Undocumented.

class DType(...) numpy.dtype[source]

Bases: SObject

Guts placeholder for numpy.dtype.

class SubHeader(name, unit=None, default=None, label=None, **kwargs)[source]

Bases: Object

Undocumented.

name

str

unit

str, optional

default

pyrocko.guts.Any, optional

label

str, optional

class Header(name, unit=None, sub_headers=[], dtype=None, default=None, label=None)[source]

Bases: SubHeader

Undocumented.

sub_headers

list of SubHeader objects, default: []

dtype

numpy.dtype (DType), optional, default: dtype('float64')

class Description(table=None, **kwargs)[source]

Bases: Object

Undocumented.

name

str, optional

headers

list of Header objects, default: []

nrows

int

ncols

int

class Recipe[source]

Bases: Object

Undocumented.

class Table(name=None, nrows_capacity=None, nrows_capacity_min=0, description=None, arrays=None, recipes=[])[source]

Bases: Object

Undocumented.

description

Description

arrays

list of numpy.ndarray (pyrocko.guts_array.Array) objects, default: []

recipes

list of Recipe objects, default: []

class SimpleRecipe(header, func)[source]

Bases: Recipe

Undocumented.

class LocationRecipe[source]

Bases: Recipe

Undocumented.

class EventRecipe[source]

Bases: LocationRecipe

Undocumented.

class MomentTensorRecipe[source]

Bases: Recipe

Undocumented.