Verified Commit f5bef8a2 authored by Marco Kurzynski's avatar Marco Kurzynski
Browse files

fixed cal_val error

parent a5774d67
......@@ -510,8 +510,8 @@ def make_IBB_plot(c1_file, lw, sw, records, output_path):
def main(directory, output_dir=None, record_range=None, excluded_records=None, separate=None, no_spectral=None):
c1_file = os.path.join(directory, ( os.path.basename(directory)[2:] + "C1.RNC" ))
c2_file = os.path.join(directory, ( os.path.basename(directory)[2:] + "C2.RNC" ))
c1_file = os.path.join(directory, ( os.path.basename(directory)[2:8] + "C1.RNC" ))
c2_file = os.path.join(directory, ( os.path.basename(directory)[2:8] + "C2.RNC" ))
if not os.path.isfile(c1_file) or not os.path.isfile(c2_file):
logger.error(f"Invalid input: {directory} -- There must be a YYMMDDC1.RNC and YYMMDDC2.RNC in the same directory")
exit(1)
......@@ -679,7 +679,7 @@ if __name__ == '__main__':
np.seterr(all=numpy_levels[min(3, args.verbose)])
# File format: HHMMSSC.RNC
ae_dirs = file_finder.getDirs(os.path.realpath(args.input))
ae_dirs = file_finder.getDirs(args.input)
if not ae_dirs:
logger.error(f"Invalid input: {args.input} -- No AEYYMMDD "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment