nodes: 0, module; 1, function_definition; 2, function_name:doys_int; 3, parameters; 4, block; 5, identifier:self; 6, expression_statement; 7, if_statement; 8, comment:"""A sorted list of days of the year in this analysis period as integers."""; 9, not_operator; 10, block; 11, else_clause; 12, attribute; 13, return_statement; 14, block; 15, identifier:self; 16, identifier:_is_reversed; 17, call; 18, expression_statement; 19, expression_statement; 20, return_statement; 21, attribute; 22, argument_list; 23, assignment; 24, assignment; 25, binary_operator:doys_st + doys_end; 26, identifier:self; 27, identifier:_calc_daystamps; 28, attribute; 29, attribute; 30, identifier:doys_st; 31, call; 32, identifier:doys_end; 33, call; 34, identifier:doys_st; 35, identifier:doys_end; 36, identifier:self; 37, identifier:st_time; 38, identifier:self; 39, identifier:end_time; 40, attribute; 41, argument_list; 42, attribute; 43, argument_list; 44, identifier:self; 45, identifier:_calc_daystamps; 46, attribute; 47, call; 48, identifier:self; 49, identifier:_calc_daystamps; 50, call; 51, attribute; 52, identifier:self; 53, identifier:st_time; 54, attribute; 55, argument_list; 56, attribute; 57, argument_list; 58, identifier:self; 59, identifier:end_time; 60, identifier:DateTime; 61, identifier:from_hoy; 62, integer:8759; 63, identifier:DateTime; 64, identifier:from_hoy; 65, integer:0
code: def doys_int(self):
          """A sorted list of days of the year in this analysis period as integers."""
          if not self._is_reversed:
              return self._calc_daystamps(self.st_time, self.end_time)
          else:
              doys_st = self._calc_daystamps(self.st_time, DateTime.from_hoy(8759))
              doys_end = self._calc_daystamps(DateTime.from_hoy(0), self.end_time)
              return doys_st + doys_end