Skip to content

Commit

Permalink
removed prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Eggimann committed Dec 12, 2018
1 parent d74f21e commit 6d7b59d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
7 changes: 5 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ University of Oxford <http://www.eci.ox.ac.uk>`_ within the
EPSRC sponsored MISTRAL programme, as part of the `Infrastructure Transition
Research Consortium <http://www.itrc.org.uk/>`_.

More information on the model can be found in Eggimann, Hall and Eyre (2018). Please use
this reference for citing HIRE.
More information on the model can be found in:

Eggimann, Hall and Eyre (2018): A high-resolution spatio-temporal energy demand
simulation to explore the potential of heating demand side management
with large-scale heat pump diffusion. Applied Energy. LINK

1. Download input data
=============================================
Expand Down
22 changes: 11 additions & 11 deletions energy_demand/enduse_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def __init__(
self.fuel_yh = 0
self.enduse_techs = []
else:
print("------INFO {} {} {} {}".format(self.enduse, sector, region, curr_yr))
print("FUEL TRAIN A0: " + str(np.sum(self.fuel_y)))
#print("------INFO {} {} {} {}".format(self.enduse, sector, region, curr_yr))
#print("FUEL TRAIN A0: " + str(np.sum(self.fuel_y)))

if curr_yr > 2015:
print("tt")
Expand All @@ -143,7 +143,7 @@ def __init__(
assumptions.ss_enduse_space_cooling,
f_weather_correction)
self.fuel_y = _fuel_new_y
print("FUEL TRAIN B0: " + str(np.sum(self.fuel_y)))
#print("FUEL TRAIN B0: " + str(np.sum(self.fuel_y)))

_fuel_new_y = apply_smart_metering(
enduse,
Expand All @@ -152,7 +152,7 @@ def __init__(
strategy_vars,
curr_yr)
self.fuel_y = _fuel_new_y
print("FUEL TRAIN C0: " + str(np.sum(self.fuel_y)))
#print("FUEL TRAIN C0: " + str(np.sum(self.fuel_y)))

_fuel_new_y = generic_demand_change(
enduse,
Expand All @@ -161,7 +161,7 @@ def __init__(
strategy_vars['generic_enduse_change'],
curr_yr)
self.fuel_y = _fuel_new_y
print("FUEL TRAIN D0: " + str(np.sum(self.fuel_y)))
#print("FUEL TRAIN D0: " + str(np.sum(self.fuel_y)))

_fuel_new_y = apply_scenario_drivers(
enduse=enduse,
Expand All @@ -176,7 +176,7 @@ def __init__(
base_yr=base_yr,
curr_yr=curr_yr)
self.fuel_y = _fuel_new_y
print("FUEL TRAIN E0: " + str(np.sum(self.fuel_y)))
#print("FUEL TRAIN E0: " + str(np.sum(self.fuel_y)))

# Apply cooling scenario variable
_fuel_new_y = apply_cooling(
Expand All @@ -186,7 +186,7 @@ def __init__(
assumptions.cooled_ss_floorarea_by,
curr_yr)
self.fuel_y = _fuel_new_y
print("FUEL TRAIN E1: " + str(np.sum(self.fuel_y)))
#print("FUEL TRAIN E1: " + str(np.sum(self.fuel_y)))

# Industry related change
_fuel_new_y = industry_enduse_changes(
Expand All @@ -197,7 +197,7 @@ def __init__(
self.fuel_y,
assumptions)
self.fuel_y = _fuel_new_y
print("FUEL TRAIN E2: " + str(np.sum(self.fuel_y)))
#print("FUEL TRAIN E2: " + str(np.sum(self.fuel_y)))

# Generic fuel switch of an enduse and sector
_fuel_new_y = generic_fuel_switch(
Expand All @@ -207,7 +207,7 @@ def __init__(
strategy_vars['generic_fuel_switch'],
self.fuel_y)
self.fuel_y = _fuel_new_y
print("FUEL TRAIN E3: " + str(np.sum(self.fuel_y)))
#print("FUEL TRAIN E3: " + str(np.sum(self.fuel_y)))
# ----------------------------------
# Hourly Disaggregation
# ----------------------------------
Expand All @@ -225,7 +225,7 @@ def __init__(
self.fuel_y,
make_all_flat=make_all_flat)

print("FUEL TRAIN X " + str(np.sum(fuel_yh)))
#print("FUEL TRAIN X " + str(np.sum(fuel_yh)))
# Demand management for non-technology enduse
self.fuel_yh = demand_management(
enduse,
Expand All @@ -234,7 +234,7 @@ def __init__(
fuel_yh,
mode_constrained=False,
make_all_flat=make_all_flat)
print("FUEL TRAIN Y" + str(np.sum(fuel_yh)))
#print("FUEL TRAIN Y" + str(np.sum(fuel_yh)))
else:
#If technologies are defined for an enduse

Expand Down
1 change: 0 additions & 1 deletion tests/assumptions/test_base_assumptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from energy_demand.assumptions import general_assumptions
from energy_demand.read_write import data_loader
from pkg_resources import resource_filename
from pkg_resources import Requirement

'''def test_load_non_param_assump():
"""
Expand Down

0 comments on commit 6d7b59d

Please sign in to comment.