Quellcode durchsuchen

Bug fix that was not removing the existing MS

master
Benito Marcote vor 9 Monaten
Ursprung
Commit
75292d7de9
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. +2
    -2
      nme_standardplots.py

+ 2
- 2
nme_standardplots.py Datei anzeigen

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


Laden…
Abbrechen
Speichern