Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

@bbrannon4, You could do it in a few line by retrieving the standard output. This would involve no text manipulation per se and no loops:

stdout = sys.stdout
sys.stdout = six.StringIO()
idf1.printidf()
idf2.printidf()
idfall = sys.stdout.getvalue()
sys.stdout = stdout

@bbrannon4, You you could do it in a few line by retrieving the standard output. This would involve no text manipulation per se and no loops:loops but it is not a full "eppy" solution.

stdout = sys.stdout
sys.stdout = six.StringIO()
idf1.printidf()
idf2.printidf()
idfall = sys.stdout.getvalue()
sys.stdout = stdout

@bbrannon4, you could do it in a few line by retrieving the standard output. This would involve no text manipulation per se and no loops but it is not a full "eppy" solution.

stdout = sys.stdout
sys.stdout = six.StringIO()
idf1.printidf()
idf2.printidf()
idfall idf_all = sys.stdout.getvalue()
sys.stdout = stdout