Skip to content

Commit

Permalink
bring back original get_probability_timestep
Browse files Browse the repository at this point in the history
  • Loading branch information
eagmon committed Oct 30, 2023
1 parent 29d2fe6 commit dbebc1e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tumor_tcell/processes/lymph_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,10 @@ def next_update(self, timestep, states):
else:
# Calculate probability of finding/initializing interaction with dendritic cells
# TODO -- this should depend on dendritic cell being present. Not interacting alone
prob_interaction = probability_of_occurrence_within_interval(
timestep, # (Itano, 2003)
self.parameters['tcell_find_dendritic_time'])
# prob_interaction = get_probability_timestep(
# self.parameters['tcell_find_dendritic_time'],
# 14400, # 14400 6 hours (6*60*60 seconds)
# timestep) # (Itano, 2003)
prob_interaction = get_probability_timestep(
self.parameters['tcell_find_dendritic_time'],
14400, # 14400 6 hours (6*60*60 seconds)
timestep) # (Itano, 2003)
if random.uniform(0, 1) < prob_interaction:
# this t-cell is now interacting
lymph_node_update[cell_id] = {'internal': {'cell_state': 'interacting'}}
Expand Down

0 comments on commit dbebc1e

Please sign in to comment.