CRIkit2
CRIkit2 copied to clipboard
Open single HSI spectrum
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.