{"id":15898992,"url":"https://github.com/danporter/hdf_scan_inspector","last_synced_at":"2025-04-02T19:14:25.058Z","repository":{"id":232327150,"uuid":"764611479","full_name":"DanPorter/hdf_scan_inspector","owner":"DanPorter","description":"Simple, lightweight tkGUIs for inspecting the structure of HDF and Nexus files.","archived":false,"fork":false,"pushed_at":"2024-09-05T11:12:00.000Z","size":230,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T09:45:38.293Z","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/DanPorter.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-28T11:52:53.000Z","updated_at":"2024-09-05T11:12:04.000Z","dependencies_parsed_at":"2024-04-09T06:28:03.070Z","dependency_job_id":"02c18bb1-a484-4b05-af67-2abd1950694a","html_url":"https://github.com/DanPorter/hdf_scan_inspector","commit_stats":null,"previous_names":["danporter/hdf_scan_inspector"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanPorter%2Fhdf_scan_inspector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanPorter%2Fhdf_scan_inspector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanPorter%2Fhdf_scan_inspector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanPorter%2Fhdf_scan_inspector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanPorter","download_url":"https://codeload.github.com/DanPorter/hdf_scan_inspector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246875909,"owners_count":20848049,"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","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-10-06T10:10:31.834Z","updated_at":"2025-04-02T19:14:25.035Z","avatar_url":"https://github.com/DanPorter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hdf_scan_inspector\nSimple, lightweight tkGUIs for inspecting the structure of HDF and Nexus files.\n\n![screenshot](gui_screenshot.png)\n\n**Version 0.1**\n\n| By Dan Porter        | \n|----------------------|\n| Diamond Light Source |\n| 2024                 |\n\n\n#### To run viewer:\n```commandline\n$ python -m hdf_scan_inspector 'file.hdf'\n```\n\nor in python:\n```python\nfrom hdf_scan_inspector import HDFViewer\nHDFViewer('file.nxs')\n\nfrom hdf_scan_inspector import dataset_selector\naddress = dataset_selector('file.nxs', 'Select your favourite dataset')\n\nimport h5py\nwith h5py.File('file.nxs', 'r') as hdf:\n    dataset = hdf.get(address)\n    data = dataset[()]\n    print(dataset)\n    print(data)\n```\n\n#### Requires:\n*h5py, tkinter, sv_ttk*\n\n\n#### HDFViewer:\nDisplay cascading hierarchical data within HDF file in ttk GUI\n```python\nHDFViewer(\"filename.h5\")\n```\nSimple ttk interface for browsing HDF file structures.\n - Click Browse or File\u003eSelect File to pick a HDF, H5 or NeXus file\n - Collapse and expand the tree to view the file structure\n - Search for addresses using the search bar\n - Click on a dataset or group to view stored attributes and data\n\n#### HDFSelector\nHDF Dataset Selector - simple ttk interface to view file structure and select an address\n```python\naddress = HDFSelector(\"hdf_file.h5\").show()\n```\n        \nUpon opening, the GUI will wait for until a dataset address is selected.\n - Double-click on a dataset to return the address of that dataset.\n - start typing on the keyboard to search through dataset names\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanporter%2Fhdf_scan_inspector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanporter%2Fhdf_scan_inspector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanporter%2Fhdf_scan_inspector/lists"}