From 36e654db0d312334c38b8ab8bebd6bc47439b653 Mon Sep 17 00:00:00 2001 From: Saurabh Mogre Date: Wed, 8 May 2024 13:57:17 -0700 Subject: [PATCH] move imports to the top --- cellpack/autopack/utils.py | 46 ++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/cellpack/autopack/utils.py b/cellpack/autopack/utils.py index a9cca11e..5d86a9e5 100644 --- a/cellpack/autopack/utils.py +++ b/cellpack/autopack/utils.py @@ -1,8 +1,30 @@ import collections import copy +import csv +import json +import math +import os import pickle import numpy +import numpy as np +import pandas as pd +import seaborn as sns +import trimesh +from matplotlib import pyplot as plt +from matplotlib.patches import Circle, Patch +from PIL import Image +from scipy import stats +from scipy.cluster import hierarchy +from scipy.spatial import distance +from sklearn.metrics import matthews_corrcoef +from tqdm import tqdm + +import cellpack.autopack as autopack +from cellpack.autopack.GeometryTools import Rectangle +from cellpack.autopack.MeshStore import MeshStore +from cellpack.autopack.upy import colors as col +from cellpack.autopack.upy.colors import map_colors def get_distance(pt1, pt2): @@ -290,30 +312,6 @@ def get_seed_list(packing_config_data, recipe_data): @author: ludo """ -import csv -import json -import math -import os - -import numpy as np -import pandas as pd -import seaborn as sns -import trimesh -from matplotlib import pyplot as plt -from matplotlib.patches import Circle, Patch -from PIL import Image -from scipy import stats -from scipy.cluster import hierarchy -from scipy.spatial import distance -from sklearn.metrics import matthews_corrcoef -from tqdm import tqdm - -import cellpack.autopack as autopack -from cellpack.autopack.GeometryTools import Rectangle -from cellpack.autopack.MeshStore import MeshStore -from cellpack.autopack.upy import colors as col -from cellpack.autopack.upy.colors import map_colors - def get_xyz_dict_from_all_pos_dict(all_pos_dict): """