Skip to content

Commit

Permalink
Merge pull request #11 from mustafacc/main
Browse files Browse the repository at this point in the history
add launch gui via cli option
  • Loading branch information
mustafacc authored Jun 12, 2024
2 parents 0640943 + bf6c435 commit 65bd4ac
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ A tool for creating YAML files for use across UBC probe stations. This aplicatio

Find here instruction on the work flow of the application

The GUI can be launched using the terminal or via python. For an example using python, see [run_gui.py](example/run_gui.py). To launch the GUI via the terminal, execute the command below:
```
siepic_testcreator --gui
```


![](readme_images/example_load.png)
![](readme_images/extractcoordlabels.png)

Expand All @@ -29,6 +35,7 @@ Find here instruction on the work flow of the application
![](readme_images/time_limit.png)
![](readme_images/seting_routines.png)


## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
9 changes: 9 additions & 0 deletions app/siepic_testcreator/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import sys
from siepic_testcreator.sequencecreator import launch

def main():
if '--gui' in sys.argv:
launch()

if __name__ == "__main__":
main()
4 changes: 2 additions & 2 deletions example/run_gui.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#%%
import dreamcreator
import siepic_testcreator

if __name__ == "__main__":
dreamcreator.sequencecreator.launch()
siepic_testcreator.sequencecreator.launch()
# %%
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@
with open("app/README.md", "r") as f:
long_description = f.read()


setup(
name = "SiEPIC_TestCreator",
version = "0.1.5",
description = "A tool for creating YAML files for use in Dream Photonics and edx course",
package_dir = {"": "app"},
packages = find_packages(where="app"),
entry_points={
'console_scripts': [
'siepic_testcreator=siepic_testcreator.__main__:main'
],
},
long_description = long_description,
long_description_content_type = "text/markdown",
url = "https://github.com/SiEPIC/SiEPIC_testcreator.git",
Expand Down

0 comments on commit 65bd4ac

Please sign in to comment.