{"diffoscope-json-version": 1, "source1": "/srv/reproducible-results/rbuild-debian/r-b-build.doDDECa1/b1/python-gsd_3.3.0-1_amd64.changes", "source2": "/srv/reproducible-results/rbuild-debian/r-b-build.doDDECa1/b2/python-gsd_3.3.0-1_amd64.changes", "unified_diff": null, "details": [{"source1": "Files", "source2": "Files", "unified_diff": "@@ -1,4 +1,4 @@\n \n- a31296783a5dca7e7c4b488637c6ef0e 130404 doc optional python-gsd-doc_3.3.0-1_all.deb\n+ eb7582480d88120c266d06b33b214ed1 130380 doc optional python-gsd-doc_3.3.0-1_all.deb\n 1f41d330e29a65b0905e65b0574b6c68 352380 debug optional python3-gsd-dbgsym_3.3.0-1_amd64.deb\n 6f6645682d7159ca7fca5d0b4640cd50 201020 python optional python3-gsd_3.3.0-1_amd64.deb\n"}, {"source1": "python-gsd-doc_3.3.0-1_all.deb", "source2": "python-gsd-doc_3.3.0-1_all.deb", "unified_diff": null, "details": [{"source1": "file list", "source2": "file list", "unified_diff": "@@ -1,3 +1,3 @@\n -rw-r--r-- 0 0 0 4 2024-07-05 16:19:20.000000 debian-binary\n -rw-r--r-- 0 0 0 2692 2024-07-05 16:19:20.000000 control.tar.xz\n--rw-r--r-- 0 0 0 127520 2024-07-05 16:19:20.000000 data.tar.xz\n+-rw-r--r-- 0 0 0 127496 2024-07-05 16:19:20.000000 data.tar.xz\n"}, {"source1": "control.tar.xz", "source2": "control.tar.xz", "unified_diff": null, "details": [{"source1": "control.tar", "source2": "control.tar", "unified_diff": null, "details": [{"source1": "./md5sums", "source2": "./md5sums", "unified_diff": null, "details": [{"source1": "./md5sums", "source2": "./md5sums", "comments": ["Files differ"], "unified_diff": null}]}]}]}, {"source1": "data.tar.xz", "source2": "data.tar.xz", "unified_diff": null, "details": [{"source1": "data.tar", "source2": "data.tar", "unified_diff": null, "details": [{"source1": "file list", "source2": "file list", "unified_diff": "@@ -71,15 +71,15 @@\n -rw-r--r-- 0 root (0) root (0) 23394 2024-07-05 16:19:20.000000 ./usr/share/doc/python-gsd-doc/html/python-api.html\n -rw-r--r-- 0 root (0) root (0) 87526 2024-07-05 16:19:20.000000 ./usr/share/doc/python-gsd-doc/html/python-module-gsd.fl.html\n -rw-r--r-- 0 root (0) root (0) 95472 2024-07-05 16:19:20.000000 ./usr/share/doc/python-gsd-doc/html/python-module-gsd.hoomd.html\n -rw-r--r-- 0 root (0) root (0) 49307 2024-07-05 16:19:20.000000 ./usr/share/doc/python-gsd-doc/html/python-module-gsd.pygsd.html\n -rw-r--r-- 0 root (0) root (0) 18756 2024-07-05 16:19:20.000000 ./usr/share/doc/python-gsd-doc/html/python-module-gsd.version.html\n -rw-r--r-- 0 root (0) root (0) 107555 2024-07-05 16:19:20.000000 ./usr/share/doc/python-gsd-doc/html/schema-hoomd.html\n -rw-r--r-- 0 root (0) root (0) 16660 2024-07-05 16:19:20.000000 ./usr/share/doc/python-gsd-doc/html/search.html\n--rw-r--r-- 0 root (0) root (0) 82718 2024-07-05 16:19:20.000000 ./usr/share/doc/python-gsd-doc/html/searchindex.js\n+-rw-r--r-- 0 root (0) root (0) 82720 2024-07-05 16:19:20.000000 ./usr/share/doc/python-gsd-doc/html/searchindex.js\n -rw-r--r-- 0 root (0) root (0) 32666 2024-07-05 16:19:20.000000 ./usr/share/doc/python-gsd-doc/html/shapes.html\n -rw-r--r-- 0 root (0) root (0) 20804 2024-07-05 16:19:20.000000 ./usr/share/doc/python-gsd-doc/html/specification.html\n -rw-r--r-- 0 root (0) root (0) 24988 2024-07-05 16:19:20.000000 ./usr/share/doc/python-gsd-doc/html/style.html\n drwxr-xr-x 0 root (0) root (0) 0 2024-07-05 16:19:20.000000 ./usr/share/doc-base/\n -rw-r--r-- 0 root (0) root (0) 331 2024-07-05 16:19:20.000000 ./usr/share/doc-base/python-gsd-doc.python-gsd\n lrwxrwxrwx 0 root (0) root (0) 0 2024-07-05 16:19:20.000000 ./usr/share/doc/python-gsd-doc/html/_static/doctools.js -> ../../../../javascript/sphinxdoc/1.0/doctools.js\n lrwxrwxrwx 0 root (0) root (0) 0 2024-07-05 16:19:20.000000 ./usr/share/doc/python-gsd-doc/html/_static/language_data.js -> ../../../../javascript/sphinxdoc/1.0/language_data.js\n"}, {"source1": "./usr/share/doc/python-gsd-doc/html/hoomd-examples.html", "source2": "./usr/share/doc/python-gsd-doc/html/hoomd-examples.html", "unified_diff": "@@ -355,23 +355,23 @@\n Out[16]: 5\n \n In [17]: frame.particles.N\n Out[17]: 9\n \n In [18]: frame.particles.position\n Out[18]: \n-array([[0.98634994, 0.2609803 , 0.7573276 ],\n- [0.72124755, 0.17434151, 0.9312099 ],\n- [0.30205306, 0.8568594 , 0.27031362],\n- [0.24807246, 0.33414975, 0.694913 ],\n- [0.9600695 , 0.4758474 , 0.3320576 ],\n- [0.961259 , 0.9022375 , 0.9067115 ],\n- [0.11638785, 0.48132548, 0.31074518],\n- [0.36147836, 0.5054218 , 0.5500284 ],\n- [0.43136147, 0.0093628 , 0.35895073]], dtype=float32)\n+array([[0.7728585 , 0.6417677 , 0.6185172 ],\n+ [0.31226304, 0.42622846, 0.12717864],\n+ [0.6962113 , 0.891335 , 0.2346277 ],\n+ [0.74645686, 0.43528122, 0.8094549 ],\n+ [0.39409447, 0.30772775, 0.88995653],\n+ [0.02269289, 0.47618988, 0.20087525],\n+ [0.7403571 , 0.57417494, 0.5038097 ],\n+ [0.24330384, 0.72416556, 0.59850305],\n+ [0.43724802, 0.15415701, 0.8006849 ]], dtype=float32)\n \n \n
gsd.hoomd.HOOMDTrajectory
supports random indexing of frames in the file.\n Indexing into a trajectory returns a gsd.hoomd.Frame
.
In [23]: f = gsd.pygsd.GSDFile(open('example.gsd', 'rb'))\n \n In [24]: trajectory = gsd.hoomd.HOOMDTrajectory(f);\n \n In [25]: trajectory[3].particles.position\n Out[25]: \n-array([[0.89297575, 0.60751784, 0.39828512],\n- [0.3539692 , 0.84396565, 0.86274457],\n- [0.25198603, 0.83817095, 0.79711986],\n- [0.14295614, 0.7289324 , 0.81089723],\n- [0.9579095 , 0.04793588, 0.95506656],\n- [0.22937089, 0.3427639 , 0.7957847 ],\n- [0.48885173, 0.83030915, 0.34693772]], dtype=float32)\n+array([[0.86071503, 0.8684962 , 0.8524982 ],\n+ [0.00260618, 0.7631574 , 0.2306025 ],\n+ [0.63282514, 0.05476646, 0.2705843 ],\n+ [0.08640291, 0.2560719 , 0.90849054],\n+ [0.8191478 , 0.10490891, 0.5575511 ],\n+ [0.16042605, 0.30859837, 0.19020057],\n+ [0.01083884, 0.48338255, 0.35933688]], dtype=float32)\n
You can use GSD without needing to compile C code to read GSD files\n using gsd.pygsd.GSDFile
in combination with gsd.hoomd.HOOMDTrajectory
. It\n only supports the rb
mode and does not read files as fast as the C\n implementation. It takes in a python file-like object, so it can be used with\n in-memory IO classes, and grid file classes that access data over the internet.