aboutsummaryrefslogtreecommitdiff
path: root/eitControl.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-06-15 10:44:09 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-06-15 10:44:09 -0400
commited7ecba531a264613b49ddca5ec32615645eabf9 (patch)
tree62d0525eaee2c6260db7eb3097f5ce2ab8d11b0d /eitControl.py
parentf32bb445ad78b8d0c014df0f1d8e3181075a66e9 (diff)
downloadqolab-ed7ecba531a264613b49ddca5ec32615645eabf9.tar.gz
qolab-ed7ecba531a264613b49ddca5ec32615645eabf9.zip
exporting figure into data folder
Diffstat (limited to 'eitControl.py')
-rw-r--r--eitControl.py4
1 files changed, 3 insertions, 1 deletions
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.")