Exemplo n.º 1
0
 def _datasetStartDay(self, dataset):
     attrs = dict(dataset.attrs)
     if 'start_day' in attrs: return attrs['start_day']
     elif 'start_date' in attrs: return dateAsTuple(attrs['start_date'])[1:]
     else: return self._fileStartDay()
Exemplo n.º 2
0
 def _datasetEndDay(self, dataset):
     attrs = dict(dataset.attrs)
     if 'end_day' in attrs: return attrs['end_day']
     elif 'end_date' in attrs: return dateAsTuple(attrs['end_date'])[1:]
     else: return self._fileEndDay()