{"id":19708755,"url":"https://github.com/bendudson/pyidam","last_synced_at":"2026-04-14T02:31:55.920Z","repository":{"id":2987003,"uuid":"4003199","full_name":"bendudson/PyIDAM","owner":"bendudson","description":"Access to IDAM data server from Python","archived":false,"fork":false,"pushed_at":"2015-10-23T09:33:18.000Z","size":140,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T18:31:03.998Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bendudson.png","metadata":{"files":{"readme":"README","changelog":"CHANGELOG","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-04-12T09:35:38.000Z","updated_at":"2021-04-17T11:37:08.000Z","dependencies_parsed_at":"2022-08-31T04:20:48.314Z","dependency_job_id":null,"html_url":"https://github.com/bendudson/PyIDAM","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bendudson/PyIDAM","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendudson%2FPyIDAM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendudson%2FPyIDAM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendudson%2FPyIDAM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendudson%2FPyIDAM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendudson","download_url":"https://codeload.github.com/bendudson/PyIDAM/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendudson%2FPyIDAM/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31779943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T21:44:45.562Z","updated_at":"2026-04-14T02:31:55.895Z","avatar_url":"https://github.com/bendudson.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nIDAM module for Python, providing a interface to D.G.Muir's IDAM library\n\nReleased under the BSD license (see below)\n\nQuestions to Ben Dudson, University of York\nEmail: bd512@york.ac.uk\n\nInstalling\n==========\n\nTo install this module, first compile the IDAM shared library \n(by D.G.Muir). This will then produce a shared library\n\"libidam.so\". This should be copied into somewhere in your\nLD_LIBRARY_PATH (e.g. /usr/lib/\")\n\nYou will need to have installed the NumPy python module\n(which provides fast arrays, amongst other things)\n\n\nRun the install script install.sh:\n\n./install.sh\n\nor alternatively edit setup.py, set 'idamdir' to the directory containing\nthe idam library source code, and run\n\npython setup.py install\n\nNote: You'll need adminstrator rights for this step, since\nit copies the library into Python's site-packages directory.\n\nUsing\n=====\n\npython\n\n\u003e\u003e\u003e import idam   # Load the library\n\n\u003e\u003e\u003e idam.setHost(\"mast.fusion.org.uk\")         # Change the host name\n\u003e\u003e\u003e idam.setHost(\"mast.fusion.org.uk\", 56565)  # Change host name and port\n\u003e\u003e\u003e idam.setPort(56565)                        # Change port number\n\n\u003e\u003e\u003e idam.setProperty(\"verbose\")                # Set IDAM library property\n\u003e\u003e\u003e idam.setProperty(\"verbose\", False)         # Reset property\n\n\u003e\u003e\u003e d = idam.Data(\"amc_plasma current\", 15100) # Read a data object for MAST shot\n\n\u003e\u003e\u003e d = idam.Data(\"\\\\top.inputs:cur\", \"MDSPLUS::fuslwn.culham.ukaea.org.uk/trmast/159052601\")\n                                               # Read an MDS+ tree data object\n\n\u003e\u003e\u003e d = idam.Data(\"\\\\top.magn:ipla\", \"MDSPLUS::mdsplus.jet.efda.org/ppf/56000\");\n                                               # Read a JET MDS+ data object\n\nidam.Data() can also be given host=\"hostname\" and port=portnumber keywords.\n\n\nThe data object returned has the following members:\n\nData\n |- name   # The name used to request the data (e.g. \"amc_plasma current\")\n |- source # Source of the data as a string (e.g. \"15100\")\n |- label  # Short description (e.g. \"Plasma Current\")\n |- units  # Data units (e.g. \"kA\")\n |- desc   # longer description (if set)\n |\n |- data   # NumPy array of the data\n |- errl   # Low-side error (may be None)\n |- errh   # High-side error (may be None)\n |\n |- dim    # A list of dimensions, each of which contains:\n |   |\n |   |- label # Short axis label (e.g. \"Time (sec)\")\n |   |- units # (e.g. \"s\")\n |   |- data  # Axis values (NumPy array)\n |   |- errl  # Low-side error (may be None)\n |   |- errh  # High-side error (may be None)\n |\n |- order  # Index of time dimension\n |\n |- time   # A shortcut to the time data (dim[order].data). May be None\n\nIf no errors are available, then BOTH errl and errh will be None. \nIf the error is symmetric, then errl will be equal to errh\n\nLicense\n=======\n\nCopyright (c) 2009, B.Dudson, University of York\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n\n1. Redistributions of source code must retain the above copyright\n   notice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright\n   notice, this list of conditions and the following disclaimer in\n   the documentation and/or other materials provided with the\n   distribution.\n\n3. Neither the name of the University of York nor the names of its\n   contributors may be used to endorse or promote products derived\n   from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\nFOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\nCOPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\nINCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\nBUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\nLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\nANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendudson%2Fpyidam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendudson%2Fpyidam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendudson%2Fpyidam/lists"}