Example #1
0
 def __init__(self, study, docs, projections, spectral, magnitudes, stats):
     QtCore.QObject.__init__(self)
     self.study = study
     self.docs = docs
     self.spectral = spectral
     self.projections = projections
     self.magnitudes = magnitudes
     self.stats = stats
     self.canonical_filenames = [doc.name for doc in study.canonical_documents]
     self.info = render_info_page(self)
Example #2
0
 def __init__(self, study, docs, projections, spectral, magnitudes, stats):
     QtCore.QObject.__init__(self)
     self.study = study
     self.docs = docs
     self.spectral = spectral
     self.projections = projections
     self.magnitudes = magnitudes
     self.stats = stats
     self.canonical_filenames = [
         doc.name for doc in study.canonical_documents
     ]
     self.info = render_info_page(self)
Example #3
0
 def write_report(self, filename):
     if self.stats is None: return
     self.info = render_info_page(self)
     with open(filename, 'w') as out:
         out.write(self.info.encode('utf-8'))
     return self.info
Example #4
0
 def write_report(self, filename):
     if self.stats is None: return
     self.info = render_info_page(self)
     with open(filename, 'w') as out:
         out.write(self.info.encode('utf-8'))
     return self.info