コード例 #1
0
ファイル: FacilityMaxRiskandHI.py プロジェクト: USEPA/HEM4
    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
コード例 #2
0
    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
コード例 #3
0
    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
コード例 #4
0
ファイル: FacilityTOSHIExp.py プロジェクト: USEPA/HEM4
    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
コード例 #5
0
    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
コード例 #6
0
    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
コード例 #7
0
ファイル: Hem3AcuteBreakdown.py プロジェクト: USEPA/HEM4
    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
コード例 #8
0
    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."
            )
コード例 #9
0
ファイル: Incidence.py プロジェクト: USEPA/HEM4
    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
コード例 #10
0
    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")
コード例 #11
0
    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