Skip to content

Commit

Permalink
update: all_became_inconsistent to all_became_not_consistent!
Browse files Browse the repository at this point in the history
  • Loading branch information
amindadgar committed Oct 17, 2023
1 parent 39254e1 commit a02de73
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 19 deletions.
8 changes: 4 additions & 4 deletions tc_core_analyzer_lib/assess_engagement.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def compute(
all_inconsistent,
all_new_consistent,
all_new_vital,
all_became_inconsistent,
all_became_not_consistent,
all_became_unvital,
):
"""
Expand Down Expand Up @@ -289,7 +289,7 @@ def compute(
all_new_vital[str(w_i)] = (
all_vital[str(w_i)] - all_vital[str(w_i - WINDOW_D)]
)
all_became_inconsistent[str(w_i)] = (
all_became_not_consistent[str(w_i)] = (
all_consistent[str(w_i - WINDOW_D)] - all_consistent[str(w_i)]
)
all_became_unvital[str(w_i)] = (
Expand All @@ -298,7 +298,7 @@ def compute(
else:
all_new_consistent[str(w_i)] = set()
all_new_vital[str(w_i)] = set()
all_became_inconsistent[str(w_i)] = set()
all_became_not_consistent[str(w_i)] = set()
all_became_unvital[str(w_i)] = set()

return (
Expand Down Expand Up @@ -326,6 +326,6 @@ def compute(
all_inconsistent,
all_new_consistent,
all_new_vital,
all_became_inconsistent,
all_became_not_consistent,
all_became_unvital,
)
4 changes: 2 additions & 2 deletions tc_core_analyzer_lib/tests/integration/test_active_members.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_no_active():
"all_inconsistent": {},
"all_new_consistent": {},
"all_new_vital": {},
"all_became_inconsistent": {},
"all_became_not_consistent": {},
"all_became_unvital": {},
}

Expand Down Expand Up @@ -168,7 +168,7 @@ def test_single_active():
"all_inconsistent": {},
"all_new_consistent": {},
"all_new_vital": {},
"all_became_inconsistent": {},
"all_became_not_consistent": {},
"all_became_unvital": {},
}
# time window
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def test_all_active_fourteen_period():
"all_inconsistent": {},
"all_new_consistent": {},
"all_new_vital": {},
"all_became_inconsistent": {},
"all_became_not_consistent": {},
"all_became_unvital": {},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_two_consistently_active():
"all_inconsistent": {},
"all_new_consistent": {},
"all_new_vital": {},
"all_became_inconsistent": {},
"all_became_not_consistent": {},
"all_became_unvital": {},
}
memberactivities = activity_dict.keys()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_disengaged_members():
"all_inconsistent": {},
"all_new_consistent": {},
"all_new_vital": {},
"all_became_inconsistent": {},
"all_became_not_consistent": {},
"all_became_unvital": {},
}
memberactivities = activity_dict.keys()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_disengaged_were_consistent():
"all_inconsistent": {},
"all_new_consistent": {},
"all_new_vital": {},
"all_became_inconsistent": {},
"all_became_not_consistent": {},
"all_became_unvital": {},
}
memberactivities = activity_dict.keys()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_disengaged_newly_active():
"all_inconsistent": {},
"all_new_consistent": {},
"all_new_vital": {},
"all_became_inconsistent": {},
"all_became_not_consistent": {},
"all_became_unvital": {},
}
memberactivities = activity_dict.keys()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_disengaged_were_vital():
"all_inconsistent": {},
"all_new_consistent": {},
"all_new_vital": {},
"all_became_inconsistent": {},
"all_became_not_consistent": {},
"all_became_unvital": {},
}
memberactivities = activity_dict.keys()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def test_mention_active_members_from_int_matrix():
"all_inconsistent": {},
"all_new_consistent": {},
"all_new_vital": {},
"all_became_inconsistent": {},
"all_became_not_consistent": {},
"all_became_unvital": {},
}
memberactivities = activity_dict.keys()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_newly_active_continuous_period():
"all_inconsistent": {},
"all_new_consistent": {},
"all_new_vital": {},
"all_became_inconsistent": {},
"all_became_not_consistent": {},
"all_became_unvital": {},
}
memberactivities = activity_dict.keys()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_newly_active_discontinued_period():
"all_inconsistent": {},
"all_new_consistent": {},
"all_new_vital": {},
"all_became_inconsistent": {},
"all_became_not_consistent": {},
"all_became_unvital": {},
}
memberactivities = activity_dict.keys()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_two_consistently_active_non():
"all_inconsistent": {},
"all_new_consistent": {},
"all_new_vital": {},
"all_became_inconsistent": {},
"all_became_not_consistent": {},
"all_became_unvital": {},
}
memberactivities = activity_dict.keys()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_two_consistently_active_partially():
"all_inconsistent": {},
"all_new_consistent": {},
"all_new_vital": {},
"all_became_inconsistent": {},
"all_became_not_consistent": {},
"all_became_unvital": {},
}
memberactivities = activity_dict.keys()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_still_active_members():
"all_inconsistent": {},
"all_new_consistent": {},
"all_new_vital": {},
"all_became_inconsistent": {},
"all_became_not_consistent": {},
"all_became_unvital": {},
}
memberactivities = activity_dict.keys()
Expand Down
2 changes: 1 addition & 1 deletion tc_core_analyzer_lib/tests/integration/test_vital.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_one_vital():
"all_inconsistent": {},
"all_new_consistent": {},
"all_new_vital": {},
"all_became_inconsistent": {},
"all_became_not_consistent": {},
"all_became_unvital": {},
}
memberactivites = activity_dict.keys()
Expand Down

0 comments on commit a02de73

Please sign in to comment.