Skip to content

Commit

Permalink
Merge pull request #61 from dls-controls/add-resume
Browse files Browse the repository at this point in the history
Add aa.rest.AaRestClient.resume_archiging_pv
  • Loading branch information
willrogers committed Sep 18, 2020
2 parents a0cb320 + 7915458 commit 3e89b9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aa/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ def archive_pv(self, pv, samplingperiod, samplingmethod=aa.SCAN):
def pause_archiving_pv(self, pv):
return self._rest_get('pauseArchivingPV', pv=pv)

def resume_archiving_pv(self, pv):
return self._rest_get('resumeArchivingPV', pv=pv)

def delete_pv(self, pv):
return self._rest_get('deletePV', pv=pv)

Expand Down
1 change: 1 addition & 0 deletions test/test_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def test_AaRestClient_construct_url(kwargs, aa_client):
('getCurrentlyDisconnectedPVs', 'get_currently_disconnected_pvs', {}),
('archivePV', 'archive_pv', {'pv': 'dummy', 'samplingperiod': 10, 'samplingmethod': MONITOR}),
('pauseArchivingPV', 'pause_archiving_pv', {'pv': 'dummy'}),
('resumeArchivingPV', 'resume_archiving_pv', {'pv': 'dummy'}),
('deletePV', 'delete_pv', {'pv': 'dummy'}),
('abortArchivingPV', 'abort_archiving_pv', {'pv': 'dummy'})
])
Expand Down

0 comments on commit 3e89b9a

Please sign in to comment.