Added support for adaptive orbit feedback and spectral analysis

This commit is contained in:
2023-05-31 11:57:13 +02:00
parent b82b023f33
commit f22a17852c
8 changed files with 327 additions and 437 deletions

View File

@ -1,6 +1,7 @@
import os
import elog
def write(text, Title = 'Test', Application = 'SFBD-Module', Attachment = None):
def writeElog(text, Title = 'Test', Application = 'SFBD-Module', Attachment = None):
"""
Generates an entry in the electronic logbook of SwissFEL Commisisoning Data
:param text: The text to be placed in the log book
@ -11,12 +12,11 @@ def write(text, Title = 'Test', Application = 'SFBD-Module', Attachment = None):
"""
# supplemental info
Author = 'sfop'
Author = os.getlogin()
Category = 'Measurement' # Info or Measurement
System = 'Beamdynamics' # Beamdynamics, Operation, Controls
dict_att = {'Author': Author, 'Application': Application, 'Category': Category, 'Title': Title, 'System': System}
print('\nLog book entry generated')
logbook = elog.open('https://elog-gfa.psi.ch/SwissFEL+commissioning+data/', user='robot', password='robot')
return logbook.post(text, attributes=dict_att, attachments=Attachment)