Changeset 4980


Ignore:
Timestamp:
Jun 28, 2021 11:38:26 AM (3 months ago)
Author:
toby
Message:

Fix coeff. display for EQUIV

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIconstrGUI.py

    r4907 r4980  
    334334       
    335335    def DisableOK(self,setting):
     336        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   
    336340        if setting:
    337341            self.OkBtn.Enable()
     
    11911195                        elif eqString[-1] != '':
    11921196                            eqString[-1] += ' = '
    1193                         m = normval/term[0]
     1197                        #m = normval/term[0]
     1198                        m = term[0]/normval
    11941199                        if m == 1:
    11951200                            eqString[-1] += '{:}'.format(var)
     
    12711276            constType = 'Equivalence'
    12721277            lbl = 'The following terms are set to be equal:'
    1273             dlg = ConstraintDialog(G2frame,constType,lbl,items,'/')
     1278            dlg = ConstraintDialog(G2frame,constType,lbl,items,'*')
    12741279        else:
    12751280            return
  • trunk/GSASIIscriptable.py

    r4901 r4980  
    551551                      a string defining what values to refine.
    552552                      Values can be any combination of 'F'
    553                       for fractional occupancy, 'X' for position,
     553                      for site fraction, 'X' for position,
    554554                      and 'U' for Debye-Waller factor
    555555LeBail                Enables LeBail intensity extraction.
     
    39733973    @property
    39743974    def occupancy(self):
    3975         '''Get or set the associated atom's occupancy fraction
     3975        '''Get or set the associated atom's site fraction
    39763976        '''
    39773977        return self.data[self.cx+3]
Note: See TracChangeset for help on using the changeset viewer.