cuRDF 0.5.1__tar.gz → 0.5.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cuRDF
3
- Version: 0.5.1
3
+ Version: 0.5.3
4
4
  Summary: GPU-accelerated radial distribution functions with NVIDIA ALCHEMI Toolkit-Ops neighbor lists and PyTorch.
5
5
  Author: Joseph Hart
6
6
  License-Expression: MIT
@@ -54,6 +54,8 @@ Dynamic: license-file
54
54
 
55
55
  CUDA-accelerated radial distribution functions using [NVIDIA ALCHEMI Toolkit-Ops](https://github.com/NVIDIA/nvalchemi-toolkit-ops) O(N) neighbor lists and PyTorch. Compatible with ASE Atoms or MDAnalysis Universe objects.
56
56
 
57
+ > **GPU required:** An NVIDIA GPU with CUDA is needed. For CUDA version selection, PyTorch wheel setup (CUDA 12 vs 13) and more information, see the [Toolkit-Ops installation guide](https://github.com/NVIDIA/nvalchemi-toolkit-ops).
58
+
57
59
  ## Benchmarking
58
60
 
59
61
  ![cuRDF benchmark](benchmarks/results/results.png)
@@ -127,7 +129,7 @@ bins, gr = rdf(
127
129
 
128
130
  ## Validation
129
131
 
130
- RDFs for liquid water (64 atoms, 1 ns) match reference curves for all pairs (cite Darren paper):
132
+ RDFs for liquid water (64 atoms, 1 ns) computed using a trajectory from [Lim et al. (2026)](https://arxiv.org/abs/2601.20134) match reference curves for all pairs:
131
133
 
132
134
  <table>
133
135
  <tr>
@@ -7,6 +7,8 @@
7
7
 
8
8
  CUDA-accelerated radial distribution functions using [NVIDIA ALCHEMI Toolkit-Ops](https://github.com/NVIDIA/nvalchemi-toolkit-ops) O(N) neighbor lists and PyTorch. Compatible with ASE Atoms or MDAnalysis Universe objects.
9
9
 
10
+ > **GPU required:** An NVIDIA GPU with CUDA is needed. For CUDA version selection, PyTorch wheel setup (CUDA 12 vs 13) and more information, see the [Toolkit-Ops installation guide](https://github.com/NVIDIA/nvalchemi-toolkit-ops).
11
+
10
12
  ## Benchmarking
11
13
 
12
14
  ![cuRDF benchmark](benchmarks/results/results.png)
@@ -80,7 +82,7 @@ bins, gr = rdf(
80
82
 
81
83
  ## Validation
82
84
 
83
- RDFs for liquid water (64 atoms, 1 ns) match reference curves for all pairs (cite Darren paper):
85
+ RDFs for liquid water (64 atoms, 1 ns) computed using a trajectory from [Lim et al. (2026)](https://arxiv.org/abs/2601.20134) match reference curves for all pairs:
84
86
 
85
87
  <table>
86
88
  <tr>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cuRDF
3
- Version: 0.5.1
3
+ Version: 0.5.3
4
4
  Summary: GPU-accelerated radial distribution functions with NVIDIA ALCHEMI Toolkit-Ops neighbor lists and PyTorch.
5
5
  Author: Joseph Hart
6
6
  License-Expression: MIT
@@ -54,6 +54,8 @@ Dynamic: license-file
54
54
 
55
55
  CUDA-accelerated radial distribution functions using [NVIDIA ALCHEMI Toolkit-Ops](https://github.com/NVIDIA/nvalchemi-toolkit-ops) O(N) neighbor lists and PyTorch. Compatible with ASE Atoms or MDAnalysis Universe objects.
56
56
 
57
+ > **GPU required:** An NVIDIA GPU with CUDA is needed. For CUDA version selection, PyTorch wheel setup (CUDA 12 vs 13) and more information, see the [Toolkit-Ops installation guide](https://github.com/NVIDIA/nvalchemi-toolkit-ops).
58
+
57
59
  ## Benchmarking
58
60
 
59
61
  ![cuRDF benchmark](benchmarks/results/results.png)
@@ -127,7 +129,7 @@ bins, gr = rdf(
127
129
 
128
130
  ## Validation
129
131
 
130
- RDFs for liquid water (64 atoms, 1 ns) match reference curves for all pairs (cite Darren paper):
132
+ RDFs for liquid water (64 atoms, 1 ns) computed using a trajectory from [Lim et al. (2026)](https://arxiv.org/abs/2601.20134) match reference curves for all pairs:
131
133
 
132
134
  <table>
133
135
  <tr>
@@ -335,7 +335,7 @@ def rdf_from_ase(
335
335
 
336
336
  if atom_types_map:
337
337
  # map numeric types to element names if provided
338
- types = frame.get_array("numbers", int, None)
338
+ types = frame.get_array("numbers", False)
339
339
  name_list = []
340
340
  for t in types:
341
341
  name = atom_types_map.get(t) or atom_types_map.get(str(t))
@@ -367,7 +367,10 @@ def rdf_from_ase(
367
367
  "Check element symbols or index selection."
368
368
  )
369
369
 
370
- pbc_tuple = tuple(bool(x) for x in pbc)
370
+ if isinstance(pbc, Iterable):
371
+ pbc_tuple = tuple(bool(x) for x in pbc)
372
+ else:
373
+ pbc_tuple = (bool(pbc), bool(pbc), bool(pbc))
371
374
  wrap_flag = wrap_positions and all(pbc_tuple)
372
375
  pos_all = frame.get_positions(wrap=wrap_flag)
373
376
  cell = np.array(frame.get_cell().array, dtype=np.float32)
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "cuRDF"
7
- version = "0.5.1"
7
+ version = "0.5.3"
8
8
  description = "GPU-accelerated radial distribution functions with NVIDIA ALCHEMI Toolkit-Ops neighbor lists and PyTorch."
9
9
  authors = [{ name = "Joseph Hart" }]
10
10
  readme = { file = "README.md", "content-type" = "text/markdown" }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes