{"id":18562001,"url":"https://github.com/timstaley/pyds9_ex","last_synced_at":"2025-05-15T17:34:53.142Z","repository":{"id":2723946,"uuid":"3718742","full_name":"timstaley/pyds9_ex","owner":"timstaley","description":"Extensions to the pyds9 package, providing easy scripting of the ds9 fits file viewer from python.","archived":false,"fork":false,"pushed_at":"2012-03-14T19:01:09.000Z","size":96,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-17T12:45:27.890Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/timstaley.png","metadata":{"files":{"readme":"README.rst","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":"2012-03-14T14:58:18.000Z","updated_at":"2022-12-04T23:55:54.000Z","dependencies_parsed_at":"2022-09-19T01:51:59.172Z","dependency_job_id":null,"html_url":"https://github.com/timstaley/pyds9_ex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timstaley%2Fpyds9_ex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timstaley%2Fpyds9_ex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timstaley%2Fpyds9_ex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timstaley%2Fpyds9_ex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timstaley","download_url":"https://codeload.github.com/timstaley/pyds9_ex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254388195,"owners_count":22063004,"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-11-06T22:08:31.400Z","updated_at":"2025-05-15T17:34:53.121Z","avatar_url":"https://github.com/timstaley.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\npyds9_ex\n======================\n\nA lightweight wrapper class and associated functions, \nadding extended functionality and ease of use to the pyds9 package. \n\n---------------------------------------------------------------------\n\nThe main aims are: \n - To provide python bindings for common actions, in order to avoid frequent use of error prone ``ds9.set(some_command_string)``, etc.\n - To make complex interactions with multiple frames more streamlined.\n\nPrerequisites: ds9, xpa, pyds9\n\nNote that this mini-project is very much in the alpha stage - essentially I threw it together during an afternoon, and I'm currently adding functionality as and when I need it. As such, there is not yet any packaging or testing, let alone suggestion of reliability. \n*(Note a quick and dirty method of installation is to symlink the ds9_ex folder from ~/.local/python2.7/site-packages )*\n\n\nI've decided to publish the code anyway as \n - It might attract the attention of collaborators / perhaps this sort of functionality could be integrated into the original pyds9 package.\n - It might save somebody some time by functioning as a template.\n - I'm trying to move towards a practice of 'publish everything when possible' , and this seemed like a good place to start.\n\nI'm also quietly pleased with the ``@per_frame`` function decorator. \nThis takes a function and binds in an additional wrapped version with the prefix ``all_``\nthat will apply the action to all frames,\nso for example implementing a zoom function:\n\n    ``foo.zoom_to(4) # zoom active frame to 4x``\n\ntrivially provides the same functionality for all frames: \n\n    ``foo.all_zoom_to(4) # zoom all frames to 4x``\n\nApplying the same action to all frames is particularly useful when say, panning around filtered and original versions of an image, in tandem.\n\n\nComments and collaborators very welcome!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimstaley%2Fpyds9_ex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimstaley%2Fpyds9_ex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimstaley%2Fpyds9_ex/lists"}