Changeset 4982


Ignore:
Timestamp:
Jun 28, 2021 3:56:18 PM (3 months ago)
Author:
toby
Message:

fix check on non-zero multipliers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIconstrGUI.py

    r4980 r4982  
    335335    def DisableOK(self,setting):
    336336        for id in range(len(self.data)):  # coefficient cannot be zero
    337             if abs(self.data[id][0]) < 1.e-20:
    338                 setting  = False
    339                 break   
     337            try:
     338                if abs(self.data[id][0]) < 1.e-20:
     339                    setting  = False
     340                    break
     341            except:
     342                pass
    340343        if setting:
    341344            self.OkBtn.Enable()
Note: See TracChangeset for help on using the changeset viewer.