From 8260089ae67bd8211e24a47a8187de46b7d0d1ae Mon Sep 17 00:00:00 2001 From: Paul Moeller Date: Thu, 5 Mar 2026 21:35:59 +0000 Subject: [PATCH 1/2] fix #196 hello world sliclet --- slicops/package_data/sliclet/hello.yaml | 9 +++++++++ slicops/sliclet/hello.py | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 slicops/package_data/sliclet/hello.yaml create mode 100644 slicops/sliclet/hello.py diff --git a/slicops/package_data/sliclet/hello.yaml b/slicops/package_data/sliclet/hello.yaml new file mode 100644 index 0000000..2fbf123 --- /dev/null +++ b/slicops/package_data/sliclet/hello.yaml @@ -0,0 +1,9 @@ +fields: + message: + prototype: String + ui: + writable: false + value: Hello World! + +ui_layout: + - message diff --git a/slicops/sliclet/hello.py b/slicops/sliclet/hello.py new file mode 100644 index 0000000..9895479 --- /dev/null +++ b/slicops/sliclet/hello.py @@ -0,0 +1,12 @@ +"""Hello World Sliclet + +:copyright: Copyright (c) 2026 The Board of Trustees of the Leland Stanford Junior University, through SLAC National Accelerator Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All Rights Reserved. +:license: http://github.com/slaclab/slicops/LICENSE +""" + +import slicops.sliclet + +class Hello(slicops.sliclet.Base): + pass + +CLASS = Hello From 5b24fe17a23a532fd84171d2ae405382ad99aad3 Mon Sep 17 00:00:00 2001 From: Paul Moeller Date: Thu, 5 Mar 2026 21:39:50 +0000 Subject: [PATCH 2/2] run fmt --- slicops/sliclet/hello.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/slicops/sliclet/hello.py b/slicops/sliclet/hello.py index 9895479..f49eadb 100644 --- a/slicops/sliclet/hello.py +++ b/slicops/sliclet/hello.py @@ -6,7 +6,9 @@ import slicops.sliclet + class Hello(slicops.sliclet.Base): pass + CLASS = Hello