Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

District heating #9

Open
lucas-vivier opened this issue Jun 27, 2023 · 0 comments
Open

District heating #9

lucas-vivier opened this issue Jun 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@lucas-vivier
Copy link
Collaborator

In dev_inputs branch:

# initialize DF stock by vintage (baseyear) - detailed fuel level bld_det_age_i <- geo_data %>% select_at(geo_levels) %>% left_join(stock_arch_base) %>% # baseyear results left_join(ct_eneff) %>% left_join(ct_fuel_comb) %>% left_join(shr_fuel_heat_base) %>% left_join(shr_distr_heat) %>% #left_join(shr_acc_cool) %>% mutate(n_units_eneff = stock_arch_base) %>% # assumption: one eneff per period of construction mutate(n_units_fuel = ifelse(fuel_heat == "district_heat", round(n_units_eneff * shr_distr_heat,rnd), # district heating round(n_units_eneff * (1 - shr_distr_heat) * shr_fuel_heat_base,rnd))) %>% # other fuels (decentralized) mutate(n_units_fuel = round(n_units_fuel, rnd)) %>% mutate_cond(mat == "sub", n_units_fuel = n_units_eneff) %>% # sub-standard buildings - one fuel type only select(-c(stock_arch_base, shr_fuel_heat_base, shr_distr_heat, n_units_eneff, mod_decision))
If I understood correctly, condition fuel_heat == "district_heat" is never TRUE because shr_fuel_heat_base variable does not contain this information.

@lucas-vivier lucas-vivier added the bug Something isn't working label Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant