code: def write_generator_data(self, file):
          
          generator_sheet = self.book.add_sheet("Generators")
  
          for j, generator in enumerate(self.case.generators):
              i = generator.bus._i
              for k, attr in enumerate(GENERATOR_ATTRS):
                  generator_sheet.write(j, 0, i)
docs: Write generator data to file.