Skip to content
Snippets Groups Projects

added logging and help section

Merged Jacob Wahlman requested to merge 91-logging-and-info-in-gui into develop
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -114,7 +114,7 @@ class Plot(FigureCanvas):
self._plot_values_sfg()
def _save_plot_figure(self):
self._window.logger.info(f"Saving plot of figure: {self.sfg.name}")
self._window.logger.info(f"Saving plot of figure: {self.sfg.name}.")
file_choices = "PNG (*.png)|*.png"
path, ext = QFileDialog.getSaveFileName(self, "Save file", "", file_choices)
path = path.encode("utf-8")
@@ -123,6 +123,7 @@ class Plot(FigureCanvas):
if path:
self.print_figure(path.decode(), dpi=self.dpi)
self._window.logger.info(f"Saved plot: {self.sfg.name} to path: {path}.")
def _plot_values_sfg(self):
x_axis = list(range(len(self.simulation.results.keys())))
Loading