Commit 1b244251 authored by Rama Vasudevan's avatar Rama Vasudevan
Browse files

Small fix for BE odf translator for old BEPS files

Some files ended with _c as well as _d. This change accounts for that.
parent eaac960f
......@@ -536,8 +536,8 @@ class BEodfTranslator(Translator):
(folder_path, basename) = path.split(data_filepath)
(super_folder, basename) = path.split(folder_path)
if basename.endswith('_d'):
# Old old data format where the folder ended with a _d for some reason
if basename.endswith('_d') or basename.endswith('_c'):
# Old old data format where the folder ended with a _d or _c to denote a completed spectroscopic run
basename = basename[:-2]
"""
A single pair of real and imaginary files are / were generated for:
......
Supports Markdown
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