{"diffoscope-json-version": 1, "source1": "/srv/reproducible-results/rbuild-debian/r-b-build.RfZgUqgp/b1/python-gsd_3.3.0-1_armhf.changes", "source2": "/srv/reproducible-results/rbuild-debian/r-b-build.RfZgUqgp/b2/python-gsd_3.3.0-1_armhf.changes", "unified_diff": null, "details": [{"source1": "Files", "source2": "Files", "unified_diff": "@@ -1,4 +1,4 @@\n \n- 65f634fc9ab5bf4534c3f82f74d0b2d5 130376 doc optional python-gsd-doc_3.3.0-1_all.deb\n+ b7fd1efa3288808de1d3a170579338be 130388 doc optional python-gsd-doc_3.3.0-1_all.deb\n 0e85564fbc2a2948b86f4428f8aa4896 341948 debug optional python3-gsd-dbgsym_3.3.0-1_armhf.deb\n cf3ff83eb537b674e1106d3f6078d9fa 192832 python optional python3-gsd_3.3.0-1_armhf.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 127492 2024-07-05 16:19:20.000000 data.tar.xz\n+-rw-r--r-- 0 0 0 127504 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) 82714 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) 82717 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.06635673, 0.1824941 , 0.8427894 ],\n- [0.2926184 , 0.67375094, 0.4895045 ],\n- [0.9021483 , 0.26204076, 0.9224592 ],\n- [0.93250644, 0.59564364, 0.24348316],\n- [0.3828596 , 0.93408453, 0.06057904],\n- [0.53794265, 0.4845494 , 0.6738549 ],\n- [0.29969624, 0.517498 , 0.63561124],\n- [0.81880456, 0.27967507, 0.9175643 ],\n- [0.9545298 , 0.5072344 , 0.18383776]], dtype=float32)\n+array([[0.89878196, 0.6925512 , 0.12014962],\n+ [0.7636793 , 0.66987634, 0.48137262],\n+ [0.6474269 , 0.74430376, 0.9275894 ],\n+ [0.6204244 , 0.57672167, 0.19687377],\n+ [0.59991777, 0.65024894, 0.3709164 ],\n+ [0.57972544, 0.00628272, 0.23112784],\n+ [0.3958091 , 0.89404094, 0.2662926 ],\n+ [0.6512382 , 0.17671078, 0.7342221 ],\n+ [0.47142926, 0.24518628, 0.59699327]], 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.10308043, 0.91232026, 0.28514254],\n- [0.6566232 , 0.28804147, 0.72620445],\n- [0.48162186, 0.28141114, 0.5159603 ],\n- [0.03416933, 0.45436266, 0.6809862 ],\n- [0.578823 , 0.15687898, 0.7641937 ],\n- [0.17497344, 0.427564 , 0.878721 ],\n- [0.96641344, 0.5539856 , 0.60541344]], dtype=float32)\n+array([[0.8085791 , 0.5748817 , 0.89568484],\n+ [0.6550446 , 0.18477544, 0.0489542 ],\n+ [0.4033412 , 0.7868868 , 0.32702944],\n+ [0.23223136, 0.6317211 , 0.49546087],\n+ [0.27433473, 0.8929788 , 0.9375097 ],\n+ [0.5012225 , 0.8746637 , 0.8443308 ],\n+ [0.22444454, 0.88681126, 0.00549733]], 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.