def response(self, params): """Model response. Parameters ---------- params : iterable model Returns ------- array_like model response vector """ ret = super().response(params) if self.complex: return squeezeComplex(ret) return ret
def _ensureData(self, data): """Check data validity""" if isinstance(data, pg.DataContainer): pg.critical("Implement me") if data is None: data = self.fw.dataVals vals = data if isComplex(data): self.fop.complex = True vals = squeezeComplex(data) if abs(min(vals)) < 1e-12: print(min(vals), max(vals)) pg.critical("There are zero data values.") return vals
def response(self, params): ret = super().response(params) if self.complex: return squeezeComplex(ret) return ret