{"library":"silx","title":"silx","description":"silx is a collection of Python packages to support the development of data assessment, reduction and analysis applications at synchrotron radiation facilities. It provides tools for reading HDF5/NeXus files, histogramming, fitting, 1D/2D visualization, and image processing. Current version is 3.0.0, with releases approximately every 6–12 months.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install silx"],"cli":null},"imports":["import silx","from silx import utils","from silx.io import fabio_h5","from silx.gui import plot","from silx.opencl import ocl"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import silx\nimport numpy as np\nfrom silx import sx\nfrom silx.io import fabio_h5\nfrom silx.gui import plot\n\n# Read a HDF5/NeXus image\nimport os\nfilepath = os.environ.get('SILX_TEST_FILE', 'example.h5')\nif os.path.exists(filepath):\n    data = fabio_h5.open(filepath)\n    print(type(data))\n\n# Simple histogram\nx = np.random.normal(size=1000)\nhist, edges = sx.histogram(x, bins=10)\nprint('histogram:', hist)\n\n# Create a 1D plot window (GUI only if interactive)\n# plot1D = plot.Plot1D()\n# plot1D.addCurve(x, y)\n# plot1D.show()","lang":"python","description":"Basic imports and usage of silx: reading files, histogram, and plotting (GUI).","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}