Skip to content

Feature/Add JAX-accelerated interaction fingerprinting - #353

Open
Peter-obi wants to merge 6 commits into
chemosim-lab:masterfrom
Peter-obi:feature/jax-acceleration
Open

Feature/Add JAX-accelerated interaction fingerprinting#353
Peter-obi wants to merge 6 commits into
chemosim-lab:masterfrom
Peter-obi:feature/jax-acceleration

Conversation

@Peter-obi

Copy link
Copy Markdown

This adds a JAX-backed path for computing ProLIF interaction fingerprints over single frames and MDAnalysis trajectories.

The main goal is to speed up repeated frame/residue interaction checks by using JAX batching and JIT compilation, while keeping the results easy to compare with the existing Fingerprint.run() workflow. In my own trajectory workloads, this has been a large practical speedup on CPU after the initial JIT compile.

The new code lives under prolif.interactions._jax for now, so it is available for testing and iteration without changing the default ProLIF API.

What's different:

  • Added JAX batched geometry primitives and frame-level interaction evaluation
  • Added high-level analyze_frame and analyze_trajectory helpers
  • Added residue scanning across trajectories so contacts are not limited to the first frame
  • Added parity tests against the existing ProLIF fingerprint implementation

Adds prolif/interactions/_jax/ with:
- primitives.py: vectorized geometric primitives (distances, angles, ring normals)
- integration.py: JAX-accelerated drop-in for ProLIF interaction classes
- framebatch.py: frame-batched trajectory analysis (vmap over frames, SMARTS once)
- api.py: public analyze_trajectory() entry point
- __init__.py: JAX availability check and public exports

Key properties:
- 100% accuracy vs ProLIF on all 9 interaction types
- ~39x speedup vs Fingerprint.run(n_jobs=1) on CPU (250-frame test trajectory)
- SMARTS matching done once per structure; JAX vmaps geometry over all frames
- Gracefully degrades when JAX is not installed
- residue_mode='all' default captures contacts from drifting ligands
- Use ligand Residue (not full Molecule) for pi-ring SMARTS matching in
  build_ring_cation_indices to match ProLIF's internal behaviour. The
  full Molecule and its Residue can disagree on SSSR ring assignments for
  fused aromatic systems, causing wrong ring indices for pi-stacking.
- Add vicinity_cutoff parameter to has_interactions_frames; applies a
  per-frame min atom-atom distance mask matching ProLIF's default 6.0 Å
  get_residues_near_ligand filter.
- Add tests/test_jax.py: 19 tests verifying 100% accuracy vs ProLIF
  for all 9 interaction types across all frames.
@github-actions

Copy link
Copy Markdown

Type-checking report

Difference in type-hints coverage:

10a11,16
> │   │   ├── _jax
> │   │   │   ├── [ ] __init__.py: 1
> │   │   │   ├── [ ] api.py: 8
> │   │   │   ├── [ ] framebatch.py: 82
> │   │   │   ├── [ ] integration.py: 4
> │   │   │   └── [ ] primitives.py: 46
16,21d21
< │   ├── io
< │   │   ├── [x] __init__.py
< │   │   ├── [x] cif.py
< │   │   ├── [x] constants.py
< │   │   ├── [x] protein_helper.py
< │   │   └── [x] xml.py
50d49
<     ├── [x] test_constants.py
54c53
<     ├── [x] test_io.py
---
>     ├── [ ] test_jax.py: 2
61c60
< Summary: 50/50 files have complete type hints (100.0%)
---
> Summary: 43/49 files have complete type hints (87.8%)
Overview
.
├── prolif
│   ├── [x] __init__.py
│   ├── [x] _version.py
│   ├── [x] datafiles.py
│   ├── [x] exceptions.py
│   ├── [x] fingerprint.py
│   ├── [x] ifp.py
│   ├── interactions
│   │   ├── [x] __init__.py
│   │   ├── _jax
│   │   │   ├── [ ] __init__.py: 1
│   │   │   ├── [ ] api.py: 8
│   │   │   ├── [ ] framebatch.py: 82
│   │   │   ├── [ ] integration.py: 4
│   │   │   └── [ ] primitives.py: 46
│   │   ├── [x] base.py
│   │   ├── [x] constants.py
│   │   ├── [x] interactions.py
│   │   ├── [x] utils.py
│   │   └── [x] water_bridge.py
│   ├── [x] molecule.py
│   ├── [x] parallel.py
│   ├── [x] pickling.py
│   ├── plotting
│   │   ├── [x] __init__.py
│   │   ├── [x] barcode.py
│   │   ├── [x] complex3d.py
│   │   ├── network
│   │   │   ├── [x] __init__.py
│   │   │   └── [x] lignetwork.py
│   │   ├── [x] residues.py
│   │   └── [x] utils.py
│   ├── [x] rdkitmol.py
│   ├── [x] residue.py
│   ├── [x] typeshed.py
│   └── [x] utils.py
├── scripts
│   ├── [x] check_types.py
│   └── [x] test_build.py
└── tests
    ├── [x] __init__.py
    ├── [x] conftest.py
    ├── plotting
    │   ├── [x] __init__.py
    │   ├── [x] test_barcode.py
    │   ├── [x] test_complex3d.py
    │   ├── [x] test_network.py
    │   └── [x] test_residues.py
    ├── [x] test_fingerprint.py
    ├── [x] test_ifp.py
    ├── [x] test_interactions.py
    ├── [ ] test_jax.py: 2
    ├── [x] test_molecule.py
    ├── [x] test_parallel.py
    ├── [x] test_pickling.py
    ├── [x] test_residues.py
    └── [x] test_utils.py

Summary: 43/49 files have complete type hints (87.8%)
Remaining errors
Poe => mypy .
prolif/interactions/_jax/primitives.py:5: error: Cannot find implementation or library stub for module named "jax.numpy"  [import-not-found]
prolif/interactions/_jax/primitives.py:5: error: Cannot find implementation or library stub for module named "jax"  [import-not-found]
prolif/interactions/_jax/primitives.py:6: error: Cannot find implementation or library stub for module named "jax.ops"  [import-not-found]
prolif/interactions/_jax/primitives.py: note: In function "pairwise_distances":
prolif/interactions/_jax/primitives.py:9: error: Return type becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:9: error: Argument 1 to "pairwise_distances" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:9: error: Argument 2 to "pairwise_distances" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:21: error: Target type of cast becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py: note: In function "batch_centroids":
prolif/interactions/_jax/primitives.py:24: error: Return type becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:24: error: Argument 1 to "batch_centroids" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:24: error: Argument 2 to "batch_centroids" becomes "list[Any]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py: note: In function "batch_centroids_masked":
prolif/interactions/_jax/primitives.py:47: error: Return type becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:47: error: Argument 1 to "batch_centroids_masked" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:47: error: Argument 2 to "batch_centroids_masked" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:47: error: Argument 3 to "batch_centroids_masked" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py: note: In function "batch_ring_normals_masked":
prolif/interactions/_jax/primitives.py:70: error: Return type becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:70: error: Argument 1 to "batch_ring_normals_masked" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:70: error: Argument 2 to "batch_ring_normals_masked" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:70: error: Argument 3 to "batch_ring_normals_masked" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:93: error: Target type of cast becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py: note: In function "ring_normal":
prolif/interactions/_jax/primitives.py:99: error: Return type becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:99: error: Argument 1 to "ring_normal" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:99: error: Argument 2 to "ring_normal" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:117: error: Target type of cast becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py: note: In function "batch_ring_normals":
prolif/interactions/_jax/primitives.py:123: error: Return type becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:123: error: Argument 1 to "batch_ring_normals" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:123: error: Argument 2 to "batch_ring_normals" becomes "list[Any]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py: note: In function "angle_between_vectors":
prolif/interactions/_jax/primitives.py:131: error: Return type becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:131: error: Argument 1 to "angle_between_vectors" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:131: error: Argument 2 to "angle_between_vectors" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py: note: In function "angle_at_vertex":
prolif/interactions/_jax/primitives.py:148: error: Return type becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:148: error: Argument 1 to "angle_at_vertex" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:148: error: Argument 2 to "angle_at_vertex" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:148: error: Argument 3 to "angle_at_vertex" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py: note: In function "point_to_plane_distance":
prolif/interactions/_jax/primitives.py:166: error: Return type becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:166: error: Argument 1 to "point_to_plane_distance" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:166: error: Argument 2 to "point_to_plane_distance" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/primitives.py:166: error: Argument 3 to "point_to_plane_distance" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/integration.py:7: error: Cannot find implementation or library stub for module named "jax.numpy"  [import-not-found]
prolif/interactions/_jax/integration.py:7: error: Cannot find implementation or library stub for module named "jax"  [import-not-found]
prolif/interactions/_jax/integration.py: note: In function "compute_distances_batch":
prolif/interactions/_jax/integration.py:16: error: Return type becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:9: error: Cannot find implementation or library stub for module named "jax"  [import-not-found]
prolif/interactions/_jax/framebatch.py:10: error: Cannot find implementation or library stub for module named "jax.numpy"  [import-not-found]
prolif/interactions/_jax/framebatch.py:33: error: Unused "type: ignore" comment  [unused-ignore]
prolif/interactions/_jax/framebatch.py:33: error: Cannot find implementation or library stub for module named "pynvml"  [import-not-found]
prolif/interactions/_jax/framebatch.py:33: note: Error code "import-not-found" not covered by "type: ignore" comment
prolif/interactions/_jax/framebatch.py: note: In function "pairwise_distances_frames":
prolif/interactions/_jax/framebatch.py:43: error: Return type becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:43: error: Argument 1 to "pairwise_distances_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:43: error: Argument 2 to "pairwise_distances_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:63: error: Return type becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:63: error: Argument 1 to "_frame_distances" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:63: error: Argument 2 to "_frame_distances" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py: note: In function "hbacceptor_frames":
prolif/interactions/_jax/framebatch.py:69: error: Return type becomes "tuple[Any, Any, Any]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:69: error: Argument 1 to "hbacceptor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:69: error: Argument 2 to "hbacceptor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:69: error: Argument 3 to "hbacceptor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:69: error: Argument 4 to "hbacceptor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:69: error: Argument 5 to "hbacceptor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py: note: In function "hbdonor_frames":
prolif/interactions/_jax/framebatch.py:119: error: Return type becomes "tuple[Any, Any, Any]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:119: error: Argument 1 to "hbdonor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:119: error: Argument 2 to "hbdonor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:119: error: Argument 3 to "hbdonor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:119: error: Argument 4 to "hbdonor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:119: error: Argument 5 to "hbdonor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py: note: In function "xbacceptor_frames":
prolif/interactions/_jax/framebatch.py:156: error: Return type becomes "tuple[Any, Any, Any, Any]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:156: error: Argument 1 to "xbacceptor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:156: error: Argument 2 to "xbacceptor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:156: error: Argument 3 to "xbacceptor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:156: error: Argument 4 to "xbacceptor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:156: error: Argument 5 to "xbacceptor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:156: error: Argument 6 to "xbacceptor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py: note: In function "xbdonor_frames":
prolif/interactions/_jax/framebatch.py:203: error: Return type becomes "tuple[Any, Any, Any, Any]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:203: error: Argument 1 to "xbdonor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:203: error: Argument 2 to "xbdonor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:203: error: Argument 3 to "xbdonor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:203: error: Argument 4 to "xbdonor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:203: error: Argument 5 to "xbdonor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:203: error: Argument 6 to "xbdonor_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py: note: In function "_ring_centroids_normals_frames":
prolif/interactions/_jax/framebatch.py:250: error: Return type becomes "tuple[Any, Any]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:250: error: Argument 1 to "_ring_centroids_normals_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:250: error: Argument 2 to "_ring_centroids_normals_frames" becomes "list[Any]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py: note: In function "cationpi_frames":
prolif/interactions/_jax/framebatch.py:287: error: Return type becomes "tuple[Any, Any, Any]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:287: error: Argument 1 to "cationpi_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:287: error: Argument 2 to "cationpi_frames" becomes "list[Any]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:287: error: Argument 3 to "cationpi_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:287: error: Argument 4 to "cationpi_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py: note: In function "_compute_intersect_check":
prolif/interactions/_jax/framebatch.py:327: error: Return type becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:327: error: Argument 1 to "_compute_intersect_check" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:327: error: Argument 2 to "_compute_intersect_check" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:327: error: Argument 3 to "_compute_intersect_check" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:327: error: Argument 4 to "_compute_intersect_check" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py: note: In function "pistacking_frames":
prolif/interactions/_jax/framebatch.py:379: error: Return type becomes "tuple[Any, Any, Any, Any]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:379: error: Argument 1 to "pistacking_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:379: error: Argument 2 to "pistacking_frames" becomes "list[Any]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:379: error: Argument 3 to "pistacking_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:379: error: Argument 4 to "pistacking_frames" becomes "list[Any]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py: note: In function "build_actor_masks":
prolif/interactions/_jax/framebatch.py:435: error: Return type becomes "tuple[dict[str, Any], dict[str, Any]]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py: note: In function "build_vdw_radii":
prolif/interactions/_jax/framebatch.py:782: error: Return type becomes "tuple[Any, Any, float]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py: note: In function "has_interactions_frames":
prolif/interactions/_jax/framebatch.py:863: error: Return type becomes "dict[str, Any]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:863: error: Argument 1 to "has_interactions_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:863: error: Argument 2 to "has_interactions_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:863: error: Argument 3 to "has_interactions_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py: note: In function "prepare_for_device":
prolif/interactions/_jax/framebatch.py:1033: error: Argument 1 to "prepare_for_device" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:1033: error: Argument 2 to "prepare_for_device" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:1033: error: Argument 3 to "prepare_for_device" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py: note: In function "chunked_has_interactions_frames":
prolif/interactions/_jax/framebatch.py:1288: error: Return type becomes "dict[str, Any]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:1288: error: Argument 1 to "chunked_has_interactions_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:1288: error: Argument 2 to "chunked_has_interactions_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:1288: error: Argument 3 to "chunked_has_interactions_frames" becomes "Any" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/framebatch.py:1328: error: Type of variable becomes "list[dict[str, Any]]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/api.py:10: error: Cannot find implementation or library stub for module named "jax"  [import-not-found]
prolif/interactions/_jax/api.py:11: error: Cannot find implementation or library stub for module named "jax.numpy"  [import-not-found]
prolif/interactions/_jax/api.py: note: In function "_build_trajectory_frames":
prolif/interactions/_jax/api.py:140: error: Return type becomes "tuple[Any, Any, Any]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/api.py: note: In function "_build_residue_valid_mask":
prolif/interactions/_jax/api.py:196: error: Return type becomes "tuple[Any, int]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/api.py: note: In function "_iter_trajectory_chunks":
prolif/interactions/_jax/api.py:209: error: Return type becomes "Iterator[tuple[Any, Any, int]]" due to an unfollowed import  [no-any-unimported]
prolif/interactions/_jax/__init__.py:4: error: Cannot find implementation or library stub for module named "jax"  [import-not-found]
prolif/interactions/_jax/__init__.py:4: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
tests/test_jax.py:207: error: Cannot find implementation or library stub for module named "jax.numpy"  [import-not-found]
tests/test_jax.py:207: error: Cannot find implementation or library stub for module named "jax"  [import-not-found]
Found 116 errors in 6 files (checked 49 source files)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant