From 1436cc4d2f3823f5313d879a773741efb868ca07 Mon Sep 17 00:00:00 2001 From: Yunli Qi Date: Sat, 25 Nov 2023 14:43:17 +0000 Subject: [PATCH] Prepare for pull requests --- epios/non_responders.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/epios/non_responders.py b/epios/non_responders.py index 3b26d9e..307cf17 100644 --- a/epios/non_responders.py +++ b/epios/non_responders.py @@ -45,13 +45,13 @@ def additional_sample(self, sampling_percentage=0.1, proportion=0.01, threshold= additional_sample[i] = round(0.1 * cap_block[i]) return additional_sample - def new_idea_postprocessing(self, p, pre_result, symptomatic_profile): - non_symp = pd.concat([pre_result[pre_result['Status'] == 'S'], - pre_result[pre_result['Status'] == 'E'], - pre_result[pre_result['Status'] == 'I_asymp']], ignore_index=True) - t = self.data.time - non_symp_rate = symptomatic_profile['S'][t] + symptomatic_profile['E'][t] + symptomatic_profile['I_asymp'][t] - # Assume in symptomatic profile, the values are percentages already - total_C = len(non_symp) / non_symp_rate - if total_C < pre_result.num_respond: - pass + # def new_idea_postprocessing(self, p, pre_result, symptomatic_profile): + # non_symp = pd.concat([pre_result[pre_result['Status'] == 'S'], + # pre_result[pre_result['Status'] == 'E'], + # pre_result[pre_result['Status'] == 'I_asymp']], ignore_index=True) + # t = self.data.time + # non_symp_rate = symptomatic_profile['S'][t] + symptomatic_profile['E'][t] + symptomatic_profile['I_asymp'][t] + # # Assume in symptomatic profile, the values are percentages already + # total_C = len(non_symp) / non_symp_rate + # if total_C < pre_result.num_respond: + # pass