Skip to content

Commit

Permalink
lint: fixing line-too-long
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasCowie committed Sep 24, 2024
1 parent 7d473c4 commit 7786195
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/mcmc_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def main():
dgf=(
ind_prior_from_truth(true_parameters.dgf, 0.1)[0],
jnp.diag(
jnp.square(ind_prior_from_truth(true_parameters.dgf, 0.1)[1])
jnp.square(ind_prior_from_truth(true_parameters.dgf, 0.1)[1])
),
),
log_km=ind_prior_from_truth(true_parameters.log_km, 0.1),
Expand Down
3 changes: 1 addition & 2 deletions tests/test_lp_grad.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,11 @@ def test_lp_grad():
p: {
c: float(getattr(pldf_grad, p)[i])
for i, c in enumerate(model.coords[model.dims[p][0]])
}
}
for p in model.dims.keys()
}
with open(methionine_pldf_grad_file, "r") as file:
saved_pldf_grad = file.read()

true_gradient = json.loads(saved_pldf_grad)
assert index_pldf_grad == true_gradient

0 comments on commit 7786195

Please sign in to comment.