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

Error When loading file #7

Open
qyangcaltech opened this issue Dec 12, 2018 · 2 comments
Open

Error When loading file #7

qyangcaltech opened this issue Dec 12, 2018 · 2 comments

Comments

@qyangcaltech
Copy link

Hi,

I got the following error for loading spe file generated by LightField6.7. Could you help me check what might be the problem? Thanks!

In [1]: import spe2py as spe

In [2]: loaded_files = spe.load()

ValueError Traceback (most recent call last)
in ()
----> 1 loaded_files = spe.load()

~\pyLabLib-dev\spe2py\spe2py.py in load(filepaths)
273 batch = [[] for _ in range(0, len(filepaths))]
274 for file in range(0, len(filepaths)):
--> 275 batch[file] = SpeFile(filepaths[file])
276 return_type = "list of SpeFile objects"
277 if len(batch) == 1:

~\pyLabLib-dev\spe2py\spe2py.py in init(self, filepath)
53 # Note: these methods depend on self.footer
54 self.xdim, self.ydim = self._get_dims()
---> 55 self.roi, self.nroi = self._get_roi_info()
56 self.wavelength = self._get_wavelength()
57

~\pyLabLib-dev\spe2py\spe2py.py in _get_roi_info(self)
148 else:
149 nroi = 1
--> 150 roi = np.array([regionofinterest])
151
152 return roi, nroi

ValueError: cannot copy sequence with size 0 to array axis with dimension 1

@matthew-hsr
Copy link

matthew-hsr commented Sep 19, 2019

I encountered the same problem - I suspect that it may be due to the Windows version (the same code worked on a Windows 7 machine but not Windows 10 machine)

@elliewilliamson26
Copy link

Is there any resolution to this bug, or is this software just useless now?

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

3 participants