Skip to content

Commit

Permalink
adjust progressbar refrest frequency to 100ms
Browse files Browse the repository at this point in the history
  • Loading branch information
h0anle committed Aug 30, 2024
1 parent 762618d commit 1d43cf9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ def paste_fit_model(self, fnames=None):
self.start_time = time.time()
self.progress_timer = QTimer(self)
self.progress_timer.timeout.connect(self.update_progress_bar)
self.progress_timer.start(400)
self.progress_timer.start(100)

def paste_fit_model_all(self):
"""Apply the copied fit model to all spectra"""
Expand Down Expand Up @@ -655,7 +655,7 @@ def apply_loaded_fit_model(self, fnames=None):
self.start_time = time.time()
self.progress_timer = QTimer(self)
self.progress_timer.timeout.connect(self.update_progress_bar)
self.progress_timer.start(400)
self.progress_timer.start(100)

def update_progress_bar(self):
"""Update fitting progress in GUI"""
Expand Down
4 changes: 2 additions & 2 deletions app/spectrums.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ def apply_loaded_fit_model(self, fnames=None):
self.start_time = time.time()
self.progress_timer = QTimer(self)
self.progress_timer.timeout.connect(self.update_progress_bar)
self.progress_timer.start(400)
self.progress_timer.start(100)

def update_progress_bar(self):
"""Update fitting progress in GUI"""
Expand Down Expand Up @@ -775,7 +775,7 @@ def paste_fit_model(self, fnames=None):
self.start_time = time.time()
self.progress_timer = QTimer(self)
self.progress_timer.timeout.connect(self.update_progress_bar)
self.progress_timer.start(400)
self.progress_timer.start(100)

def paste_fit_model_all(self):
"""Apply the copied fit model to selected spectrum(s)"""
Expand Down

0 comments on commit 1d43cf9

Please sign in to comment.