eppy.EPlusInterfaceFunctions package¶
Submodules¶
eppy.EPlusInterfaceFunctions.eplusdata module¶
Legacy code from EPlusInterface
-
class
eppy.EPlusInterfaceFunctions.eplusdata.
Eplusdata
(dictfile=None, fname=None)[source]¶ Bases:
object
-
add2node
(othereplus, node)[source]¶ add the node here with the node from othereplus this will potentially have duplicates
-
addinnode
(otherplus, node, objectname)[source]¶ add an item to the node. example: add a new zone to the element ‘ZONE’
-
eppy.EPlusInterfaceFunctions.iddgroups module¶
extract the groups from the iddfile
-
eppy.EPlusInterfaceFunctions.iddgroups.
commdct2grouplist
(gcommdct)[source]¶ extract embedded group data from commdct. return gdict -> {g1:[obj1, obj2, obj3], g2:[obj4, ..]}
-
eppy.EPlusInterfaceFunctions.iddgroups.
group2commdct
(commdct, glist)[source]¶ add group info tocomdct
-
eppy.EPlusInterfaceFunctions.iddgroups.
group2commlst
(commlst, glist)[source]¶ add group info to commlst
-
eppy.EPlusInterfaceFunctions.iddgroups.
iddtxt2grouplist
(txt)[source]¶ return a list of group names the list in the same order as the idf objects in idd file
eppy.EPlusInterfaceFunctions.iddindex module¶
module for idd_index data structure and functions to work with it - idd_index indexes idd_info so that it is easy to search through it. - idd_info is the datastructure that holds the info in the Energy+.idd file
-
eppy.EPlusInterfaceFunctions.iddindex.
makename2refdct
(commdct)[source]¶ make the name2refs dict in the idd_index
eppy.EPlusInterfaceFunctions.mylib1 module¶
Legacy code from EPlusInterface
eppy.EPlusInterfaceFunctions.mylib2 module¶
leagacy code from EPlusInterface
-
eppy.EPlusInterfaceFunctions.mylib2.
fsliceafter
(astr, sub)[source]¶ Return the slice after at sub in string astr
-
eppy.EPlusInterfaceFunctions.mylib2.
fslicebefore
(astr, sub)[source]¶ Return the slice starting at sub in string astr
-
eppy.EPlusInterfaceFunctions.mylib2.
getoneblock
(astr, start, end)[source]¶ get the block bounded by start and end doesn’t work for multiple blocks
-
eppy.EPlusInterfaceFunctions.mylib2.
myreplace
(astr, thefind, thereplace)[source]¶ in string astr replace all occurences of thefind with thereplace
-
eppy.EPlusInterfaceFunctions.mylib2.
pickledump
(theobject, fname)[source]¶ same as pickle.dump(theobject, fhandle).takes filename as parameter
eppy.EPlusInterfaceFunctions.parse_idd module¶
legacy code from EPlusInterface
-
eppy.EPlusInterfaceFunctions.parse_idd.
extractidddata
(fname, debug=False)[source]¶ extracts all the needed information out of the idd file if debug is True, it generates a series of text files. Each text file is incrementally different. You can do a diff see what the change is - this code is from 2004. it works. I am trying not to change it (until I rewrite the whole thing) to add functionality to it, I am using decorators So if Does not integrate group data into the results (@embedgroupdata does it) Does not integrate iddindex into the results (@make_idd_index does it)
-
eppy.EPlusInterfaceFunctions.parse_idd.
get_nocom_vars
(astr)[source]¶ input ‘astr’ which is the Energy+.idd file as a string returns (st1, st2, lss) st1 = with all the ! comments striped st2 = strips all comments - both the ‘!’ and ‘’ lss = nested list of all the variables in Energy+.idd file
-
eppy.EPlusInterfaceFunctions.parse_idd.
getobjectref
(blocklst, commdct)[source]¶ makes a dictionary of object-lists each item in the dictionary points to a list of tuples the tuple is (objectname, fieldindex)
eppy.EPlusInterfaceFunctions.readidf module¶
just read the idf file
-
eppy.EPlusInterfaceFunctions.readidf.
readdatacommdct
(idfname, iddfile='Energy+.idd', commdct=None)[source]¶ read the idf file
eppy.EPlusInterfaceFunctions.structures module¶
Implements a case-insensitive dict, based on https://stackoverflow.com/a/32888599/1706564
-
class
eppy.EPlusInterfaceFunctions.structures.
CaseInsensitiveDict
(*args, **kwargs)[source]¶ Bases:
dict
-
get
(key, *args, **kwargs)[source]¶ Return the value for key if key is in the dictionary, else default.
-
pop
(k[, d]) → v, remove specified key and return the corresponding value.[source]¶ If key is not found, d is returned if given, otherwise KeyError is raised
-