Skip to content

Add SetModuleValue method - #399

Open
IsakNaslundBh wants to merge 3 commits into
developfrom
LifeCycleAssessment_Toolkit-#398-AddSetModuleValueMethod
Open

IsakNaslundBh wants to merge 3 commits into
developfrom
LifeCycleAssessment_Toolkit-#398-AddSetModuleValueMethod

Conversation

@IsakNaslundBh

Copy link
Copy Markdown
Contributor

Issues addressed by this PR

Closes #398

Adds a method for settign one or more module values to both a dictionary as well as a IEnvironmentalMetric. The method has a boolean that if true (default value) ensures that any of the parts or combinations that could be invalidated by this operation are removed. This is, if A1 is set to a metric/dictionary containing A1toA3, then A1toA3 is removed, given the act of setting the value could (and most likely would) invalidate the value.

This new method is called by ResultingMetricValues. This method previously did the exact thing itself for any precomputed values. By centralising this method we allow for the same mechanism to be used from other places, such as other method calls, but also directly from the UI.

Test files

Unit-tests in test project should cover all edge-cases.

Changelog

Additional comments

@IsakNaslundBh IsakNaslundBh self-assigned this Oct 23, 2026
@IsakNaslundBh IsakNaslundBh added the type:feature New capability or enhancement label Oct 23, 2026
@IsakNaslundBh

Copy link
Copy Markdown
Contributor Author

@BHoMBot check compliance

@bhombot-ci

bhombot-ci Bot commented Oct 23, 2026

Copy link
Copy Markdown

@IsakNaslundBh to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check branch-compliance
  • check dataset-compliance
  • check copyright-compliance

There are 24 requests in the queue ahead of you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature New capability or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add method for setting module value and ensure overlaps are clean

1 participant