Browse Source

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

master
Benito Marcote 9 months ago
parent
commit
e549f9d528
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      nme_standardplots.py

+ 4
- 4
nme_standardplots.py View File

@@ -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