{"id":19708757,"url":"https://github.com/bendudson/pyidam2","last_synced_at":"2025-08-21T07:42:34.871Z","repository":{"id":137712349,"uuid":"44773229","full_name":"bendudson/pyidam2","owner":"bendudson","description":"Python interface to IDAM","archived":false,"fork":false,"pushed_at":"2015-10-22T21:09:00.000Z","size":132,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T18:31:04.637Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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":null,"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":"2015-10-22T21:05:25.000Z","updated_at":"2015-10-23T08:55:05.000Z","dependencies_parsed_at":"2023-03-13T14:07:37.694Z","dependency_job_id":null,"html_url":"https://github.com/bendudson/pyidam2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bendudson/pyidam2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendudson%2Fpyidam2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendudson%2Fpyidam2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendudson%2Fpyidam2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendudson%2Fpyidam2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendudson","download_url":"https://codeload.github.com/bendudson/pyidam2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendudson%2Fpyidam2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271446928,"owners_count":24761423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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.749Z","updated_at":"2025-08-21T07:42:34.833Z","avatar_url":"https://github.com/bendudson.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"IDAM module for Python\n======================\n\nProvides a Python interface to D.G.Muir's IDAM library consisting of two modules:\n\n* _cidam    is a low-level interface to the IDAM library\n* pyidam    is a more Pythonic interface, recommended for most applications\n\nDeveloped by Ben Dudson, University of York \u003cbenjamin.dudson@york.ac.uk\u003e\n\nInstallation\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:\n\n* The NumPy python module (which provides fast arrays, amongst other things) \n* Cython\n\n1. Patch IDAM library. The idamclient.h header needed by Cython does not include\n   some required definitions. To get the code to compile, edit idamclient.h\n   and add somewhere near the top:\n\n    #include \"idamclientserver.h\"\n\n2. Edit the install script install.sh, setting IDAMPATH to point\n   to the IDAM libraries.\n\n3. Run the install script\n\n   $ ./install.sh\n\nCurrently this compiles the module in the current directory, rather than\ninstalling it in the system directory.\n\nUse\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) 2013, B.Dudson\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, Culham Centre for\n   Fusion Energy (CCFE) nor the names of its contributors may be\n   used to endorse or promote products derived from this software \n   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%2Fpyidam2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendudson%2Fpyidam2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendudson%2Fpyidam2/lists"}