Comments (4)
Actually it seems like this is delegated back to a Reader
object
>>> iset.reader()
<dxtbx.format.FormatMultiImage.Reader object at 0x0000025952A310F0>
>>> iset.reader()._filename
'c:\\dls\\mx\\data\\nt30330\\nt30330-15\\VMXi-AB1698\\well_42\\images\\image_58766.nxs'
from dxtbx.
Ok, where it goes wrong is here:
dxtbx/src/dxtbx/serialize/filename.py
Lines 6 to 24 in 17a0af3
On entry:
path
is'/dls/mx/data/nt30330/nt30330-15/VMXi-AB1698/well_42/images/image_58766.nxs'
directory
is'c:\\Users\\fcx32934\\sw\\cctbx\\build\\dials_data\\dtpb_serial_processed'
Then os.path.join(directory, path)
produces
'c:/dls/mx/data/nt30330/nt30330-15/VMXi-AB1698/well_42/images/image_58766.nxs'
Finally, os.path.abspath(path)
escapes the path separators, resulting in
'c:\\dls\\mx\\data\\nt30330\\nt30330-15\\VMXi-AB1698\\well_42\\images\\image_58766.nxs'
from dxtbx.
Sorry, not quite right (I hate debugging on Windows).
It's just the action of os.path.abspath(path)
. The directory
is irrelevant as the condition is False
In [5]: os.path.abspath(path)
Out[5]: 'c:\\dls\\mx\\data\\nt30330\\nt30330-15\\VMXi-AB1698\\well_42\\images\\image_58766.nxs'
from dxtbx.
What is the intended behaviour of resolve_path
when it is passed a POSIX path on a Windows platform?
from dxtbx.
Related Issues (20)
- `FormatCBFMiniPilatus` agrees to process but fails on Stoe lab-based data
- Imageset slicing is broken by batch offset HOT 12
- Wrong geometry from FullCBFs from Bruker D8 Venture HOT 2
- Reporting a vulnerability HOT 1
- Handling image templates that don't use zero-padding HOT 15
- Loading large experiment lists has become >> 10x slower in recent versions.
- Problem with Registry.py HOT 4
- Imageset slicing issue following scan changes.
- Invalid polygon geometry (21) in ... dynamically masked I03 data
- Use module_offset in multi-panel nexus
- EIGER X 16M at SPring-8 BL41XU HOT 9
- [3.17] seems incompatible with Python 3.12 HOT 5
- [3.17] error: βuint32_tβ does not name a type HOT 2
- [3.17] : DeprecationWarning: SelectableGroups dict interface is deprecated.
- [3.17] PytestUnknownMarkWarning: Unknown pytest.mark.regression
- Support for Rigaku Arc detectors HOT 5
- Generalise support for dynamic shadowing in dxtbx HOT 1
- NXmx bugs
- `FormatEigerNXmxFilewriter.get_raw_data` fails when number of linked data files is large HOT 3
- dxtbx.format.FormatNXmxDLS16M.FormatNXmxDLS16M no longer supports legacy data without VDS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dxtbx.