From ed7ecba531a264613b49ddca5ec32615645eabf9 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Tue, 15 Jun 2021 10:44:09 -0400 Subject: exporting figure into data folder --- eitControl.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'eitControl.py') diff --git a/eitControl.py b/eitControl.py index a409724..883c67c 100644 --- a/eitControl.py +++ b/eitControl.py @@ -157,11 +157,13 @@ class Experiment: except IOError: print('I/O error') + png_file=csv_file.replace(".csv", ".png") + print(f"Picture saved to {png_file}") try: ex = ImageExporter(self.channelGraph['adc0']) ex.parameters()['width'] = 800 ex.parameters()['height'] = 600 - ex.export("snapshot.png") + ex.export(png_file) except ZeroDivisionError: print("Early version (0.10.0) of PyQtGraph has bug in exporter. The image file is not generated.") -- cgit v1.2.3