{"diffoscope-json-version": 1, "source1": "/srv/reproducible-results/rbuild-debian/r-b-build.uHBioq6C/b1/python-gsd_3.3.0-1_i386.changes", "source2": "/srv/reproducible-results/rbuild-debian/r-b-build.uHBioq6C/b2/python-gsd_3.3.0-1_i386.changes", "unified_diff": null, "details": [{"source1": "Files", "source2": "Files", "unified_diff": "@@ -1,4 +1,4 @@\n \n- fcb1448ef3b7d151b5c76d76af7d1846 130400 doc optional python-gsd-doc_3.3.0-1_all.deb\n+ d9bb75544900c4ddf4be7a0e6b309f63 130392 doc optional python-gsd-doc_3.3.0-1_all.deb\n 8bb7c9a75ecfaca8a56e3f8d472573d2 337300 debug optional python3-gsd-dbgsym_3.3.0-1_i386.deb\n a2c467601ed567aeb2bd833ec2f4ceb2 203852 python optional python3-gsd_3.3.0-1_i386.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 127516 2024-07-05 16:19:20.000000 data.tar.xz\n+-rw-r--r-- 0 0 0 127508 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) 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) 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.4108866 , 0.22083557, 0.13333796],\n- [0.11866643, 0.18241258, 0.41650644],\n- [0.9504877 , 0.47212934, 0.9301916 ],\n- [0.36373758, 0.7207535 , 0.25974038],\n- [0.5440472 , 0.76929384, 0.4075104 ],\n- [0.81233525, 0.49925056, 0.5389163 ],\n- [0.6667637 , 0.34322342, 0.781571 ],\n- [0.30554622, 0.03930394, 0.22548491],\n- [0.7299888 , 0.03058399, 0.5969969 ]], dtype=float32)\n+array([[0.27211484, 0.31842688, 0.17323253],\n+ [0.2877797 , 0.8408717 , 0.04971356],\n+ [0.33397278, 0.5905327 , 0.960633 ],\n+ [0.912886 , 0.25367552, 0.36976972],\n+ [0.3939961 , 0.85141397, 0.9917482 ],\n+ [0.5117172 , 0.80771804, 0.9214834 ],\n+ [0.9329261 , 0.10877122, 0.94288605],\n+ [0.8019251 , 0.801843 , 0.50006247],\n+ [0.61220837, 0.32791156, 0.5158323 ]], 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.91734517, 0.15592869, 0.7257827 ],\n- [0.70995885, 0.3588069 , 0.3363358 ],\n- [0.7261588 , 0.73941225, 0.96008104],\n- [0.7022735 , 0.75921565, 0.7969606 ],\n- [0.7626588 , 0.04962958, 0.72959477],\n- [0.03669816, 0.971309 , 0.25432628],\n- [0.20963347, 0.96430427, 0.59109837]], dtype=float32)\n+array([[0.2239418 , 0.00161585, 0.06313071],\n+ [0.5333061 , 0.7026551 , 0.77778614],\n+ [0.34181178, 0.57608056, 0.11304581],\n+ [0.1298897 , 0.8384343 , 0.99587756],\n+ [0.2898551 , 0.18379787, 0.27214554],\n+ [0.8965529 , 0.3189482 , 0.31976715],\n+ [0.5658073 , 0.40509436, 0.92737174]], 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.