How to use the diagrams.s_adu2uncontr1.Usage function in diagrams

To help you get started, we’ve selected a few diagrams examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github santoshphilip / eppy / diagrams / s_adu2uncontr1.py View on Github external
idd = eplus_functions.Idd(commdct, commlst, theidd, block)
        idfw = eplus_functions.IdfWrapper(data, idd)
        print "%s | %s | %s" % (zonename, aduname, uunitname)
        adu2unctr(idfw, zonename, aduname, uunitname)
        data = idfw.idf
        txt = `data`
        open(outfile, 'w').write(txt)
        # #--------------------------
        # fname = "../idffiles/doas2.idf"
        # zonename = "ZN_1_FLR_2_SEC_1"
        # aduname = "ZN_1_FLR_2_SEC_1 ATU"
        # uunitname = "ZN_1_FLR_2_SEC_1 uncontrolled"
        # outname = "../idffiles/doas2_1.idf"
        # #--------------------------

    except Usage, err:
        print >> sys.stderr, sys.argv[0].split("/")[-1] + ": " + str(err.msg)
        print >> sys.stderr, "\t for help use --help"
        return 2
github santoshphilip / eppy / diagrams / s_adu2uncontr1.py View on Github external
def main(argv=None):
    if argv is None:
        argv = sys.argv
    try:
        try:
            opts, args = getopt.getopt(argv[1:], "ho:v", ["help", "output="])
        except getopt.error, msg:
            raise Usage(msg)
    
        # option processing
        for option, value in opts:
            if option == "-v":
                verbose = True
            if option in ("-h", "--help"):
                raise Usage(help_message)
            if option in ("-o", "--output"):
                output = value

        infile, zonename, aduname, uunitname, outfile = args
        iddfile = "../iddfiles/Energy+V6_0.idd"
        block,commlst,commdct=parse_idd.extractidddata(iddfile)
        theidd=eplusdata.idd(block,2)
        data, commdct = readidf.readdatacommdct(infile, iddfile=theidd,
                                    commdct=commdct)
        idd = eplus_functions.Idd(commdct, commlst, theidd, block)
        idfw = eplus_functions.IdfWrapper(data, idd)
        print "%s | %s | %s" % (zonename, aduname, uunitname)
        adu2unctr(idfw, zonename, aduname, uunitname)
        data = idfw.idf
        txt = `data`
        open(outfile, 'w').write(txt)
github santoshphilip / eppy / diagrams / s_adu2uncontr1.py View on Github external
def main(argv=None):
    if argv is None:
        argv = sys.argv
    try:
        try:
            opts, args = getopt.getopt(argv[1:], "ho:v", ["help", "output="])
        except getopt.error, msg:
            raise Usage(msg)
    
        # option processing
        for option, value in opts:
            if option == "-v":
                verbose = True
            if option in ("-h", "--help"):
                raise Usage(help_message)
            if option in ("-o", "--output"):
                output = value

        infile, zonename, aduname, uunitname, outfile = args
        iddfile = "../iddfiles/Energy+V6_0.idd"
        block,commlst,commdct=parse_idd.extractidddata(iddfile)
        theidd=eplusdata.idd(block,2)
        data, commdct = readidf.readdatacommdct(infile, iddfile=theidd,
                                    commdct=commdct)