Code

Analysis Definition

Parser for analysis definition JSON files.

class rom.analysis_definition.analysis_definition.AnalysisDefinition(definition_file)[source]

Bases: object

Pass in a definition file and a weather file to generate distributions of models

as_dataframe()[source]

Return the dataframe with all the data needed to run the analysis defined in the json file.

Note that the first field in the analysis definition json file must be a value or an EPW.

Returns

pandas dataframe

load_files(definition_file)[source]
load_weather_file(weather_file)[source]

Load in the weather file and convert the field names to what is expected in the JSON file :return:

EPW File

Process an EPW file

class rom.analysis_definition.epw_file.EpwFile(filepath)[source]

Bases: object

as_dataframe()[source]

Return the EPW file as a dataframe. This drops the data_source column for brevity.

Returns

pandas DataFrame

post_process_data()[source]

Add in derived columns

Returns