honeybee_doe2.reader module

Methods to read inp files to Honeybee.

honeybee_doe2.reader.command_dict_from_inp(inp_file_contents)[source]

Get a dictionary of INP commands and U-names from a INP file content string.

Parameters:

inp_file_contents – A text string of the complete contents of an INP file.

Returns:

A dictionary with all the DOE-2 attributes for each object converting keyword values to float when possible plus a “__line__” indicating its sequence in the file to be used to solve child/parent relationships {command: {u_name: {key: value, “__line__”: line_number}}}

honeybee_doe2.reader.model_from_inp(inp_file_contents, lib_file_path=None)[source]

Convert an inp file to an HBJSON Model object

Parameters:
  • inp_file_contents – A text string of the complete contents of an INP file.

  • lib_file_path – Optional path to eQUEST library file (eQ_Lib.dat) for resolving library schedules.

Returns:

A honeybee Model object.

honeybee_doe2.reader.model_from_inp_file(inp_file, lib_file_path=None)[source]

Convert an inp file to an HBJSON Model object

Parameters:
  • inp_file – A text string for the path to an INP file.

  • lib_file_path – Optional path to eQUEST library file (eQ_Lib.dat) for resolving library schedules.

Returns:

A honeybee Model object.