Skip to content

Error using read_data  #1

@jreadey

Description

@jreadey

Hi, I wanted to try out the package, but it looks like I'm not able to open a file.

I tried this:

from py4DSTEM import read_data
cube = read_data("stack2_60x60+30nmss.h5")

But I'm getting this error:

$ python py4dstem_try.py
Traceback (most recent call last):
  File "py4dstem_try.py", line 1, in <module>
    from py4DSTEM import read_data
  File "/Users/jreadey/anaconda3/envs/4dstem/lib/python3.6/site-packages/py4DSTEM-0.1-py3.6.egg/py4DSTEM/__init__.py", line 1, in <module>
    from . import process
  File "/Users/jreadey/anaconda3/envs/4dstem/lib/python3.6/site-packages/py4DSTEM-0.1-py3.6.egg/py4DSTEM/process/__init__.py", line 1, in <module>
    from .log import *
  File "/Users/jreadey/anaconda3/envs/4dstem/lib/python3.6/site-packages/py4DSTEM-0.1-py3.6.egg/py4DSTEM/process/log.py", line 10, in <module>
    exec(open(pwd+'/../../version.py').read())
FileNotFoundError: [Errno 2] No such file or directory: '/Users/jreadey/anaconda3/envs/4dstem/lib/python3.6/site-packages/py4DSTEM-0.1-py3.6.egg/py4DSTEM/process/../../version.py'
(4dstem) Johns-MBP:gists jreadey$ cat py4dstem_try.py
from py4DSTEM import read_data
cube = read_data("stack2_60x60+30nmss.h5")

Any idea what's up with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions