bad user_name display in scan_display F5
The user_name display in F5 is wrong (user_name comes from getpass.getuser()) .
I am connected to id21 as opid21
(bliss_dev)
lid21nano:opid21@~
$ whoami
opid21
I start a bliss session and check user_name is ok
BLISS [1]: import getpass
BLISS [2]: getpass.getuser()
Out [2]: 'opid21'
Then I start a scan and press F5:
=================== Bliss session 'perceval': watching scans ===================
Scan 75 Wed Apr 01 15:50:52 2020 perceval user = blissadm
loopscan
# dt[s] diode[mA]
0 0 4.68403e-05
Took 0:00:01.091085
user = blissadm
!
If in class Scan I modify like this
user_name = getpass.getuser() #scan_saving.user_name
It fixes the prb (user_name=opid21) so something wrong with:
class BasicScanSaving(EvalParametersWardrobe):
"""Parameterized representation of the scan data file path
base_path/template/data_filename+file_extension
where each part (except for the file extension) is generated
from user attributes and properties.
"""
DEFAULT_VALUES = {
# default and not removable values
"base_path": "/tmp/scans",
"data_filename": "data",
"user_name": getpass.getuser(),
"template": "{session}/",