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

Support pathlib.Path input #48

Open
dstansby opened this issue Nov 7, 2020 · 0 comments
Open

Support pathlib.Path input #48

dstansby opened this issue Nov 7, 2020 · 0 comments

Comments

@dstansby
Copy link

dstansby commented Nov 7, 2020

In calls like f = h4.SD(fname), it would be good to accept a pathlib.Path object as well as a string to pass the filename. Currently doing this raises the error:

  File "/Users/dstansby/github/psipy/psipy/io/mas.py", line 10, in read_hdf
    f = h4.SD(fname)
  File "/Users/dstansby/miniconda3/envs/dev/lib/python3.8/site-packages/pyhdf/SD.py", line 1428, in __init__
    id = _C.SDstart(path, mode)
TypeError: in method 'SDstart', argument 1 of type 'char const *'
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