def extract(self, butler, data, **kwargs): """Make a summary table Parameters ---------- butler : `Butler` The data butler data : `dict` Dictionary (or other structure) contain the input data kwargs Used to override default configuration Returns ------- dtables : `TableDict` The resulting data """ self.safe_update(**kwargs) if butler is not None: self.log.warn("Ignoring butler") for key, val in data.items(): data[key] = val.replace('_sum.fits', '_stats.fits') outtable = vstack_tables(data, tablename='biasosstack_stats') dtables = TableDict() dtables.add_datatable('biasosstack_sum', outtable) dtables.make_datatable('runs', dict(runs=sorted(data.keys()))) return dtables
def extract(self, butler, data, **kwargs): """Extract data Parameters ---------- butler : `Butler` The data butler data : `dict` Dictionary (or other structure) contain the input data kwargs Used to override default configuration Returns ------- dtables : `TableDict` Output data tables """ self.safe_update(**kwargs) for key, val in data.items(): data[key] = val.replace(self.config.outsuffix, self.config.insuffix) # Define the set of columns to keep and remove # keep_cols = [] # remove_cols = [] outtable = vstack_tables(data, tablename='tmplsuffix_stats') dtables = TableDict() dtables.add_datatable('tmplsuffix_sum', outtable) dtables.make_datatable('runs', dict(runs=sorted(data.keys()))) return dtables
def extract(self, butler, data, **kwargs): """Make a summary table of the superbias statistics Parameters ---------- butler : `Butler` The data butler data : `dict` Dictionary (or other structure) contain the input data kwargs Used to override default configuration Returns ------- dtables : `TableDict` The resulting data """ self.safe_update(**kwargs) if butler is not None: self.log.warn("Ignoring butler") run_dict = dict(runs=[], rafts=[]) for key, val in sorted(data.items()): run_dict['runs'].append(key[4:]) run_dict['rafts'].append(key[0:3]) data[key] = val.replace(self.config.filekey, self.config.infilekey) outtable = vstack_tables(data, tablename='stats') dtables = TableDict() dtables.add_datatable('stats', outtable) dtables.make_datatable('runs', run_dict) return dtables
def extract(self, butler, data, **kwargs): """Extract data Parameters ---------- butler : `Butler` The data butler data : `dict` Dictionary (or other structure) contain the input data kwargs Used to override default configuration Returns ------- dtables : `TableDict` Output data tables """ self.safe_update(**kwargs) run_dict = dict(runs=[], rafts=[]) for key, val in data.items(): run_dict['runs'].append(key[4:]) run_dict['rafts'].append(key[0:3]) data[key] = val.replace(self.config.filekey, self.config.infilekey) # Define the set of columns to keep and remove # keep_cols = [] # remove_cols = [] outtable = vstack_tables(data, tablename='dark_current') dtables = TableDict() dtables.add_datatable('stats', outtable) dtables.make_datatable('runs', run_dict) return dtables
def extract(self, butler, data, **kwargs): """Extract data Parameters ---------- butler : `Butler` The data butler data : `dict` Dictionary (or other structure) contain the input data kwargs Used to override default configuration Returns ------- dtables : `TableDict` output data tables """ self.safe_update(**kwargs) for key, val in data.items(): print(key, val) data[key] = val.replace(self.config.filekey, self.config.infilekey) # Define the set of columns to keep and remove # keep_cols = [] # remove_cols = [] outtable = vstack_tables(data, tablename='eo_results') dtables = TableDict() dtables.add_datatable('eo_results_run', outtable) dtables.make_datatable('runs', dict(runs=[self.config.run])) return dtables
def extract(self, butler, data, **kwargs): """Extract the summary data from the PTC analyses Parameters ---------- butler : `Butler` The data butler data : `dict` Dictionary (or other structure) contain the input data kwargs Used to override default configuration Returns ------- dtables : `TableDict` The resulting data """ self.safe_update(**kwargs) if butler is not None: self.log.warn("Ignoring butler") if not self.config.skip: outtable = vstack_tables(data, tablename='ptc_stats') dtables = TableDict() dtables.add_datatable('ptc_sum', outtable) dtables.make_datatable('runs', dict(runs=sorted(data.keys()))) return dtables