Skip to content

Commit

Permalink
Merge pull request #1140 from lnls-sirius/dev/list_archived_pvs
Browse files Browse the repository at this point in the history
Show which PVs of a PVDataSet  are archived/not archived
  • Loading branch information
vellosok75 authored Feb 10, 2025
2 parents d28db27 + 054ac32 commit 21785cb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions siriuspy/siriuspy/clientarch/pvarch.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,22 @@ def is_archived(self):
return False
return True

@property
def not_archived(self):
"""PVs not being archived."""
self.connect()
not_archived = list()
for pvn in self._pvnames:
if self.connector.getPVDetails(pvn) is None:
not_archived.append(pvn)
return not_archived

@property
def archived(self):
"""PVs being archived."""
archived = set(self._pvnames) - set(self.not_archived)
return list(archived)

@property
def timestamp_start(self):
"""Timestamp start."""
Expand Down

0 comments on commit 21785cb

Please sign in to comment.