Skip to content

Improving performance of dynamic characterization#57

Open
TimoDiepers wants to merge 9 commits intobrightway-lca:mainfrom
TimoDiepers:main
Open

Improving performance of dynamic characterization#57
TimoDiepers wants to merge 9 commits intobrightway-lca:mainfrom
TimoDiepers:main

Conversation

@TimoDiepers
Copy link
Member

The current implementation of the dynamic characterization does not scale very well. The main issue is the repeated creation of pd.Series at several points when characterizing of each row of the inventory df.

Instead of handling pd.Series and DataFrames all the time, I switched it to namedtuple. In an example case, this reduced computing time from ~30s to <1s.

I've also noticed that the test for dynamic characterization seem to be incomplete, but some preparation has been done. I can try do add this, so I'll keep this PR as a draft for now.

@TimoDiepers TimoDiepers marked this pull request as ready for review July 19, 2024 07:29
Copilot AI and others added 5 commits October 18, 2025 08:56
Co-authored-by: TimoDiepers <90762029+TimoDiepers@users.noreply.github.com>
Co-authored-by: TimoDiepers <90762029+TimoDiepers@users.noreply.github.com>
…or-traversal

Make graph traversal kwargs flexible for different traversal classes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments