{"id":20687505,"url":"https://github.com/mrakitin/srw-gui","last_synced_at":"2026-06-30T17:32:11.460Z","repository":{"id":88973947,"uuid":"88455016","full_name":"mrakitin/SRW-gui","owner":"mrakitin","description":"Prototype of the TkInter GUI for SRW","archived":false,"fork":false,"pushed_at":"2017-04-17T02:26:07.000Z","size":1163,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-05T02:30:06.713Z","etag":null,"topics":["gui","python","tkinter"],"latest_commit_sha":null,"homepage":"https://mrakitin.xyz/projects#2015.07","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrakitin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2017-04-17T01:27:51.000Z","updated_at":"2017-04-17T04:06:26.000Z","dependencies_parsed_at":"2023-06-13T09:30:25.212Z","dependency_job_id":null,"html_url":"https://github.com/mrakitin/SRW-gui","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrakitin/SRW-gui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrakitin%2FSRW-gui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrakitin%2FSRW-gui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrakitin%2FSRW-gui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrakitin%2FSRW-gui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrakitin","download_url":"https://codeload.github.com/mrakitin/SRW-gui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrakitin%2FSRW-gui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34977667,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"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":["gui","python","tkinter"],"created_at":"2024-11-16T22:57:31.998Z","updated_at":"2026-06-30T17:32:11.431Z","avatar_url":"https://github.com/mrakitin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SRW-gui\nPrototype of the TkInter GUI for SRW. Should work out-of-the-box with Python 2.7 (x64) with the pre-installed PIL (`pip install pillow`). For other Python versions you will need to compile SRW and remove the following files:\n- [srwlib.py](srwlib.py)\n- [srwlpy.pyd](srwlpy.pyd)\n- [SRWLIB_ExampleViewDataFile.py](SRWLIB_ExampleViewDataFile.py)\n- [uti_plot.py](uti_plot.py)\n\n## Execution workflow:\n- Set up an optical scheme:\n![](screenshots/screenshot_gui.png)\n\n- Perform the simulation:\n![](screenshots/screenshot_execution.png)\n\n- Visualize the results:\n![](screenshots/screenshot_results.png)\n\nConsole log:\n```\nC:\\bin\\mrakitin\\SRW-gui\u003eC:\\Python27\\python SRWSMI2.1KeV_CRLb.py\n\n================================================================================\n                             Parameters:\n--------------------------------------------------------------------------------\nAPE             :                           29.5\nCRL             :                        10.4052\nDCM             :                           2.44\nHFM             :                       3.023696\nSSA             :                            8.0\nSample          :                            3.9\nVFM             :                           3.42\nVM              :                            0.7\nbeamline        :                            ES2\ndefaults        : {'Sample': 3.9, 'VFM': 3.42, 'DCM': 2.44, 'HFM': 3.023696, 'SSA': 8.0, 'VM': 0.7, 'CRL': 10.4052, 'APE': 29.5}\nmirror_file     : C:\\bin\\mrakitin\\SRW-gui\\smi21crlb\\mirror2_copy.dat\n================================================================================\n\nmodeling SMI beamline ES2 with bump = True\nCalculating spectral flux of undulator radiation by finite-emittance electron beam collected through a finite aperture\n   Setup Magnetic Field for Undulator ... done\n   Setup Electron Beam for Undulator ... done\n   Setup Stokes mesh ... done\nOptical Element Setup: CRL Focal Length: 1.28086332894 m\n   Performing Single Electron calculation ... done\n   Saving Single Electron UR Intensity ... done\n   Performing Single Electron Radiation Propagation ... done\n   Saving Single Electron Propagated Intensity ... done\nSwitching from Coordinate to Angular Representation ... done\nExtracting Intensity from the Propagated Electric Field in Angular Representation  ... done\nCalculation completed, data is saved in:\nC:\\bin\\mrakitin\\SRW-gui\\smi21crlb\\prop_se_ang.dat\n\nC:\\bin\\mrakitin\\SRW-gui\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrakitin%2Fsrw-gui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrakitin%2Fsrw-gui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrakitin%2Fsrw-gui/lists"}