Skip to content

Commit

Permalink
Merge pull request #991 from slaclab/pre-release
Browse files Browse the repository at this point in the history
Release Candidate v6.1.4
  • Loading branch information
slacrherbst authored Mar 27, 2024
2 parents 04d1e8a + eda4964 commit de67a57
Show file tree
Hide file tree
Showing 23 changed files with 1,166 additions and 737 deletions.
1 change: 1 addition & 0 deletions docs/src/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ branch of Rogue. New documentation is being added incrementally over time.
:caption: Contents:

installing/index
pyrogue_tree/index
interfaces/index
utilities/index
hardware/index
Expand Down
4 changes: 2 additions & 2 deletions docs/src/installing/anaconda.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Alternatively you can install a specific released version of Rogue:

.. code::
$ conda create -n rogue_v6.0.0 -c conda-forge -c tidair-tag rogue=v6.0.0
$ conda create -n rogue_v6.1.3 -c conda-forge -c tidair-tag rogue=v6.1.3
Using Rogue In Anaconda
=======================
Expand All @@ -71,7 +71,7 @@ To activate:
$ conda activate rogue_tag
Replace rogue_tag with the name you used when creating your environment (e.g. rogue_v6.0.0).
Replace rogue_tag with the name you used when creating your environment (e.g. rogue_v6.1.3).


To deactivate:
Expand Down
27 changes: 14 additions & 13 deletions docs/src/installing/petalinux.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@ You will want to replace the file project-spec/meta-user/recipes-apps/rogue/rogu

.. code::
ROGUE_VERSION = "6.0.0"
ROGUE_MD5SUM = "42d6ffe9894c10a5d0e4c43834878e73"
ROGUE_VERSION = "6.1.3"
ROGUE_MD5SUM = "1df912b8525c01930bb869c3a2b2e7e3"
SUMMARY = "Recipe to build Rogue"
HOMEPAGE ="https://github.com/slaclab/rogue"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "https://github.com/slaclab/rogue/archive/v${ROGUE_VERSION}.tar.gz"
SRC_URI[md5sum] = "${ROGUE_MD5SUM}"
S = "${WORKDIR}/rogue-${ROGUE_VERSION}"
PROVIDES = "rogue"
EXTRA_OECMAKE += "-DROGUE_INSTALL=system -DROGUE_VERSION=v${ROGUE_VERSION}"
# Note: distutils3 is depreciated in petalinux 2023.1 and need to switch to setuptools3
# Note: distutils3 is depreciated (not removed) in petalinux 2023.2 and need to switch to setuptools3 in petalinux 2024 release
inherit cmake python3native distutils3
DEPENDS += " \
python3 \
python3-native \
Expand All @@ -52,7 +52,7 @@ You will want to replace the file project-spec/meta-user/recipes-apps/rogue/rogu
boost \
cmake \
"
RDEPENDS:${PN} += " \
python3-numpy \
python3-pyzmq \
Expand All @@ -64,21 +64,22 @@ You will want to replace the file project-spec/meta-user/recipes-apps/rogue/rogu
python3-json \
python3-logging \
"
FILES:${PN}-dev += "/usr/include/rogue/*"
FILES:${PN} += "/usr/lib/*"
do_configure:prepend() {
cmake_do_configure
bbplain $(cp -vH ${WORKDIR}/build/setup.py ${S}/.)
bbplain $(sed -i "s/..\/python/python/" ${S}/setup.py)
}
do_install:prepend() {
cmake_do_install
}
Update the ROGUE_VERSION line for an updated version when appropriate (min version is 5.6.1). You will need to first download the tar.gz file and compute the MD5SUM using the following commands if you update the ROGUE_VERSION line:
Update the ROGUE_VERSION line for an updated version when appropriate (min version is 6.1.3). You will need to first download the tar.gz file and compute the MD5SUM using the following commands if you update the ROGUE_VERSION line:

.. code::
Expand All @@ -99,8 +100,8 @@ In order to install the rogue headers you will need to enable the rogue-dev pack

.. code::
CONFIG_rogue=y
CONFIG_rogue-dev=y
echo CONFIG_rogue=y >> project-spec/configs/rootfs_config
echo CONFIG_rogue-dev=y >> project-spec/configs/rootfs_config
You can then build the rogue package with the following command:

Expand Down
2 changes: 1 addition & 1 deletion docs/src/interfaces/clients/virtual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ The VariableWait helper function can also be used.
.. code-block:: python
# Wait for the uptime to be greater than 1000 seconds
VariableWait(root.AxiVersion.UpTime, lambda varValues: varValues['root.UpTime'].value > 1000)
VariableWait([root.AxiVersion.UpTime], lambda varValues: varValues[0].value > 1000)
The VirtualClient maintains a connection to the Rogue core. The status of this connection
can be directly accessed through the linked attribute. Additionally a callback function
Expand Down
8 changes: 4 additions & 4 deletions docs/src/interfaces/stream/usingTcp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ on the client. The Python server is able to interface with either a Python or C+
# Local receiver
dst = MyCustomSlave()
# Start a TCP Bridge Server, Listen on ports 8000 & 8001 on all interfaces
# Start a TCP Bridge Server, Listen on ports 8000 & 8001 on localhost
# Pass an address of 192.168.1.1 to listen on only that specific interface
tcp = rogue.interfaces.stream.TcpServer("*",8000)
tcp = rogue.interfaces.stream.TcpServer("127.0.0.1",8000)
# Connect the transmitter and the receiver
src >> tcp >> dst
Expand Down Expand Up @@ -77,9 +77,9 @@ on the client. The C++ server is able to interface with either a Python or C++
// Local receiver
MyCustomSlavePtr dst = MyCustomSlave::create()
// Start a TCP Bridge Server, Listen on all interfaces, ports 8000 & 8001.
// Start a TCP Bridge Server, Listen on localhost, ports 8000 & 8001.
// Pass an address of 192.168.1.1 to listen on only that specific interface
rogue::interfaces::stream::TcpServerPtr tcp = rogue::interfaces::stream::TcpServer::create("*",8000)
rogue::interfaces::stream::TcpServerPtr tcp = rogue::interfaces::stream::TcpServer::create("127.0.0.1",8000)
// Connect the transmitter
*( *src >> tcp ) >> dst;
Expand Down
14 changes: 14 additions & 0 deletions docs/src/pyrogue_tree/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.. _pyrogue_tree:

================
PyRogue Tree
================

The PyRogue Tree implements a tree structure for the hierarchical organization of devices ...

.. toctree::
:maxdepth: 1
:caption: Using Nodes In The PyRogue Tree:

node/index

49 changes: 49 additions & 0 deletions docs/src/pyrogue_tree/node/command/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
.. _pyrogue_tree_node_command:

=======
Command
=======

The Command class ...

In this example ...

Python Command Example
======================

Below is an example of creating a Command which ...

.. code-block:: python
import pyrogue
# Create a subclass of a command
class MyCommand(...):
C++ Command Example
===================

Below is an example of creating a Command device in C++.

.. code-block:: c
#include <rogue/interfaces/memory/Constants.h>
#include <boost/thread.hpp>
// Create a subclass of a command
class MyCommand : public rogue:: ... {
public:
protected:
};
A few notes on the above examples ...

.. toctree::
:maxdepth: 1
:caption: Types Of Commands In The PyRogue Tree:

local_command/index
remote_command/index

42 changes: 42 additions & 0 deletions docs/src/pyrogue_tree/node/command/local_command/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
.. _pyrogue_tree_node_command_local_command:

============
LocalCommand
============

The LocalCommand class ...

In this example ...

Python LocalCommand Example
===========================

Below is an example of creating a LocalCommand which ...

.. code-block:: python
import pyrogue
# Create a subclass of a LocalCommand
class MyLocalCommand(...):
C++ LocalCommand Example
========================

Below is an example of creating a LocalCommand device in C++.

.. code-block:: c
#include <rogue/interfaces/memory/Constants.h>
#include <boost/thread.hpp>
// Create a subclass of a LocalCommand
class MyLocalCommand : public rogue:: ... {
public:
protected:
};
A few notes on the above examples ...

42 changes: 42 additions & 0 deletions docs/src/pyrogue_tree/node/command/remote_command/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
.. _pyrogue_tree_node_command_remote_command:

=============
RemoteCommand
=============

The RemoteCommand class ...

In this example ...

Python RemoteCommand Example
============================

Below is an example of creating a RemoteCommand which ...

.. code-block:: python
import pyrogue
# Create a subclass of a RemoteCommand
class MyRemoteCommand(...):
C++ RemoteCommand Example
=========================

Below is an example of creating a RemoteCommand device in C++.

.. code-block:: c
#include <rogue/interfaces/memory/Constants.h>
#include <boost/thread.hpp>
// Create a subclass of a RemoteCommand
class MyRemoteCommand : public rogue:: ... {
public:
protected:
};
A few notes on the above examples ...

42 changes: 42 additions & 0 deletions docs/src/pyrogue_tree/node/device/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
.. _pyrogue_tree_node_device:

======
Device
======

The Device class ...

In this example ...

Python Device Example
=====================

Below is an example of creating a Device which ...

.. code-block:: python
import pyrogue
# Create a subclass of a Device
class MyDevice(...):
C++ Device Example
==================

Below is an example of creating a Device class in C++.

.. code-block:: c
#include <rogue/interfaces/memory/Constants.h>
#include <boost/thread.hpp>
// Create a subclass of a Device
class MyDevice : public rogue:: ... {
public:
protected:
};
A few notes on the above examples ...

17 changes: 17 additions & 0 deletions docs/src/pyrogue_tree/node/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.. _pyrogue_tree_node:

====
Node
====

The Node class is the base class of all devices ...

.. toctree::
:maxdepth: 1
:caption: Types Of Nodes In The PyRogue Tree:

root/index
device/index
command/index
variable/index

42 changes: 42 additions & 0 deletions docs/src/pyrogue_tree/node/root/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
.. _pyrogue_tree_node_root:

====
Root
====

The Root class ...

In this example ...

Python Root Example
===================

Below is an example of creating a root which ...

.. code-block:: python
import pyrogue
# Create a subclass of a root
class MyRoot(...):
C++ Root Example
================

Below is an example of creating a root device in C++.

.. code-block:: c
#include <rogue/interfaces/memory/Constants.h>
#include <boost/thread.hpp>
// Create a subclass of a root
class MyRoot : public rogue:: ... {
public:
protected:
};
A few notes on the above examples ...

Loading

0 comments on commit de67a57

Please sign in to comment.