ignore errors due to wrong encoding in agr files (#22)
Co-authored-by: Dominik Demuth <dominik.demuth@physik.tu-darmstadt.de> Reviewed-on: #22
This commit is contained in:
		| @@ -1,3 +1,5 @@ | ||||
| import numpy as np | ||||
|  | ||||
| from nmreval.lib.lines import LineStyle | ||||
| from nmreval.lib.symbols import SymbolStyle | ||||
| from nmreval.data.points import Points | ||||
| @@ -90,6 +92,7 @@ class QGraceReader(QtWidgets.QDialog, Ui_Dialog): | ||||
|             label = self._reader.get_property(*key, 'legend').replace('"', '') | ||||
|             # label = self._reader.graphs[key[0]].sets[key[1]]['legend'].replace('"', '') | ||||
|             sd = s.data | ||||
|             sd = np.atleast_2d(sd) | ||||
|             if s.type == 'xydy': | ||||
|                 data.append(Points(x=sd[:, 0], y=sd[:, 1], y_err=sd[:, 2], name=label)) | ||||
|             else: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user