Browse Source

No .vix file in running NMEs... Gets .vax now

master
Benito Marcote 1 year ago
parent
commit
e549f9d528
  1. 8
      nme_standardplots.py

8
nme_standardplots.py

@ -34,18 +34,18 @@ def scp(originpath, destpath):
def get_vixfile(expname: str):
"""Copies the .vix file from ccs to the current directory for the given expname.
"""
if not os.path.isfile(f"{expname.lower()}.vix"):
scp(f"jops@ccs:/ccs/expr/{expname.upper()}/{expname.lower()}.vix", '.')
if not os.path.isfile(f"{expname.lower()}.vax"):
scp(f"jops@ccs:/ccs/expr/{expname.upper()}/{expname.lower()}.vax", '.')
print('Vix file copied to the current directory.')
if not os.path.isfile(f"{expname.upper()}.vix"):
os.symlink(f"{expname.lower()}.vix", f"{expname.upper()}.vix")
os.symlink(f"{expname.lower()}.vax", f"{expname.upper()}.vix")
print('Symbolic link created to vix file.')
# Because j2ms2 will search for a vix file named as the current directory
pwd = os.getcwd().split('/')[-1]
if not os.path.isfile(f"{pwd}.vix"):
os.symlink(f"{expname.lower()}.vix", f"{pwd}.vix")
os.symlink(f"{expname.lower()}.vax", f"{pwd}.vix")

Loading…
Cancel
Save