code
stringlengths
3
6.57k
get_param_count(self)
len(self.params_to_site)
get_param_starts(self)
len(run_periods)
self.get_param_count()
len(self.run_periods)
if (self.config['start_min_param'] == 1e20)
numpy.ones((period_count, param_count)
tolist()
if (self.config['start_max_param'] == 1e20)
numpy.ones((period_count, param_count)
tolist()
update_state_new_period_list(self, state_handle, period, new_capacity)
int(site_index)
int(decomm_date)
append(new_entry)
update_state_new_period_params(self, state_handle, period, new_params)
int(curr_conf['lifetime_yrs'] - curr_conf['time_period_yrs'] + period)
numpy.array(new_params)
clip(0)
in (numpy.nonzero(new_cap)
append(new_entry)
calculate_update_decommission(self, state_handle)
cap_list.iteritems()
if (tup[2] == period)
len(decomm)
sites.append(site)
sum([tup[0] for tup in decomm])
decommissioned.append(decom_cap)
cost.append(this_cost)
not (tup[2] == period)
len(new_list)
fully_decommissioned.append(site)
zip(sites, decommissioned, cost)
calculate_new_capacity_cost(self, state_handle)
cap_list.iteritems()
sites.append(site)
new_capacity.append(new_cap)
cost.append(this_cost)
zip(sites, new_capacity, cost)
calculate_capital_cost_site(self, site_data, period, site)
of (capacity, build, decom)
if (tup[1] == period)
sum(new_cap_list)
len(new_cap_list)
len(site_data[0])
len(site_data[1])
get_capacity(self, state_handle)
self.get_site_indices(state_handle)
capacity.append(sum([tup[0] for tup in cap_list[site]])
get_site_indices(self, state_handle)
keys()
site_indices.sort()
self.update_state_new_period_params(state_handle, period, new_params)
self.get_site_indices(state_handle)
self.calculate_new_capacity_cost(state_handle)
self.calculate_outputs_and_costs(state_handle, supply_request)
self.get_capacity(state_handle)
numpy.sum(supply_list, axis=0)
numpy.sum(variable_cost_list, axis=0)
numpy.sum(carbon_emissions_list, axis=0)
self.calculate_update_decommission(state_handle)
numpy.sum(supply)
self.get_simple_desc_string(results, state_handle)
self.update_state_new_period_params(state_handle, period, new_params)
self.get_site_indices(state_handle)
self.get_capacity(state_handle)
self.calculate_new_capacity_cost(state_handle)
self.calculate_outputs_and_costs(state_handle, supply_request, max_supply, price)
self.calculate_update_decommissioning(state_handle)
self.get_full_desc_string(results, state_handle)
recalculate_time_period_full(self, state_handle, results, supply_request, max_supply=[], price=[], make_string=False)
self.calculate_outputs_and_costs(state_handle, supply_request, max_supply, price)
self.get_full_desc_string(results, state_handle)
calculate_costs_from_schedule_and_finalise(self, state_handle, schedule, make_string=False)
self.get_site_indices(state_handle)
self.get_capacity(state_handle)
self.calculate_new_capacity_cost(state_handle)
self.calculate_variable_costs(state_handle, site_indices, schedule)
self.calculate_update_decommission(state_handle)
self.get_full_desc_string(results, state_handle)
Variable(CatalogEntity)
filters (categories, countries, etc.)
Dataset.get('mbi_retail_turn_705247a')
Variable.get('RT_CI_95050c10')
index (country eq.100)
get_variable_repo()
datasets(self)
get_dataset_repo()
get_all({VARIABLE_FILTER: self.id})
name(self)
description(self)
column_name(self)
db_type(self)
dataset(self)
agg_method(self)
variable_group(self)
summary(self)
project_name(self)
self.id.split('.')