Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cellpack/autopack/Analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

@author: ludo
"""

import concurrent.futures
import json
import logging
Expand Down
1 change: 1 addition & 0 deletions cellpack/autopack/BaseGrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
###############################################################################
@author: Ludovic Autin, Graham Johnson, & Michel Sanner
"""

import logging
import numpy
from scipy import spatial
Expand Down
1 change: 1 addition & 0 deletions cellpack/autopack/GeometryTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
http://crowsandcats.blogspot.com/2013/04/cube-sphere-intersection-volume.html
Copyright © Andrew White
"""

import math
import numpy as np

Expand Down
1 change: 1 addition & 0 deletions cellpack/autopack/IOutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

@author: Ludovic Autin
"""

import json
import os
import pickle
Expand Down
4 changes: 2 additions & 2 deletions cellpack/autopack/MeshStore.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,15 +281,15 @@ def get_smallest_radius(self, geomname, center):
mesh = self.get_object(geomname)
if mesh is not None:
query = trimesh.proximity.ProximityQuery(mesh)
(_, distance, _) = query.on_surface([center])
_, distance, _ = query.on_surface([center])
return distance[0]
return 1.0

def get_normal(self, geomname, point_pos):
mesh = self.get_object(geomname)
if mesh is not None:
query = trimesh.proximity.ProximityQuery(mesh)
(distance, triangle_ids) = query.vertex([point_pos])
distance, triangle_ids = query.vertex([point_pos])
triangle_id = triangle_ids[0]
return mesh.vertex_normals[triangle_id]

Expand Down
2 changes: 1 addition & 1 deletion cellpack/autopack/Serializable.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

@author: ludo
"""

# serializabl;e class for auopack recipe
import json


# toDO class Assambly for nesting of protein quaternary structure.
# class sAssambly
# static_id=0
Expand Down
1 change: 1 addition & 0 deletions cellpack/autopack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
AF
@author: Ludovic Autin with editing by Graham Johnson
"""

import getpass
import json
import logging
Expand Down
4 changes: 2 additions & 2 deletions cellpack/autopack/ingredient/Ingredient.py
Original file line number Diff line number Diff line change
Expand Up @@ -1619,10 +1619,10 @@ def attempt_to_pack_at_grid_location(
# TODO: make this work for ingredients other than single spheres

success = True
(jtrans, rotMatj) = self.get_new_jitter_location_and_rotation(
jtrans, rotMatj = self.get_new_jitter_location_and_rotation(
env, target_grid_point_position, rotation_matrix
)
(insidePoints, newDistPoints) = self.pack_at_grid_pt_location(
insidePoints, newDistPoints = self.pack_at_grid_pt_location(
env,
jtrans,
rotMatj,
Expand Down
1 change: 1 addition & 0 deletions cellpack/autopack/interface_objects/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
"""Interface classes for cellpack. These are to establish data structures."""

from .default_values import ( # noqa: F401
default_recipe_values,
)
Expand Down
1 change: 1 addition & 0 deletions cellpack/autopack/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@
True

"""

from __future__ import division, print_function


Expand Down
1 change: 1 addition & 0 deletions cellpack/autopack/upy/hostHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
You should have received a copy of the GNU General Public License
along with upy. If not, see <http://www.gnu.org/licenses/gpl-3.0.html>.
"""

import math
import os
import random
Expand Down
1 change: 0 additions & 1 deletion cellpack/autopack/writers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

"""Write out data for cellpack."""


import json
import os
from collections import OrderedDict
Expand Down
1 change: 1 addition & 0 deletions cellpack/tests/archive/test_gradient_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Docs: https://docs.pytest.org/en/latest/example/simple.html
https://docs.pytest.org/en/latest/plugins.html#requiring-loading-plugins-in-a-test-module-or-conftest-file
"""

import pytest
from cellpack.autopack.interface_objects.archive.gradient_data import GradientData

Expand Down
1 change: 1 addition & 0 deletions cellpack/tests/test_partners.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Docs: https://docs.pytest.org/en/latest/
https://docs.pytest.org/en/latest/goodpractices.html#conventions-for-python-test-discovery
"""

import pytest
from cellpack.autopack.ingredient.agent import Agent
from cellpack.autopack.interface_objects import Partners
Expand Down
1 change: 1 addition & 0 deletions cellpack/tests/test_recipe_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Docs: https://docs.pytest.org/en/latest/example/simple.html
https://docs.pytest.org/en/latest/plugins.html#requiring-loading-plugins-in-a-test-module-or-conftest-file
"""

import pytest
from cellpack.autopack.loaders.recipe_loader import RecipeLoader

Expand Down
1 change: 1 addition & 0 deletions cellpack/tests/test_recipe_version_migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Docs: https://docs.pytest.org/en/latest/example/simple.html
https://docs.pytest.org/en/latest/plugins.html#requiring-loading-plugins-in-a-test-module-or-conftest-file
"""

from math import pi
from unittest.mock import MagicMock
import pytest
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ source-exclude = [
]

[tool.black]
target-version = ["py311"]
line-length = 88

[tool.isort]
Expand Down
1,492 changes: 743 additions & 749 deletions uv.lock

Large diffs are not rendered by default.

Loading