Skip to content

Improve the ecological analysis method #86

@mzy2240

Description

@mzy2240
  1. Reduce the number of conditions by using formatted string

e.g.

if target == 'MW':
    flow = gen.loc[i, 'GenMW']

can be optimized into

flow = gen.loc[i, f"Gen{target}"]
  1. When computing the EFM, compute the line flow and the loss induced EFM together

  2. Use loc instead of column + index to access cells for better readiness and performance

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions