How to use the uwg.uwg function in uwg

To help you get started, we’ve selected a few uwg 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 chriswmackey / Dragonfly / src / DF Run Urban Weather Generator.py View on Github external
def create_uwg(epw_file, end_folder, name):
    start_folder, epw_name = os.path.split(epw_file)
    epw_name = epw_name.replace('.epw', '')
    if end_folder is None:
        end_folder = start_folder + '\\URBAN\\'
    if name is None:
        name = epw_name + '_URBAN.epw'
    if not os.path.isdir(end_folder):
        os.mkdir(end_folder)
    return uwg(epw_name, None, start_folder, None, end_folder, name), end_folder + '\\' + name