| |
- builtins.object
-
- Grandeur
- Sitemeteo
class Grandeur(builtins.object) |
|
Classe Grandeur.
Classe pour manipuler des grandeurs meteorologiques.
Proprietes:
typemesure (string parmi NOMENCLATURE[523])
sitemeteo (Sitemeteo)
pdt (int) pas de temps |
|
Methods defined here:
- __eq__(self, other, attrs=None, ignore=None, lazzy=False)
- Equal elaborate function.
Arguments:
self, other
attrs (iterable of strings, default to self.__class__.__all__attrs__ or
__self.__dict__.keys() = the attrs to compare
ignore (iterable of strings, default None) = attrs to ignore in the
comparison
lazzy (bool, default False) = if True does not test an attribute
whose counterpart is None
NB: functool.partial could be smarter than a private class variable to
fix the default attrs list, but it doesn't work with 'self'.
- __hash__(self)
- __init__(self, typemesure, sitemeteo=None, pdt=None, strict=True)
- Initialisation.
Arguments:
typegrandeur (string parmi NOMENCLATURE[523])
sitemeteo (Sitemeteo)
pdt (int) = pas de temps pour un capteur RR
strict (bool, defaut True) = le mode permissif permet de lever les
controles de validite du sitemeteo et du type
- __ne__(self, other, attrs=[], ignore=[], lazzy=False)
- __str__(self)
- Return string representation from __unicode__ method.
- __unicode__(self)
- Return unicode representation.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
- pdt
- Return pdt.
- sitemeteo
- Return sitemeteo.
- typemesure
- Class Nomenclatureitem.
A descriptor to deal with 'in nomenclature.NOMENCLATURES' properties.
Should raise only a ValueError when value is not allowed (even with
the None case).
Properties:
nomenclature (int) = the nomenclature ref
valuetype (type) = a function to cast values to the nomenclature's
items type
strict (bool, default True) = wether or not the instance value has
to be in the nomenclature items
required (bool, defaut True) = wether or not instance's value can
be None
default = a defautl value returned if the instance's value is not
in the dictionnary. Should be unused if the property has been
initialized.
data (weakref.WeakKeyDictionary)
Data and other attributes defined here:
- __all__attrs__ = ('typemesure', 'sitemeteo', 'pdt')
|
class Sitemeteo(builtins.object) |
|
Classe Sitemeteo.
Classe pour manipuler des sites meteorologiques.
Proprietes:
code (string(9)) = code INSEE
libelle (string)
libelleusuel (string)
coord (Coord) =
x, y (float)
proj (int parmi NOMENCLATURE[22]) = systeme de projection
commune (string(5)) = code INSEE commune
grandeurs (une liste de Grandeur) |
|
Methods defined here:
- __eq__(self, other, attrs=None, ignore=None, lazzy=False)
- Equal elaborate function.
Arguments:
self, other
attrs (iterable of strings, default to self.__class__.__all__attrs__ or
__self.__dict__.keys() = the attrs to compare
ignore (iterable of strings, default None) = attrs to ignore in the
comparison
lazzy (bool, default False) = if True does not test an attribute
whose counterpart is None
NB: functool.partial could be smarter than a private class variable to
fix the default attrs list, but it doesn't work with 'self'.
- __init__(self, code, libelle=None, libelleusuel=None, coord=None, commune=None, grandeurs=None, strict=True)
- Initialisation.
Arguments:
code (string(9)) = code INSEE. Un code de 8 caracteres est prefixe
d'un zero
libelle (string)
libelleusuel (string)
coord (list ou dict) =
(x, y, proj) ou {'x': x, 'y': y, 'proj': proj}
avec proj (int parmi NOMENCLATURE[22]) = systeme de projection
commune (string(5)) = code INSEE commune
grandeurs (une liste de Grandeur)
strict (bool, defaut True) = le mode permissif permet de lever les
controles de validite du code et des grandeurs
- __ne__(self, other, attrs=[], ignore=[], lazzy=False)
- __str__(self)
- Return string representation from __unicode__ method.
- __unicode__(self)
- Return unicode representation.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
- code
- Return code INSEE.
- commune
- Return code commune.
- coord
- Return coord.
- grandeurs
- Return grandeurs.
Data and other attributes defined here:
- __all__attrs__ = ('code', 'libelle', 'libelleusuel', 'coord', 'commune', 'grandeurs')
- __hash__ = None
| |