bluesky / event-model

data model for event-based data collection and analysis
https://blueskyproject.io/event-model
BSD 3-Clause "New" or "Revised" License
13 stars 30 forks source link

Mixed path styles when operating cross-platform (windows) #123

Open ronpandolfi opened 4 years ago

ronpandolfi commented 4 years ago

Expected Behavior

Event model should resolve joining paths of different styles when it joining the root to the resource.

Current Behavior

Currently, mixed styles result, where, for example, a windows root append to a posix resource results in a path with both / and \\.

Possible Solution

Inspiration from ophyd (https://github.com/bluesky/ophyd/pull/703) seems relevant; likely some usage of PathLib to compose paths better.

Steps to Reproduce (for bugs)

  1. Have data collected from EPICS AD on linux
  2. Access data from databroker on windows
  3. Check path composition by breaking at https://github.com/bluesky/event-model/blob/a1ea6af9ee1e703764bbda232d754506de0207cd/event_model/__init__.py#L417

Context

This issue may affect operation of databroker on windows, depending on if the handler accepts mixed path styles.

Your Environment

Windows; databroker prerelease 1.0.0b2

(discussed in coalition call on 11/8)