{ "info": { "author": "Cyril Guilloud (ESRF-BCU)", "author_email": "prenom.name@truc.fr", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Xcalibu\n\nauthor: Cyril Guilloud ESRF BCU 2013-2019\n\nXcalibu is a python library to manage calibrations tables or polynomia.\nIt includes a PyTango device server in order to optionally run it as a server.\n\nxcalibu.py : python library\nXcalibuds.py : PyTango device server\n\nXcalibu name comes from the first use of this library to calibrate undulators,\ndevices increasing X-ray flux on synchrotron's beamlines.\n\nCurious reader can have look here:\n\n* https://en.wikipedia.org/wiki/Undulator\n* https://en.wikipedia.org/wiki/European_Synchrotron_Radiation_Facility\n\n## installation\n\npip install xcalibu\n\n## usage\n\nto plot: `./xcalibu.py -p`\n\nto debug:`./xcalibu.py -d10`\n\nplot a file:`./xcalibu.py -p examples/xcalibu_calib_poly.calib`\n\n\n```python\n\nimport numpy\nimport xcalibu\ncalib = xcalibu.Xcalibu()\ncalib.set_calib_file_name(\"mycalib.calib\")\ncalib.set_calib_type(\"TABLE\")\ncalib.set_reconstruction_method(\"INTERPOLATION\")\ncalib.set_calib_time(\"1234.5678\")\ncalib.set_calib_name(\"CAL\")\ncalib.set_calib_description(\"dynamic calibration created for demo\")\ncalib.set_raw_x(numpy.linspace(1, 10, 10))\ncalib.set_raw_y(numpy.array([3, 6, 5, 4, 2, 5, 7, 3, 7, 4]))\ncalib.save()\n\n```\nThis will create a file named `mycalib.calib` in your current directory.\n\n```\n% cat mycalib.calib \n# XCALIBU CALIBRATION\n\nCALIB_NAME=CAL\nCALIB_TYPE=TABLE\nCALIB_TIME=1234.5678\nCALIB_DESC=dynamic calibration created for demo\n\nCAL[1.000000] = 3.000000\nCAL[2.000000] = 6.000000\nCAL[3.000000] = 5.000000\nCAL[4.000000] = 4.000000\nCAL[5.000000] = 2.000000\nCAL[6.000000] = 5.000000\nCAL[7.000000] = 7.000000\nCAL[8.000000] = 3.000000\nCAL[9.000000] = 7.000000\nCAL[10.000000] = 4.000000\n```\n\nThat you can now use and plot for example:\n\n\n```\n% xcalibu ./mycalib.calib -p\n\n------------------------{ Xcalibu }----------------------------------\n[xcalibu] - log level = INFO (20)\nuse \"./mycalib.calib\" argument as calib test file\nXCALIBU - INFO - DATA lines read : 10\nXCALIBU - INFO - Ymin = 2 Ymax = 7 Nb points = 10\nXCALIBU - INFO - Xmin = 1 Xmax = 10 Nb points = 10\nXCALIBU - INFO - TABLE + INTERPOLATION => NO FIT\nXCALIBU - INFO - y value of 5.5 = 3.5 (3.361701965332031e-05)\nXCALIBU - INFO - Calculation of 25 values of y. duration : 0.00021958351135253906\nXCALIBU - INFO - Plotting\n\n%\n\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cguilloud/xcalibu", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "xcalibu", "package_url": "https://pypi.org/project/xcalibu/", "platform": "", "project_url": "https://pypi.org/project/xcalibu/", "project_urls": { "Homepage": "https://github.com/cguilloud/xcalibu" }, "release_url": "https://pypi.org/project/xcalibu/0.9.1/", "requires_dist": null, "requires_python": "", "summary": "Calibration library", "version": "0.9.1" }, "last_serial": 5873612, "releases": { "0.9.1": [ { "comment_text": "", "digests": { "md5": "f20e0c766deac4efafc726edc845778a", "sha256": "ce9e579d766fbc3f7fea4c45b74e78c82932a17de3afab49c77408b77e85f562" }, "downloads": -1, "filename": "xcalibu-0.9.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f20e0c766deac4efafc726edc845778a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 60197, "upload_time": "2019-09-23T13:19:34", "url": "https://files.pythonhosted.org/packages/50/fd/87a83adbe522946ccbde55141403dbfcb0080e08c7e6676daecbbbcbe15c/xcalibu-0.9.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "210320071c2ec39f686ca1aba8700521", "sha256": "0bef05d8719800a79fe1927aed9ea01f37883e6767c3f6dfb718a1f800081fc5" }, "downloads": -1, "filename": "xcalibu-0.9.1.tar.gz", "has_sig": false, "md5_digest": "210320071c2ec39f686ca1aba8700521", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 54582, "upload_time": "2019-09-23T13:19:37", "url": "https://files.pythonhosted.org/packages/a4/8a/ebecd34eddacf413418ab92e5c3d943f8749fc12db57ad65cd7567524762/xcalibu-0.9.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f20e0c766deac4efafc726edc845778a", "sha256": "ce9e579d766fbc3f7fea4c45b74e78c82932a17de3afab49c77408b77e85f562" }, "downloads": -1, "filename": "xcalibu-0.9.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f20e0c766deac4efafc726edc845778a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 60197, "upload_time": "2019-09-23T13:19:34", "url": "https://files.pythonhosted.org/packages/50/fd/87a83adbe522946ccbde55141403dbfcb0080e08c7e6676daecbbbcbe15c/xcalibu-0.9.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "210320071c2ec39f686ca1aba8700521", "sha256": "0bef05d8719800a79fe1927aed9ea01f37883e6767c3f6dfb718a1f800081fc5" }, "downloads": -1, "filename": "xcalibu-0.9.1.tar.gz", "has_sig": false, "md5_digest": "210320071c2ec39f686ca1aba8700521", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 54582, "upload_time": "2019-09-23T13:19:37", "url": "https://files.pythonhosted.org/packages/a4/8a/ebecd34eddacf413418ab92e5c3d943f8749fc12db57ad65cd7567524762/xcalibu-0.9.1.tar.gz" } ] }