{"diffoscope-json-version": 1, "source1": "/srv/reproducible-results/rbuild-debian/r-b-build.CT5l5Fu8/b1/python-gsd_3.3.0-1_arm64.changes", "source2": "/srv/reproducible-results/rbuild-debian/r-b-build.CT5l5Fu8/b2/python-gsd_3.3.0-1_arm64.changes", "unified_diff": null, "details": [{"source1": "Files", "source2": "Files", "unified_diff": "@@ -1,4 +1,4 @@\n \n- aff93649e4fc9a49999e3f629c1d6b3e 130408 doc optional python-gsd-doc_3.3.0-1_all.deb\n+ e6cf71b7781c2ff048804100b18084b0 130360 doc optional python-gsd-doc_3.3.0-1_all.deb\n 7571b6bb7442bb2ca239cd8cff55ea69 342492 debug optional python3-gsd-dbgsym_3.3.0-1_arm64.deb\n a3bec3a8103389bdc9439a43004e3c64 192160 python optional python3-gsd_3.3.0-1_arm64.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 127524 2024-07-05 16:19:20.000000 data.tar.xz\n+-rw-r--r-- 0 0 0 127476 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) 82725 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.12316967, 0.64587235, 0.9128363 ],\n- [0.8626367 , 0.2235148 , 0.08939774],\n- [0.22335601, 0.00662065, 0.96929795],\n- [0.5478874 , 0.35634676, 0.23784144],\n- [0.49214777, 0.72894174, 0.10864176],\n- [0.13767935, 0.1610636 , 0.41583046],\n- [0.07269603, 0.5317239 , 0.26015922],\n- [0.05673851, 0.57478654, 0.64424783],\n- [0.34277025, 0.10005342, 0.77304333]], dtype=float32)\n+array([[0.13345751, 0.42071077, 0.006371 ],\n+ [0.4110003 , 0.01742984, 0.75754243],\n+ [0.7021575 , 0.09851846, 0.7980698 ],\n+ [0.27972424, 0.654219 , 0.9891269 ],\n+ [0.32159486, 0.25689048, 0.8494307 ],\n+ [0.75898737, 0.7241362 , 0.91943383],\n+ [0.67187834, 0.67267716, 0.7775401 ],\n+ [0.726317 , 0.34296808, 0.50930166],\n+ [0.94266546, 0.04818796, 0.6499634 ]], 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.44322318, 0.86965847, 0.37274516],\n- [0.5122337 , 0.17507413, 0.9335558 ],\n- [0.00896939, 0.3802555 , 0.64956003],\n- [0.8785142 , 0.83208025, 0.07606622],\n- [0.73675835, 0.8106642 , 0.2726507 ],\n- [0.31639966, 0.28040567, 0.9848428 ],\n- [0.76432866, 0.9874605 , 0.16236402]], dtype=float32)\n+array([[0.8652545 , 0.16971286, 0.77948165],\n+ [0.24350227, 0.77709574, 0.5015676 ],\n+ [0.7370627 , 0.57237625, 0.6844412 ],\n+ [0.26209536, 0.6595676 , 0.34225166],\n+ [0.26166886, 0.18773468, 0.09318452],\n+ [0.6793225 , 0.19424634, 0.12599196],\n+ [0.9711284 , 0.3186024 , 0.67604005]], 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.