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

Open single HSI spectrum #88

Open
fmh96 opened this issue Mar 24, 2020 · 0 comments
Open

Open single HSI spectrum #88

fmh96 opened this issue Mar 24, 2020 · 0 comments

Comments

@fmh96
Copy link

fmh96 commented Mar 24, 2020

Is it possible to import a single HSI spectrum?
When I try to do this, I get the following error:

Traceback` (most recent call last):
File "C:\crikit\io\meta_process.py", line 171, in meta_process
output_cls_instance.x_rep.data = _np.squeeze(_np.linspace(start, stop, steps))
File "C:\crikit\data\replicate.py", line 79, in data
raise TypeError('data must be 1D ndarray')
TypeError: data must be 1D ndarray

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\crikit\CRIkitUI.py", line 694, in fileOpenHDFNIST
self.hsi)
File "C:\crikit\io\macros.py", line 34, in import_hdf_nist_special
_meta_process(_snb(), output_cls_instance)
File "C:\crikit\io\meta_process.py", line 213, in meta_process
_traceback.print_exc(limit=1)
NameError: name '_traceback' is not defined

After that, CRIKit is shut down.
When a map is allready opened in crikit, opening this single spectrum as NRB is possible, though.

Workaround: Create a 2x2 pixel pseudo map as .h5 file, where each data point contains the same single HSI spectrum.

@fmh96 fmh96 changed the title Open single CARS spectrum Open single HSI spectrum Mar 24, 2020
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