{"id":20931827,"url":"https://github.com/hyperspy/hyperspy_swift_library","last_synced_at":"2026-04-27T01:31:10.879Z","repository":{"id":46997906,"uuid":"194288132","full_name":"hyperspy/hyperspy_swift_library","owner":"hyperspy","description":"HyperSpy Nion Swift Library reader","archived":false,"fork":false,"pushed_at":"2022-10-25T16:19:25.000Z","size":25819,"stargazers_count":0,"open_issues_count":2,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-01-02T07:21:36.420Z","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/hyperspy.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}},"created_at":"2019-06-28T14:35:32.000Z","updated_at":"2022-10-25T16:19:32.000Z","dependencies_parsed_at":"2023-01-20T08:05:00.924Z","dependency_job_id":null,"html_url":"https://github.com/hyperspy/hyperspy_swift_library","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hyperspy/hyperspy_swift_library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperspy%2Fhyperspy_swift_library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperspy%2Fhyperspy_swift_library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperspy%2Fhyperspy_swift_library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperspy%2Fhyperspy_swift_library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperspy","download_url":"https://codeload.github.com/hyperspy/hyperspy_swift_library/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperspy%2Fhyperspy_swift_library/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32319559,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"ssl_error","status_checked_at":"2026-04-26T23:26:25.802Z","response_time":129,"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-18T21:45:57.335Z","updated_at":"2026-04-27T01:31:10.861Z","avatar_url":"https://github.com/hyperspy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hyperspy Swift Library\n\nRead Nion Swift libraries into HyperSpy object.\n\n\n## Installation\n\nThis package depends on [Nion Swift](https://github.com/nion-software/nionswift). [Installing\nit](https://nionswift.readthedocs.io/en/stable/installation.html) with ``conda``\nbefore installing ``hyperspy_swift_library`` is recommended.\n\n\n```bash\npip install --upgrade https://github.com/hyperspy/hyperspy_swift_library/archive/master.tar.gz\n```\n\n## Usage\n\n```python\n\u003e\u003e\u003e from hyperspy_swift_library import SwiftLibraryReader\n\u003e\u003e\u003e project = SwiftLibraryReader(\"Nion Swift Project 20221025.nsproj\")\n```\n\nIf [pandas]() is installed, the `get_data_items_properties` returns a Pandas `DataFrame`.\n\nUsing Pandas syntax, it is very easy to select the information that you want to display.\nFor example, to display only the title and data_shape columns of the `DataFrame`:\n\n```python\n\u003e\u003e\u003e df = project.get_data_items_properties()\n\u003e\u003e\u003e df[[\"title\", \"data_shape\"]]\n                                title        data_shape\n0                                EELS       [128, 1024]\n1                     Orsay Scan (BF)        [512, 512]\n2                                EELS            [1024]\n3              Orsay Scan (eels_spim)  [256, 256, 1024]\n4  Pick Sum of Orsay Scan (eels_spim)        \u003cNot data\u003e\n```\n\nTo filter data based on its title:\n\n```python\n\u003e\u003e\u003e df[df['title'].str.endswith(\"(BF)\")]['title']\n1    Orsay Scan (BF)\nName: title, dtype: object\n```\n\nTo load data as a HyperSpy signal:\n\n```python\n\u003e\u003e\u003e s = project.load_data(0)\n\u003e\u003e\u003e s\n\u003cLazySignal2D, title: , dimensions: (|1024, 128)\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperspy%2Fhyperspy_swift_library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperspy%2Fhyperspy_swift_library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperspy%2Fhyperspy_swift_library/lists"}