1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 <2021> 2022 2023 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 <2021> 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | EPICs archiver appliance, exporting DESC field in the JSON |
From: | "Manoussakis, Adamandios via Tech-talk" <tech-talk at aps.anl.gov> |
To: | EPICS tech-talk <tech-talk at aps.anl.gov> |
Date: | Fri, 29 Oct 2021 22:34:41 +0000 |
Hey All, I am wondering why the getdataattime endpoint doesn’t seem to return some of the meta data type fields like DESC or EGU? I tried to go into the policies.py file and add in some more fields to export but not sure I am doing it in the right
spots. These are the two parts in policies.py that I thought would need to be changed to handle the other fields. Although I am still not sure why the getdataforpvs is able to export the meta data fields. # Define a list of fields that will be archived as part of every PV. # The data for these fields will included in the stream for the PV. # We also make an assumption that the data type for these fields is the same as that of the .VAL field def getFieldsArchivedAsPartOfStream(): return ['HIHI','HIGH','LOW','LOLO','LOPR','HOPR','DRVH','DRVL']; if "RTYP" not in pvInfoDict: pvPolicyDict["archiveFields"]=archiveFields else: pvRTYP=pvInfoDict["RTYP"] if pvRTYP=="ai": archiveFields=['HIHI','HIGH','LOW','LOLO','LOPR','HOPR'] elif pvRTYP=="ao": archiveFields=['HIHI','HIGH','LOW','LOLO','LOPR','HOPR','DRVH','DRVL'] elif pvRTYP=="calc": archiveFields=['HIHI','HIGH','LOW','LOLO','LOPR','HOPR'] elif pvRTYP=="calcout": archiveFields=['HIHI','HIGH','LOW','LOLO','LOPR','HOPR'] elif pvRTYP=="longin": archiveFields=['HIHI','HIGH','LOW','LOLO','LOPR','HOPR'] elif pvRTYP=="longout": archiveFields=['HIHI','HIGH','LOW','LOLO','LOPR','HOPR','DRVH','DRVL'] elif pvRTYP=="dfanout": archiveFields=['HIHI','HIGH','LOW','LOLO','LOPR','HOPR'] elif pvRTYP=="sub": archiveFields=['HIHI','HIGH','LOW','LOLO','LOPR','HOPR'] pvPolicyDict["archiveFields"]=archiveFields return pvPolicyDict |