|
@@ -34,7 +34,12 @@ from akvo.tressel import mrsurvey
|
34
|
34
|
import pkg_resources # part of setuptools
|
35
|
35
|
version = pkg_resources.require("Akvo")[0].version
|
36
|
36
|
|
37
|
|
-import yaml
|
|
37
|
+from ruamel import yaml
|
|
38
|
+#import ruamel.yaml
|
|
39
|
+#yaml = ruamel.yaml.YAML()
|
|
40
|
+#yaml.indent(mapping=4)
|
|
41
|
+
|
|
42
|
+#import yaml
|
38
|
43
|
# Writes out numpy arrays into Eigen vectors as serialized by Lemma
|
39
|
44
|
class MatrixXr(yaml.YAMLObject):
|
40
|
45
|
yaml_tag = u'MatrixXr'
|
|
@@ -614,7 +619,7 @@ class ApplicationWindow(QtWidgets.QMainWindow):
|
614
|
619
|
self.ui.FIDProcComboBox.setCurrentIndex (0)
|
615
|
620
|
|
616
|
621
|
def ExportPreprocess(self):
|
617
|
|
- """ This method export to YAML
|
|
622
|
+ """ This method exports to YAML
|
618
|
623
|
"""
|
619
|
624
|
try:
|
620
|
625
|
with open('.akvo.last.yaml.path') as f:
|
|
@@ -686,7 +691,7 @@ class ApplicationWindow(QtWidgets.QMainWindow):
|
686
|
691
|
#for line in self.logText:
|
687
|
692
|
# outfile.write(line+"\n")
|
688
|
693
|
yaml.dump(self.YamlNode, outfile)
|
689
|
|
- yaml.dump(INFO, outfile, default_flow_style=False)
|
|
694
|
+ yaml.dump(INFO, outfile) #, default_flow_style=False)
|
690
|
695
|
|
691
|
696
|
def SavePreprocess(self):
|
692
|
697
|
|
|
@@ -1010,9 +1015,9 @@ class ApplicationWindow(QtWidgets.QMainWindow):
|
1010
|
1015
|
#for line in yaml.dump(self.YamlNode, default_flow_style=False):
|
1011
|
1016
|
#for line in nlogText:
|
1012
|
1017
|
# self.ui.logTextBrowser.append( line )
|
1013
|
|
- # self.logText.append( line )
|
|
1018
|
+ # self.logText.append( line )
|
1014
|
1019
|
self.ui.logTextBrowser.clear()
|
1015
|
|
- self.ui.logTextBrowser.append( yaml.dump(self.YamlNode)) #, default_flow_style=False) )
|
|
1020
|
+ self.ui.logTextBrowser.append( yaml.dump(self.YamlNode ))
|
1016
|
1021
|
|
1017
|
1022
|
def disable(self):
|
1018
|
1023
|
self.ui.inputRAWParametersBox.setEnabled(False)
|