Skip to content

Commit

Permalink
our feudal pre-commit lord beckons thee
Browse files Browse the repository at this point in the history
  • Loading branch information
arik-shurygin committed Nov 5, 2024
1 parent b0a20a6 commit a70f93f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dynode/model_odes/seip_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ def compute_ds(strain, immune_state, ds, di_to_w0):

# get all combinations of strain x immune history, jax version of cartesian product
combinations = jnp.stack(
jnp.meshgrid(jnp.arange(p.NUM_STRAINS), jnp.arange(2**p.NUM_STRAINS)),
jnp.meshgrid(
jnp.arange(p.NUM_STRAINS), jnp.arange(2**p.NUM_STRAINS)
),
axis=-1,
).reshape(-1, 2)
# compute vectorized function on all possible immune_hist x exposing strain
Expand Down

0 comments on commit a70f93f

Please sign in to comment.