Skip to content

Commit

Permalink
fix(trame): Update to support trame v3
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Jul 21, 2023
1 parent 4d9306f commit 0ea4a0c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
9 changes: 9 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ peacock-trame

MOOSE GUI developed using Trame from Kitware Inc.

- `Blog post <https://www.kitware.com/the-evolution-of-peacock-a-powerful-interface-for-moose-simulations/>`_
- `Video <https://vimeo.com/838073269>`_

|image_1|

.. |image_1| image:: https://www.kitware.com/main/wp-content/uploads/2023/06/image1-1-1024x601.png
:width: 50%


License
-----------------------------------------------------------

Expand Down
7 changes: 3 additions & 4 deletions peacock_trame/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from .app import main
import os

__all__ = [
"main",
]
# Disable warning
os.environ["TRAME_DISABLE_V3_WARNING"] = "1"
4 changes: 4 additions & 0 deletions peacock_trame/app/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from .main import main

if __name__ == "__main__":
main()
3 changes: 3 additions & 0 deletions peacock_trame/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ def main(server=None, **kwargs):
if isinstance(server, str):
server = get_server(server)

# Set client type
server.client_type = "vue2"

# parse args
parser = server.cli
parser.add_argument("-I", "--input", help="Input file (.i)")
Expand Down
5 changes: 4 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,16 @@ packages = find:
include_package_data = True
install_requires =
trame
trame-vuetify
trame-vtk
trame-xterm
trame-simput
pyaml
numpy # come with ParaView

[options.entry_points]
console_scripts =
peacock-trame = peacock_trame:main
peacock-trame = peacock_trame.app:main
jupyter_serverproxy_servers =
peacock-trame = peacock_trame.app.jupyter:jupyter_proxy_info

Expand Down

0 comments on commit 0ea4a0c

Please sign in to comment.