The Site class simply provides a convenient container for site information.
More...
|
def | __init__ |
| The parameters are derived straight from JSON or XML values.
|
|
def | __lt__ |
| This is provided so that Site objects are sortable by name.
|
|
def | __repr__ |
| This provides a simple printable representation.
|
|
def | __str__ |
|
|
| name |
|
| id |
|
| latitude |
|
| longitude |
|
The Site class simply provides a convenient container for site information.
It can be used as a sortable item in lists.
Definition at line 331 of file base.py.
def pymetoffice.base.Site.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
id, |
|
|
|
latitude, |
|
|
|
longitude |
|
) |
| |
The parameters are derived straight from JSON or XML values.
Typically, one creates a Site object by site = Site(**<data-from-DataPoint>) as in the _getObervationSitelist code.
Definition at line 336 of file base.py.
def pymetoffice.base.Site.__lt__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
This is provided so that Site objects are sortable by name.
Definition at line 343 of file base.py.
def pymetoffice.base.Site.__repr__ |
( |
|
self | ) |
|
This provides a simple printable representation.
Mostly useful for testing.
Definition at line 347 of file base.py.
The documentation for this class was generated from the following file: