Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zhang, Tong
Online Model App
Commits
b5b16458
Commit
b5b16458
authored
Aug 16, 2021
by
Tong Zhang
Browse files
MNT: Housekeeping after renaming package and launcher.
parent
6ce7093b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
b5b16458
...
...
@@ -10,7 +10,7 @@ deploy: build
python3
-m
pip
install
dist/
*
.whl
--upgrade
--user
uninstall
:
cd
$(HOME)
&&
python3
-m
pip uninstall aris
-y
cd
$(HOME)
&&
python3
-m
pip uninstall aris
-apps
-y
run
:
redeploy
beam_ellipse
online_model
README.md
View file @
b5b16458
...
...
@@ -17,13 +17,13 @@ Terminal.
```
shell
# the working directory is /tmp
$
makeBasePyQtApp
--app
aris-va-ellipse
--template
AppWindow
What
's the name of this package? (default: mypkg) aris
What'
s the name of the app, also the
command
to run it?
(
default: myApp
)
beam_ellipse
What
's the name of this package? (default: mypkg) aris
_apps
What'
s the name of the app, also the
command
to run it?
(
default: myApp
)
online_model
Generating aris-va-ellipse with template AppWindow...
Successfully made an base app at
'/tmp/aris-va-ellipse'
.
What to
do
next:
>
Install package:
cd
/tmp/aris-va-ellipse
;
make deploy
>
Run app by executing
beam_ellipse
>
Run app by executing
online_model
>
Edit .ui file with
'frib_designer'
, and the .py files.
>
Update the package:
cd
/tmp/aris-va-ellipse
;
make redeploy
>
Happy Coding!
...
...
@@ -36,7 +36,7 @@ export PHANTASY_CONFIG_DIR=$HOME/phantasy-machines
```
Start VA from Terminal:
```
shell
phytool flame-vastart
--mach
ARIS
--subm
F1
phytool flame-vastart
--mach
ARIS
_VA
--subm
F1
```
## Communicate with ARIS VA
...
...
@@ -45,7 +45,7 @@ Use ``phantasy`` to control the VA in an interactively way in Python terminal.
from
phantasy
import
MachinePortal
# Instantiate the portal of the machine
mp
=
MachinePortal
(
"ARIS"
,
"F1"
)
mp
=
MachinePortal
(
"ARIS
_VA
"
,
"F1"
)
# Find the device by type, see the doc of mp.get_elements()
# first quad could be found by:
...
...
@@ -63,12 +63,12 @@ quad0.B2 = 10
1.
Edit .ui file in
``frib_designer``
, which is a command tool from package
``phantasy_ui``
;
2.
Convert .ui files to .py files by executing
`make`
in the ui folder;
3.
In the project root folder, type
`make redeploy`
to update the package and execute the command
(i.e.
``
beam_ellipse
``
) to run the app, or just type
`make run`
;
4.
Uninstall the package by:
``pip uninstall <pkg_name>``
(for this case, pkg_name is
`aris`
),
(i.e.
``
online_model
``
) to run the app, or just type
`make run`
;
4.
Uninstall the package by:
``pip uninstall <pkg_name>``
(for this case, pkg_name is
`aris
_apps
`
),
or type
`make uninstall`
.
## Note
If the command
``
beam_ellipse
``
cannot be found, you'll have to update
``PATH``
env, i.e.
If the command
``
online_model
``
cannot be found, you'll have to update
``PATH``
env, i.e.
```
shell
echo
'export PATH=$HOME/.local/bin:$PATH'
>>
~/.bashrc
```
setup.py
View file @
b5b16458
...
...
@@ -7,7 +7,7 @@
from
setuptools
import
setup
PKG_NAME
=
"aris
-
apps"
PKG_NAME
=
"aris
_
apps"
EXE_NAME
=
"online_model"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment