{"diffoscope-json-version": 1, "source1": "/srv/reproducible-results/rbuild-debian/r-b-build.MaR00Sjb/b1/python-gsd_2.4.0-1_amd64.changes", "source2": "/srv/reproducible-results/rbuild-debian/r-b-build.MaR00Sjb/b2/python-gsd_2.4.0-1_amd64.changes", "unified_diff": null, "details": [{"source1": "Files", "source2": "Files", "unified_diff": "@@ -1,4 +1,4 @@\n \n- d0d906b8f4b56f200d94c6e0d972edaa 80352 doc optional python-gsd-doc_2.4.0-1_all.deb\n+ 33164795a8c96bcb22e93454f471a695 80360 doc optional python-gsd-doc_2.4.0-1_all.deb\n 82178b9900602092d576492e130fbad6 250884 debug optional python3-gsd-dbgsym_2.4.0-1_amd64.deb\n 127f34df5074871fab526e7e1f887c72 81220 python optional python3-gsd_2.4.0-1_amd64.deb\n"}, {"source1": "python-gsd-doc_2.4.0-1_all.deb", "source2": "python-gsd-doc_2.4.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 2020-12-28 05:06:26.000000 debian-binary\n -rw-r--r-- 0 0 0 2364 2020-12-28 05:06:26.000000 control.tar.xz\n--rw-r--r-- 0 0 0 77796 2020-12-28 05:06:26.000000 data.tar.xz\n+-rw-r--r-- 0 0 0 77804 2020-12-28 05:06:26.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": "@@ -59,15 +59,15 @@\n -rw-r--r-- 0 root (0) root (0) 7418 2020-12-28 05:06:26.000000 ./usr/share/doc/python-gsd-doc/html/py-modindex.html\n -rw-r--r-- 0 root (0) root (0) 11468 2020-12-28 05:06:26.000000 ./usr/share/doc/python-gsd-doc/html/python-api.html\n -rw-r--r-- 0 root (0) root (0) 79089 2020-12-28 05:06:26.000000 ./usr/share/doc/python-gsd-doc/html/python-module-gsd.fl.html\n -rw-r--r-- 0 root (0) root (0) 61519 2020-12-28 05:06:26.000000 ./usr/share/doc/python-gsd-doc/html/python-module-gsd.hoomd.html\n -rw-r--r-- 0 root (0) root (0) 31619 2020-12-28 05:06:26.000000 ./usr/share/doc/python-gsd-doc/html/python-module-gsd.pygsd.html\n -rw-r--r-- 0 root (0) root (0) 90606 2020-12-28 05:06:26.000000 ./usr/share/doc/python-gsd-doc/html/schema-hoomd.html\n -rw-r--r-- 0 root (0) root (0) 6318 2020-12-28 05:06:26.000000 ./usr/share/doc/python-gsd-doc/html/search.html\n--rw-r--r-- 0 root (0) root (0) 30371 2020-12-28 05:06:26.000000 ./usr/share/doc/python-gsd-doc/html/searchindex.js\n+-rw-r--r-- 0 root (0) root (0) 30361 2020-12-28 05:06:26.000000 ./usr/share/doc/python-gsd-doc/html/searchindex.js\n -rw-r--r-- 0 root (0) root (0) 23081 2020-12-28 05:06:26.000000 ./usr/share/doc/python-gsd-doc/html/shapes.html\n -rw-r--r-- 0 root (0) root (0) 10386 2020-12-28 05:06:26.000000 ./usr/share/doc/python-gsd-doc/html/specification.html\n -rw-r--r-- 0 root (0) root (0) 14373 2020-12-28 05:06:26.000000 ./usr/share/doc/python-gsd-doc/html/style.html\n drwxr-xr-x 0 root (0) root (0) 0 2020-12-28 05:06:26.000000 ./usr/share/doc-base/\n -rw-r--r-- 0 root (0) root (0) 331 2020-12-28 05:06:26.000000 ./usr/share/doc-base/python-gsd\n lrwxrwxrwx 0 root (0) root (0) 0 2020-12-28 05:06:26.000000 ./usr/share/doc/python-gsd-doc/html/_static/css/badge_only.css -> ../../../../../sphinx_rtd_theme/static/css/badge_only.css\n lrwxrwxrwx 0 root (0) root (0) 0 2020-12-28 05:06:26.000000 ./usr/share/doc/python-gsd-doc/html/_static/css/theme.css -> ../../../../../sphinx_rtd_theme/static/css/theme.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": "@@ -271,23 +271,23 @@\n Out[15]: 5\n \n In [16]: snap.particles.N\n Out[16]: 9\n \n In [17]: snap.particles.position\n Out[17]: \n-array([[0.8224313 , 0.50756913, 0.7497548 ],\n- [0.06265333, 0.00945917, 0.14125344],\n- [0.47881448, 0.57571864, 0.07889704],\n- [0.26707724, 0.11683363, 0.5427617 ],\n- [0.03899029, 0.13630295, 0.51568216],\n- [0.49635765, 0.39711258, 0.560948 ],\n- [0.23710866, 0.05142424, 0.20752625],\n- [0.92573804, 0.26578513, 0.5746228 ],\n- [0.18582085, 0.33374497, 0.67290217]], dtype=float32)\n+array([[0.54537547, 0.4239884 , 0.16582847],\n+ [0.10678268, 0.3894163 , 0.553646 ],\n+ [0.07406937, 0.26019147, 0.8741641 ],\n+ [0.98561096, 0.6098715 , 0.32678172],\n+ [0.49557915, 0.90150505, 0.3762426 ],\n+ [0.03543719, 0.4876945 , 0.71484506],\n+ [0.2335515 , 0.62379956, 0.4974906 ],\n+ [0.2644337 , 0.99267095, 0.24854533],\n+ [0.4360866 , 0.80008465, 0.26230463]], 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 [22]: f = gsd.pygsd.GSDFile(open('test.gsd', 'rb'))\n \n In [23]: t = gsd.hoomd.HOOMDTrajectory(f);\n \n In [24]: t[3].particles.position\n Out[24]: \n-array([[0.35098168, 0.4066606 , 0.14151853],\n- [0.59074366, 0.33878797, 0.00148594],\n- [0.5996284 , 0.8905668 , 0.37876952],\n- [0.6099918 , 0.0819039 , 0.97554535],\n- [0.70316094, 0.34256324, 0.56121486],\n- [0.19738917, 0.12061159, 0.91502583],\n- [0.9893248 , 0.5169289 , 0.07199922]], dtype=float32)\n+array([[0.5918077 , 0.03123497, 0.3048216 ],\n+ [0.65228724, 0.8921073 , 0.71110696],\n+ [0.38734737, 0.45418796, 0.47323048],\n+ [0.5524685 , 0.572477 , 0.3125808 ],\n+ [0.6163695 , 0.10966117, 0.6566702 ],\n+ [0.23868245, 0.40586367, 0.01441652],\n+ [0.5987444 , 0.5279816 , 0.09095096]], 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.