Commit 6296f6c5 authored by Damien Naudet's avatar Damien Naudet
Browse files

Fixed bug with entry filenames.

parent bc1e6b80
......@@ -106,7 +106,11 @@ class SourceItem(ProjectItem):
SourceItem.DataPath,
SourceItem.EntriesPath)
for entry in entries:
entry_stripped = entry.lstrip(xsocs_f_prefix)
idx = entry.find(xsocs_f_prefix)
if idx == 0:
entry_stripped = entry[len(xsocs_f_prefix):]
else:
entry_stripped = entry
dataGrp = HybridItem(self.filename,
path_tpl.format(entry_stripped,
'intensity'),
......
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