Skip to content

Commit

Permalink
add reinit_spectra method to Appli class for spectra reinitialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Crackvignoule committed Feb 19, 2025
1 parent e05357c commit 79a0ccc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fitspy/apps/pyside/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ def save_figures(self, dirname_fig=None, fnames=None):
""" Save figures related to 'fnames' into 'dirname_res' """
self.controller.save_figures(dirname_fig=dirname_fig, fnames=fnames)

def reinit_spectra(self, fnames=None):
""" Reinitialize the spectra """
fnames = fnames or self.fnames
self.controller.files_controller.reinitSpectra.emit(fnames)

def reload(self, fname_json):
""" Reload spectra as previously saved in the 'fname_json' file """
self.controller.files_controller.load_files(str(fname_json))
Expand Down

0 comments on commit 79a0ccc

Please sign in to comment.