Skip to content

Commit cda3ab2

Browse files
committed
Bump version and fix docs
1 parent e8c9c3b commit cda3ab2

4 files changed

Lines changed: 17 additions & 4 deletions

File tree

build_docs.sh

100644100755
File mode changed.

pixi.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "nova-epics"
3-
version = "0.1.0"
4-
description = "A Python Package for "
3+
version = "0.2.0"
4+
description = "A Python Package for retrieving unprivileged instrument status information from EPICS for use in NOVA applications."
55
authors = [
66
{ name = "John Duggan", email = "dugganjw@ornl.gov" }
77
]

src/nova/epics/trame.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@ def _replace_macros(self, pv_name: str, macro_dict: Dict[str, str]) -> str:
4040
return full_name
4141

4242
def connect(self, xml: str, macros: str, detector_count: int) -> None:
43+
"""Connects to the EPICS Tomcat server and pulls initial PV values.
44+
45+
Parameters
46+
----------
47+
xml : str
48+
The contents of the XML config file for the instrument to pull PVs for.
49+
macros : str
50+
The macros string for the instrument.
51+
detector_count : int
52+
The number of detectors used by this instrument.
53+
"""
4354
self.server.state["epics"] = {"pv_data": {}}
4455
bob_dict = parse(xml)
4556

@@ -100,13 +111,15 @@ def serve_javascript(self) -> None:
100111
)
101112

102113
def __init__(self) -> None:
114+
"""Serves the necessary JavaScript files. This is called by __init__."""
103115
self.serve_javascript()
104116

105117

106118
instance = TrameEPICS()
107119

108120

109121
def get_epics_instance() -> TrameEPICS:
122+
"""Retrieves an instance of the TrameEPICS singleton class."""
110123
return instance
111124

112125

0 commit comments

Comments
 (0)