Sfoglia il codice sorgente

Bug fix that was not removing the existing MS

master
Benito Marcote 9 mesi fa
parent
commit
75292d7de9
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      nme_standardplots.py

+ 2
- 2
nme_standardplots.py Vedi File

@@ -8,7 +8,7 @@ import subprocess
import datetime


__version__ = 1
__version__ = 1.1
__prog__ = 'nme_standardplots.py'
usage = "%(prog)s [-h] <experiment_name> <scan_number>\n"
description = """Produces auto- and cross- correlations from a .cor file produced during a NME.
@@ -67,7 +67,7 @@ def j2ms2(expname: str, scanno: str):
expname is case insensitive.
"""
msfile = f"{expname.lower()}-scan{scanno}.ms"
if os.path.isdir(msfile):
if os.path.exists(msfile):
print("Removing existing MS file.")
process = subprocess.call(["rm", "-rf", msfile], shell=True, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, bufsize=1)


Caricamento…
Annulla
Salva