Skip to content

Commit

Permalink
Prepare for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
YunliQi committed Nov 25, 2023
1 parent 6d3e55a commit 1436cc4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions epios/non_responders.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1436cc4

Please sign in to comment.