Skip to content

Commit

Permalink
(enh) Replacing map_x and map_y with constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
brnovasco committed Oct 2, 2024
1 parent ab03ff9 commit 781b1d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions orangecontrib/spectroscopy/io/neaspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import Orange
import numpy as np
import pandas as pd
from Orange.data import FileFormat, Table, Domain, ContinuousVariable
from Orange.data import FileFormat, Table
from scipy.interpolate import interp1d

from orangecontrib.spectroscopy.io.gsf import reader_gsf
from orangecontrib.spectroscopy.io.util import SpectralFileFormat

from orangecontrib.spectroscopy.utils import MAP_X_VAR, MAP_Y_VAR

class NeaReader(FileFormat, SpectralFileFormat):

Expand Down Expand Up @@ -593,8 +593,8 @@ def read_spectra(self):
out_data = out_data.astype(np.float64)
# formatting metas
meta_domain = [
Orange.data.ContinuousVariable.make("map_x"),
Orange.data.ContinuousVariable.make("map_y"),
Orange.data.ContinuousVariable.make(MAP_X_VAR),
Orange.data.ContinuousVariable.make(MAP_Y_VAR),
Orange.data.ContinuousVariable.make("run"),
Orange.data.StringVariable.make("channel"),
]
Expand Down

0 comments on commit 781b1d2

Please sign in to comment.