code: def get_nodedata(self, sort_names=False):
          
          if not self.Node.n:
              return
          if not self.pflow.solved:
              logger.error('Power flow not solved when getting bus data.')
              return tuple([False] * 7)
          idx = self.Node.idx
          names = self.Node.name
          V = [self.dae.y[x] for x in self.Node.v]
  
          if sort_names:
              ret = (list(x)
                     for x in zip(*sorted(zip(idx, names, V), key=itemgetter(0))))
          else:
              ret = idx, names, V
  
          return ret
docs: get dc node data from solved power flow