def __init__(self, targetDir=None, facilityId=None, model=None, plot_df=None, filenameOverride=None, createDataframe=False, incidence=None): ExcelWriter.__init__(self, model, plot_df) # Initialization for file reading/writing. If no file name override, use the # default construction. if self.model is not None and self.model.group_name is not None: outfile = self.model.group_name + "_facility_max_risk_and_hi.xlsx" else: outfile = "facility_max_risk_and_hi.xlsx" filename = outfile if filenameOverride is None else filenameOverride path = os.path.join(targetDir, filename) InputFile.__init__(self, path, createDataframe) self.filename = path self.targetDir = targetDir self.facilityId = facilityId self.header = None self.incidence = incidence
def __init__(self, targetDir, facilityId, model, plot_df, block_summary_chronic_df): ExcelWriter.__init__(self, model, plot_df) self.filename = os.path.join(targetDir, facilityId + "_cancer_risk_exposure.xlsx") self.block_summary_chronic_df = block_summary_chronic_df
def __init__(self, targetDir, facilityId, model, plot_df, ring_summary_chronic_df, inner_recep_risk_df): ExcelWriter.__init__(self, model, plot_df) self.filename = os.path.join( targetDir, facilityId + "_maximum_offsite_impacts.xlsx") self.ring_summary_chronic_df = ring_summary_chronic_df self.inner_recep_risk_df = inner_recep_risk_df
def __init__(self, targetDir, facilityId, model, plot_df): ExcelWriter.__init__(self, model, plot_df) if self.model.group_name != None: outfile = self.model.group_name + "_facility_toshi_exp.xlsx" else: outfile = "facility_toshi_exp.xlsx" self.filename = os.path.join(targetDir, outfile) self.facilityId = facilityId self.header = None
def __init__(self, targetDir, facilityId, model, plot_df, incidence): ExcelWriter.__init__(self, model, plot_df) if self.model.group_name != None: outfile = self.model.group_name + "_facility_max_risk_and_hi.xlsx" else: outfile = "facility_max_risk_and_hi.xlsx" self.filename = os.path.join(targetDir, outfile) self.facilityId = facilityId self.header = None self.incidence = incidence
def __init__(self, targetDir=None, facilityId=None, model=None, plot_df=None, filenameOverride=None, createDataframe=False): # Initialization for file reading/writing. If no file name override, use the # default construction. self.targetDir = targetDir filename = facilityId + "_input_selection_options.xlsx" if filenameOverride is None else filenameOverride path = os.path.join(self.targetDir, filename) ExcelWriter.__init__(self, model, plot_df) InputFile.__init__(self, path, createDataframe) self.facilityId = facilityId self.filename = path
def __init__(self, targetDir=None, facilityId=None, model=None, plot_df=None, filenameOverride=None, createDataframe=False, achempop_df=None, achemmax_df=None): # Initialization for file reading/writing. If no file name override, use the # default construction. filename = facilityId + "_acute_bkdn.xlsx" if filenameOverride is None else filenameOverride path = os.path.join(targetDir, filename) ExcelWriter.__init__(self, model, plot_df) InputFile.__init__(self, path, createDataframe) self.filename = path self.targetDir = targetDir self.achempop_df = achempop_df self.achemmax_df = achemmax_df
def __init__(self, fac_id, source_id, pollutant, hapemisPath, output_dir): filename = fac_id + "_dep_compared.xlsx" path = os.path.join(output_dir, filename) ExcelWriter.__init__(self, None, None) self.filename = path self.targetDir = output_dir self.fac_id = fac_id self.source_id = source_id self.pollutant = pollutant self.hapemisPath = hapemisPath self.output_dir = output_dir if not (os.path.exists(self.hapemisPath) or (os.path.exists(self.output_dir) and os.path.isdir(self.output_dir))): raise Exception( "Please specify valid HAP emission and output directory paths." )
def __init__(self, targetDir=None, facilityId=None, model=None, plot_df=None, outerInc=None, filenameOverride=None, createDataframe=False): # Initialization for file reading/writing. If no file name override, use the # default construction. filename = facilityId + "_incidence.xlsx" if filenameOverride is None else filenameOverride path = os.path.join(targetDir, filename) ExcelWriter.__init__(self, model, plot_df) InputFile.__init__(self, path, createDataframe) self.filename = path self.targetDir = targetDir # Local cache for URE values self.riskCache = {} self.outerInc = outerInc
def __init__(self, targetDir, facilityId, model, plot_df): ExcelWriter.__init__(self, model, plot_df) self.filename = os.path.join( targetDir, facilityId + "_overlapping_source_receptors.xlsx")
def __init__(self, targetDir, facilityId, model, plot_df): ExcelWriter.__init__(self, model, plot_df) self.filename = os.path.join(targetDir, facilityId + "_acute_chem_pop.xlsx") self.targetDir = targetDir