{"diffoscope-json-version": 1, "source1": "/srv/reproducible-results/rbuild-debian/r-b-build.7unZG8bI/b1/python-gsd_2.7.0-2_armhf.changes", "source2": "/srv/reproducible-results/rbuild-debian/r-b-build.7unZG8bI/b2/python-gsd_2.7.0-2_armhf.changes", "unified_diff": null, "details": [{"source1": "Files", "source2": "Files", "unified_diff": "@@ -1,4 +1,4 @@\n \n- 81da724e4b519ff7d9c94382571cc876 90964 doc optional python-gsd-doc_2.7.0-2_all.deb\n+ 469b7833e4fbb06b249d8307d30ce122 90952 doc optional python-gsd-doc_2.7.0-2_all.deb\n 4b9559e8ba2771067e5606da16c1effd 245008 debug optional python3-gsd-dbgsym_2.7.0-2_armhf.deb\n 07de2ab82375f4a3c80a99e3001dedc8 78076 python optional python3-gsd_2.7.0-2_armhf.deb\n"}, {"source1": "python-gsd-doc_2.7.0-2_all.deb", "source2": "python-gsd-doc_2.7.0-2_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 2023-01-17 16:37:42.000000 debian-binary\n -rw-r--r-- 0 0 0 2376 2023-01-17 16:37:42.000000 control.tar.xz\n--rw-r--r-- 0 0 0 88396 2023-01-17 16:37:42.000000 data.tar.xz\n+-rw-r--r-- 0 0 0 88384 2023-01-17 16:37:42.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": "@@ -46,28 +46,28 @@\n -rw-r--r-- 0 root (0) root (0) 9044 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/cli.html\n -rw-r--r-- 0 root (0) root (0) 7459 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/community.html\n -rw-r--r-- 0 root (0) root (0) 15558 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/contributing.html\n -rw-r--r-- 0 root (0) root (0) 6982 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/credits.html\n -rw-r--r-- 0 root (0) root (0) 23206 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/file-layer.html\n -rw-r--r-- 0 root (0) root (0) 45188 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/fl-examples.html\n -rw-r--r-- 0 root (0) root (0) 37490 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/genindex.html\n--rw-r--r-- 0 root (0) root (0) 48447 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/hoomd-examples.html\n+-rw-r--r-- 0 root (0) root (0) 48384 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/hoomd-examples.html\n -rw-r--r-- 0 root (0) root (0) 9848 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/index.html\n -rw-r--r-- 0 root (0) root (0) 6371 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/indices.html\n -rw-r--r-- 0 root (0) root (0) 23713 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/installation.html\n -rw-r--r-- 0 root (0) root (0) 13274 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/license.html\n -rw-r--r-- 0 root (0) root (0) 2736 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/objects.inv\n -rw-r--r-- 0 root (0) root (0) 7101 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/py-modindex.html\n -rw-r--r-- 0 root (0) root (0) 32745 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/python-api.html\n -rw-r--r-- 0 root (0) root (0) 74465 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/python-module-gsd.fl.html\n -rw-r--r-- 0 root (0) root (0) 66497 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/python-module-gsd.hoomd.html\n -rw-r--r-- 0 root (0) root (0) 35551 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/python-module-gsd.pygsd.html\n -rw-r--r-- 0 root (0) root (0) 97149 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/schema-hoomd.html\n -rw-r--r-- 0 root (0) root (0) 5908 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/search.html\n--rw-r--r-- 0 root (0) root (0) 68859 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/searchindex.js\n+-rw-r--r-- 0 root (0) root (0) 68818 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/searchindex.js\n -rw-r--r-- 0 root (0) root (0) 21656 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/shapes.html\n -rw-r--r-- 0 root (0) root (0) 10113 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/specification.html\n -rw-r--r-- 0 root (0) root (0) 13964 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/style.html\n drwxr-xr-x 0 root (0) root (0) 0 2023-01-17 16:37:42.000000 ./usr/share/doc-base/\n -rw-r--r-- 0 root (0) root (0) 331 2023-01-17 16:37:42.000000 ./usr/share/doc-base/python-gsd-doc.python-gsd\n lrwxrwxrwx 0 root (0) root (0) 0 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/_static/_sphinx_javascript_frameworks_compat.js -> ../../../../javascript/sphinxdoc/1.0/_sphinx_javascript_frameworks_compat.js\n lrwxrwxrwx 0 root (0) root (0) 0 2023-01-17 16:37:42.000000 ./usr/share/doc/python-gsd-doc/html/_static/css/badge_only.css -> ../../../../../sphinx_rtd_theme/static/css/badge_only.css\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": "@@ -193,23 +193,23 @@\n Out[16]: 5\n \n In [17]: snap.particles.N\n Out[17]: 9\n \n In [18]: snap.particles.position\n Out[18]: \n-array([[0.9223388 , 0.22633724, 0.07840342],\n- [0.6045313 , 0.13220368, 0.44016424],\n- [0.4006521 , 0.411183 , 0.3869858 ],\n- [0.6653195 , 0.40534142, 0.89931124],\n- [0.09279376, 0.57808363, 0.6925787 ],\n- [0.34779903, 0.69938034, 0.3338973 ],\n- [0.11514353, 0.2545868 , 0.20324644],\n- [0.16607866, 0.16386276, 0.9034168 ],\n- [0.75765216, 0.41146037, 0.8036861 ]], dtype=float32)\n+array([[0.19622535, 0.10364336, 0.73504 ],\n+ [0.42037013, 0.12902392, 0.12509118],\n+ [0.85473853, 0.4855717 , 0.2546638 ],\n+ [0.03070883, 0.9847538 , 0.9913866 ],\n+ [0.36848673, 0.88404053, 0.8322486 ],\n+ [0.26584858, 0.26227 , 0.3523023 ],\n+ [0.5500672 , 0.7017762 , 0.21717823],\n+ [0.0484382 , 0.25592637, 0.83795255],\n+ [0.31152233, 0.53387904, 0.95502675]], 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.Snapshot
.
In [23]: f = gsd.pygsd.GSDFile(open('test.gsd', 'rb'))\n \n In [24]: t = gsd.hoomd.HOOMDTrajectory(f);\n \n In [25]: t[3].particles.position\n Out[25]: \n-array([[2.7918157e-01, 1.8956065e-01, 4.3768886e-01],\n- [7.6041305e-01, 8.9359033e-01, 3.1214675e-01],\n- [4.8658469e-01, 8.3486205e-01, 9.3346763e-01],\n- [9.6316226e-02, 3.5347688e-01, 3.0949745e-01],\n- [7.7243263e-01, 7.8227520e-01, 6.0253316e-01],\n- [8.9934774e-02, 5.6932104e-01, 4.4514567e-01],\n- [6.0456316e-04, 4.2078674e-01, 3.7701246e-01]], dtype=float32)\n+array([[0.23688282, 0.9630058 , 0.6336629 ],\n+ [0.07506042, 0.25881794, 0.2790243 ],\n+ [0.7146926 , 0.37712127, 0.8139112 ],\n+ [0.76515955, 0.8881079 , 0.290039 ],\n+ [0.9350002 , 0.7703131 , 0.98512655],\n+ [0.52404183, 0.5848071 , 0.93785363],\n+ [0.11575463, 0.48285633, 0.03564102]], 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.