Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ronpandolfi opened this issue Nov 8, 2019 · 0 comments
Open

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

ronpandolfi opened this issue Nov 8, 2019 · 0 comments

Comments

@ronpandolfi
Copy link
Contributor

ronpandolfi commented Nov 8, 2019

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 (bluesky/ophyd#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
    resource_path = os.path.join(root, resource_path)

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant