From 6a12dc8c8cd17965f95fff68d423b15f9ca3a30f Mon Sep 17 00:00:00 2001 From: Saurabh Mogre Date: Wed, 8 May 2024 13:57:34 -0700 Subject: [PATCH] format --- cellpack/autopack/Analysis.py | 11 ++++------- cellpack/autopack/MeshStore.py | 4 ++-- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/cellpack/autopack/Analysis.py b/cellpack/autopack/Analysis.py index f72d4f25..0b5b22bf 100644 --- a/cellpack/autopack/Analysis.py +++ b/cellpack/autopack/Analysis.py @@ -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], ) @@ -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 diff --git a/cellpack/autopack/MeshStore.py b/cellpack/autopack/MeshStore.py index 781770e4..17b549f4 100644 --- a/cellpack/autopack/MeshStore.py +++ b/cellpack/autopack/MeshStore.py @@ -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