Skip to content

Commit 3c18807

Browse files
committed
Add extra mask for updated individual measure
1 parent cf69d2a commit 3c18807

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scout/ecm_prep.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14684,12 +14684,15 @@ def main(opts: argparse.NameSpace): # noqa: F821
1468414684
m_exist[0]["pkg_env_costs"] is False)
1468514685
exst_pkg_env_mask_2 = (opts is None or opts.pkg_env_costs is False and
1468614686
m_exist[0]["pkg_env_costs"] is not False)
14687+
updated_contrib_mask = any(
14688+
contrib in meas_toprep_indiv_nopkg for contrib in m["contributing_ECMs"]
14689+
)
1468714690

1468814691
# Check for conditions that would indicate a package needs to be processed
1468914692
# (condition a and previously inspected conditions b, c, and d)
1469014693
if len(m_exist) == 0 or name_mask or \
1469114694
((exst_ecms_mask or exst_engy_save_mask or exst_cost_red_mask) or
14692-
(exst_pkg_env_mask_1 or exst_pkg_env_mask_2)):
14695+
(exst_pkg_env_mask_1 or exst_pkg_env_mask_2 or updated_contrib_mask)):
1469314696

1469414697
meas_toprep_package.append(m)
1469514698
# Add contributing ECMs to those needing updates

0 commit comments

Comments
 (0)