Ticket #10751 (new)
Problems with python reading in file paths containing python escape characters
Reported by: | Lottie Greenwood | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Release 3.5 |
Component: | Framework | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: |
Description (last modified by Lottie Greenwood) (diff)
Windows specific due to the use of backslash. \x is used as example below but any character that is considered special if within a string with '\' before it will be a problem.
When mantid is reading in files using python, where the path name contains \x (e.g \xxu\datafiles\...) in some circumstances it appears to to read it as a special escape character and throw a 'ValueError: invalid \x escape' error.
To replicate:
Put data in a folder which at some point in it's file path has an \x. Follow http://www.mantidproject.org/PowderDiffractionReduction or http://www.mantidproject.org/Direct:ConvertToEnergy instructions, using the data from that folder.
Change History
comment:1 Changed 6 years ago by Lottie Greenwood
- Milestone changed from Backlog to Release 3.4
- Description modified (diff)
- Summary changed from Problems reading in file paths containing \x to Problems with python reading in file paths containing python escape characters