EPICS Home

Experimental Physics and Industrial Control System


 
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  <20192020  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  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: pyepics autosave
From: Matt Newville via Tech-talk <[email protected]>
To: Sandeep Kumar Malu - UKRI STFC <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Fri, 6 Sep 2019 07:45:41 -0500
Hi Sandeep,

On Fri, Sep 6, 2019 at 4:46 AM Sandeep Kumar Malu - UKRI STFC via Tech-talk <[email protected]> wrote:

Hi,

 

I am trying to save some of the PVs following the link

https://cars9.uchicago.edu/software/python/pyepics3/autosave.html

 

However when I try to save PVs which has hyphen (“-“) e.g .  Z-CAM:WARNING thows an exception “Expected end of line, found '-' “. But all other PVs autosave works fine. Any way to fix it?



Oh, yes, I see that this module is making bad assumptions about what a PV name can be.  This is at

which currently reads:
    pv_name = Word(alphanums+":._$()")

That would definitely need a '-' added.    For now, you could just add that to the `epics/autosave/save_restore.py` file on your system to see if that fixes the problem.

I believe this should also allow '{' and '}', but I'm not sure if there are other characters that should be allowed.

Is there a published regex _expression_ for valid PV names?

--Matt



Replies:
Re: pyepics autosave Mark Rivers via Tech-talk
RE: pyepics autosave Sandeep Kumar Malu - UKRI STFC via Tech-talk
References:
pyepics autosave Sandeep Kumar Malu - UKRI STFC via Tech-talk

Navigate by Date:
Prev: pyepics autosave Sandeep Kumar Malu - UKRI STFC via Tech-talk
Next: Re: pyepics autosave Mark Rivers via Tech-talk
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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: pyepics autosave Sandeep Kumar Malu - UKRI STFC via Tech-talk
Next: Re: pyepics autosave Mark Rivers via Tech-talk
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  <20192020  2021  2022  2023  2024