Skip to content

Multiple mutable default argument in dscim.diagnostics.damage_function.damage_function_w_consumption() #19

@brews

Description

@brews

dscim.diagnostics.damage_function.damage_function_w_consumption() has multiple mutable default arguments:

  • years
  • recipes

This is a common gotcha, we might want to refactor this to avoid bugs.

def damage_function_w_consumption(

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions