Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
mogres committed May 8, 2024
1 parent 36e654d commit 6a12dc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions cellpack/autopack/Analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,10 +777,7 @@ def add_ingredient_positions_to_plot(
)
# plot the sphere
if ingr.use_rbsphere:
(
ext_recipe,
pts,
) = ingr.getInterpolatedSphere(
(ext_recipe, pts,) = ingr.getInterpolatedSphere(
seed_ingredient_positions[-i - 1],
seed_ingredient_positions[-i],
)
Expand Down Expand Up @@ -874,9 +871,9 @@ def update_pairwise_distances(
ingr.name,
ingr2.name,
):
pairwise_distance_dict[seed_index][f"{ingr.name}_{ingr2.name}"] = (
self.env.calc_pairwise_distances(ingr.name, ingr2.name).tolist()
)
pairwise_distance_dict[seed_index][
f"{ingr.name}_{ingr2.name}"
] = self.env.calc_pairwise_distances(ingr.name, ingr2.name).tolist()

return pairwise_distance_dict

Expand Down
4 changes: 2 additions & 2 deletions cellpack/autopack/MeshStore.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ def contains_points_mesh(self, geomname, points):
else:
# chunk the points
for i in range(0, len(points), CHUNK_SIZE):
chunk = points[i: i + CHUNK_SIZE]
inside[i: i + CHUNK_SIZE] = mesh.contains(chunk)
chunk = points[i : i + CHUNK_SIZE]
inside[i : i + CHUNK_SIZE] = mesh.contains(chunk)
return inside
return inside

Expand Down

0 comments on commit 6a12dc8

Please sign in to comment.