Skip to content

Commit

Permalink
remove re import, remove-add empty line
Browse files Browse the repository at this point in the history
  • Loading branch information
ngergihun committed Oct 3, 2024
1 parent 9dce636 commit 3a33a12
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions orangecontrib/spectroscopy/io/neaspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
from orangecontrib.spectroscopy.io.util import SpectralFileFormat, _spectra_from_image
from orangecontrib.spectroscopy.utils import MAP_X_VAR, MAP_Y_VAR

import re

class NeaReader(FileFormat, SpectralFileFormat):

EXTENSIONS = (".nea", ".txt")
Expand Down Expand Up @@ -228,7 +226,6 @@ def read_spectra(self):
file_html = folder_file + ".html"

data_gsf_a = self._gsf_reader(file_gsf_a)
print(np.shape(data_gsf_a))
data_gsf_p = self._gsf_reader(file_gsf_p)
info = self._html_reader(file_html)

Expand Down Expand Up @@ -336,7 +333,8 @@ def handle_data(self, data):
def _gsf_reader(self, path):
X, _, _ = reader_gsf(path)
return np.asarray(X)



class NeaImageGSF(FileFormat, SpectralFileFormat):

EXTENSIONS = (".gsf",)
Expand Down Expand Up @@ -366,7 +364,6 @@ def read_spectra(self):
return features, final_data, meta_data



class NeaReaderMultiChannel(FileFormat, SpectralFileFormat):
EXTENSIONS = (".txt",)
DESCRIPTION = "NeaSPEC multichannel (raw) IFGs"
Expand Down

0 comments on commit 3a33a12

Please sign in to comment.