From 8362280e1fc0731feec69d4d0b5ccf0f6e48a1aa Mon Sep 17 00:00:00 2001 From: Daniel Muldrew Date: Thu, 30 Apr 2020 23:20:39 -0700 Subject: [PATCH] refactor: change warnings to print statements --- powersimdata/design/clean_capacity_scaling.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/powersimdata/design/clean_capacity_scaling.py b/powersimdata/design/clean_capacity_scaling.py index 2d7251c6e..7ffd850b7 100644 --- a/powersimdata/design/clean_capacity_scaling.py +++ b/powersimdata/design/clean_capacity_scaling.py @@ -4,7 +4,6 @@ import json import os import pickle -import warnings from collections import defaultdict from abc import ABC, abstractmethod @@ -164,10 +163,9 @@ def create_scale_factor_table(self, base_grid=None, gen_capacity=None): print('No loadzone %s in grid!' % load_zone) continue if base_target_resource_cap <= 0: - warnings.warn( - f"Base grid capacity is zero for load zone " - f"{load_zone} and resource {res} and cannot be " - f"scaled!") + print('Base grid capacity is zero for load zone {0} ' + 'and resource {1} and cannot be ' + 'scaled!'.format(load_zone, res)) else: scale_factor = row[res] / base_target_resource_cap if abs(scale_factor - 1.0) > 0.001: