Package Bio :: Package Phylo :: Module PhyloXML :: Class Date
[hide private]
[frames] | no frames]

Class Date

source code

          object --+        
                   |        
BaseTree.TreeElement --+    
                       |    
            PhyloElement --+
                           |
                          Date

A date associated with a clade/node.

Its value can be numerical by using the 'value' element and/or free text with the 'desc' element' (e.g. 'Silurian'). If a numerical value is used, it is recommended to employ the 'unit' attribute.

Instance Methods [hide private]
 
__init__(self, value=None, unit=None, desc=None, minimum=None, maximum=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__str__(self)
Show the class name and the human-readable date.
source code

Inherited from BaseTree.TreeElement: __repr__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, value=None, unit=None, desc=None, minimum=None, maximum=None)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • unit (string) - type of numerical value (e.g. 'mya' for 'million years ago')
  • value (float) - the date value
  • desc (string) - plain-text description of the date
  • minimum (float) - lower bound on the date value
  • maximum (float) - upper bound on the date value
Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
Show the class name and the human-readable date.
Overrides: object.__str__