class_docstr: Class for time operations on epochs/evoked-like MNE objects.
class_docstr_tok: ["Class","for","time","operations","on","epochs\/evoked-like","MNE","objects","."]
docstr: Update self.first and self.last (sample indices).
docstr_tok: ["Update","self.first","and","self.last","(","sample","indices",")","."]
code: def _update_first_last(self):
      """Update self.first and self.last (sample indices)."""
      from ..dipole import DipoleFixed
      from ..evoked import Evoked
  
      if isinstance(self, (Evoked, DipoleFixed)):
          self.first = int(round(self.times[0] * self.info["sfreq"]))
          self.last = len(self.times) + self.first - 1
  
imports: import json
  import logging
  from collections import OrderedDict
  from copy import deepcopy
  import numpy
  from ._logging import verbose, warn
  from .check import _check_pandas_installed, _check_preload, _validate_type
  from .numerics import _time_mask, object_hash, object_size
label_desc: Use image node_id 6 for calling the ExtendedTimeMixin obj's underlying member method code with example usage: obj._update_first_last() without return types