From 6ceecb200f87d95eece0651fee589bcb4b916e4d Mon Sep 17 00:00:00 2001 From: Elizabeth Willard <57194659+elizabethwillard@users.noreply.github.com> Date: Tue, 4 Mar 2025 19:26:31 +0000 Subject: [PATCH] called con.close() to free sys resources --- dgen_os/python/financial_functions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dgen_os/python/financial_functions.py b/dgen_os/python/financial_functions.py index e19a2bae..634c4d1d 100644 --- a/dgen_os/python/financial_functions.py +++ b/dgen_os/python/financial_functions.py @@ -280,6 +280,7 @@ def calc_system_size_and_performance(agent, sectors, rate_switch_table=None): norm_scaled_pv_cf_profiles_df = agent_mutation.elec.get_and_apply_normalized_hourly_resource_solar(con, agent) pv['generation_hourly'] = pd.Series(norm_scaled_pv_cf_profiles_df['solar_cf_profile'].iloc[0]) / 1e6 del norm_scaled_pv_cf_profiles_df + con.close() agent.loc['naep'] = float(np.sum(pv['generation_hourly']))