seisnn.sql.Inventory

class seisnn.sql.Inventory(net, sta, loc)[source]

Bases: sqlalchemy.orm.decl_api.Base

Inventory table for sql database.

__init__(net, sta, loc)

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

Methods

__init__(net, sta, loc)

A simple constructor that allows initialization from kwargs.

add_db(session)

Add data into session.

Attributes

elevation

latitude

longitude

metadata

network

registry

station

add_db(session)[source]

Add data into session.

Parameters

session – SQL session.