

def ImportData(self, data):
    '\n        Function for the user to give the data. The data should be in the form of\n          a DataStructures.xypoint structure, and the x-units must either be an\n          instance of astropy.quantities.Quantity or in nanometers.\n        '
    if (not isinstance(data, DataStructures.xypoint)):
        raise TypeError('ImportData Error! Given data is not a DataStructures.xypoint structure!')
    tmp = data.copy()
    self.xunits = u.nm
    if isinstance(self.x, u.quantity.Quantity):
        self.xunits = tmp.x.unit
        tmp.x = tmp.x.to(u.nm).value
    self.data = tmp
    return

dataset/ETHPy150Open kgullikson88/Telluric-Fitter/src/TelluricFitter.py TelluricFitter.ImportData/VarMisuse@55/177 `tmp`->`self`