Skip to content

Psycopg2 connection not closed during calc_system_size_and_performance function call #56

@elizabethwillard

Description

@elizabethwillard

Issue overview

Within the financial_functions.py file, there is a function def calc_system_size_and_performance(agent, sectors, rate_switch_table=None) which initializes a psycopg2 connection object in order to query normalized load profiles and agent load profiles. For each chunk processed, this function is called, meaning that these psycopg2 connections remain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions