Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 18 additions & 19 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,29 @@ on:

jobs:
deploy:
if: ${{ github.repository == 'slaclab/trace' }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.12]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
- uses: actions/checkout@v4
with:
miniforge-version: latest
use-mamba: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
activate-environment: trace-dev
environment-file: environment.yml
fetch-depth: 0
sparse-checkout: |
docs

- name: Build Docs
shell: bash -l {0}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install dependencies
run: |
mkdocs build
pip install -r docs-requirements.txt

- name: Build Docs
run: mkdocs build

- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site/
publish_dir: ./site
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,5 @@ debug_archive_viewer.bash
debug_trace.bash

# Image files
*.png
*.png
!docs/**/*.png
6 changes: 6 additions & 0 deletions docs-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
mkdocs
mkdocs-material
mkdocstrings
mkdocstrings-python
mkdocs-git-revision-date-localized-plugin
mkdocs-git-committers-plugin-2
3 changes: 0 additions & 3 deletions docs/api_reference/axis_table.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/api_reference/plot_config.md

This file was deleted.

28 changes: 0 additions & 28 deletions docs/api_reference/trace.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/api_reference/traces_table.md

This file was deleted.

57 changes: 57 additions & 0 deletions docs/arguments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Input Arguments & Macros

Trace supports several optional startup arguments and macros that allow users to customize its behavior at launch. These arguments let you specify input files, define process variables (PVs) to display, apply macro replacements, and access help or version information.

Below, you'll find a detailed overview of each available argument and example usage to help you configure Trace to fit your workflow.


## Config File

`-i INPUT_FILE` or `--input_file INPUT_FILE`

This argument allows users to [import] Trace config files, providing a way to recover a previous state of Trace. To make use of it, users should provide a filepath for the config file they want to use. The path can be either relative or absolute.

[import]: io.md

``` bash
pydm trace/main.py -i trace/examples/FormulaExample.trc
```


## Startup PVs

`-p PV1 PV2 ...` or `--pvs PV1 PV2 ...`

Users are able to provide a list of PVs to show traces for on startup. Each PV passed here will be represented by a curve on the plot.

``` bash
pydm trace/main.py -p FOO:BAR:CHANNEL SOME:OTHER:CHANNEL
```


## Macros

`-m MACRO` or `--macro MACRO`

Use PyDM's [macro substitution] system as another way of adding PVs or startup files to Trace. Adding PVs via macros is equivalent to adding them as an argument. This setup allows users to add traces from other PyDM widgets, such as the [PyDMRelatedDisplayButton].

[macro substitution]: https://slaclab.github.io/pydm/tutorials/intro/macros.html
[PyDMRelatedDisplayButton]: https://slaclab.github.io/pydm/widgets/related_display_button.html

``` bash
pydm trace/main.py -m '{"PVS": ["FOO:BAR:CHANNEL", "SOME:OTHER:CHANNEL"]}'
pydm trace/main.py -m "INPUT_FILE = trace/examples/FormulaExample.trc"
```


## Help Message

`-h` or `--help`

Shows Trace's help message, which outlines the available arguments for users.

## Version Number

`-v` or `--version`

Show Trace's current version/release number.
46 changes: 0 additions & 46 deletions docs/how_to/file_conversion.md

This file was deleted.

45 changes: 0 additions & 45 deletions docs/how_to/overview.md

This file was deleted.

78 changes: 0 additions & 78 deletions docs/how_to/traces.md

This file was deleted.

Binary file added docs/images/Trace_Screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/axis_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/config_section.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/footer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/formula_maker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/line_style.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/line_type.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/plot_section.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/search_tool.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/sections.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions docs/images/sqwave-blwh.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/trace_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/traces.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/y_axes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 22 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
---
hide:
- footer
- navigation
- toc
---

# Trace

[Trace](https://github.com/slaclab/trace) is a PyDM-based application developed at SLAC National Accelerator Laboratory. Trace has been built to replace the antiquated StripTool and Java Archive Viewer applications used to plot EPICS data. Trace is a flexible, modern application for plotting live data (Channel Access or PV Access), and historical data from the EPICS Archive Appliance. With built in conveniences like an archived PV search, and designed to be easily launched from PyDM widgets, files, or the command line, Trace will provide an improved user experience for accelerator staff. Trace is an open-source project.
[Trace] is a PyDM-based application developed at SLAC National Accelerator Laboratory.

[Trace]: https://github.com/slaclab/trace/

The motivation behind trace is as a replacement for the StripTool and Java Archive Viewer applications used to plot EPICS data. It is a flexible, modern application for plotting live data (Channel Access or PV Access), and historical data from the EPICS Archive Appliance.

With built in conveniences like an archived PV search, and designed to be easily launched from PyDM widgets, files, or the command line, Trace will provide an improved user experience for accelerator staff.

Trace is open-source and in active development, so don't hesitate to [request features] or [report bugs].

[request features]: https://github.com/slaclab/trace/issues/new?labels=enhancement&projects=&template=feature-request.yml&title=%5BFEATURE%5D+-+
[report bugs]: https://github.com/slaclab/trace/issues/new?labels=bug&projects=&template=bug-report.yml&title=%5BBUG%5D+-+

![Image of Trace](images/Index_Image.png)
<figure markdown="span">
![Trace Screenshot](images/trace_screenshot.png)
</figure>
Loading
Loading