{"diffoscope-json-version": 1, "source1": "/srv/reproducible-results/rbuild-debian/r-b-build.Wv4y1wp2/b1/python-gsd_3.3.0-1_i386.changes", "source2": "/srv/reproducible-results/rbuild-debian/r-b-build.Wv4y1wp2/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- a80694b1de85a6167edcf55c2931d8af 130364 doc optional python-gsd-doc_3.3.0-1_all.deb\n+ 6c3b99713c68fff6d0e0d2431c030892 130408 doc optional python-gsd-doc_3.3.0-1_all.deb\n cb9b171d783c9b463f5bf5dc4bd7f966 337344 debug optional python3-gsd-dbgsym_3.3.0-1_i386.deb\n 0115cc609a90ddfba8bfb519a6394ed1 203872 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 127480 2024-07-05 16:19:20.000000 data.tar.xz\n+-rw-r--r-- 0 0 0 127524 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) 82713 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.05981082, 0.7575211 , 0.8996613 ],\n- [0.07746648, 0.6652994 , 0.15677498],\n- [0.65171665, 0.28931946, 0.45692492],\n- [0.44059104, 0.7351273 , 0.5842594 ],\n- [0.8182537 , 0.8950511 , 0.11095893],\n- [0.36218163, 0.3636897 , 0.26510933],\n- [0.67741734, 0.16916554, 0.56929225],\n- [0.75252783, 0.9171588 , 0.77116627],\n- [0.883952 , 0.13652875, 0.29556966]], dtype=float32)\n+array([[0.48634815, 0.6867258 , 0.03528157],\n+ [0.8433599 , 0.11727525, 0.16769749],\n+ [0.34965527, 0.7307307 , 0.34735265],\n+ [0.9562315 , 0.5212931 , 0.0737936 ],\n+ [0.64549506, 0.17985745, 0.5454252 ],\n+ [0.31284085, 0.486985 , 0.02699114],\n+ [0.9438944 , 0.66535217, 0.9024754 ],\n+ [0.29612 , 0.66214716, 0.93599504],\n+ [0.78994656, 0.40858516, 0.5601971 ]], 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.7247028 , 0.9965811 , 0.5419492 ],\n- [0.7102028 , 0.7927234 , 0.6280584 ],\n- [0.21301605, 0.15680988, 0.24903356],\n- [0.35631683, 0.3768493 , 0.5487574 ],\n- [0.9130308 , 0.85825425, 0.00520051],\n- [0.15103403, 0.12151265, 0.9714146 ],\n- [0.09034529, 0.70830756, 0.87387866]], dtype=float32)\n+array([[0.6245228 , 0.8699198 , 0.6341151 ],\n+ [0.11278213, 0.25649926, 0.45813057],\n+ [0.5320489 , 0.27361184, 0.25230864],\n+ [0.11753571, 0.1586123 , 0.6468357 ],\n+ [0.83386606, 0.94923717, 0.59539974],\n+ [0.8738771 , 0.6592406 , 0.22454762],\n+ [0.51634336, 0.79732 , 0.82060647]], 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.