Ignore:
Timestamp:
Nov 3, 2014 2:48:51 PM (8 years ago)
Author:
vondreele
Message:

use deepcopy for various copy operations in G2ddataGUI
use complementary colors to background for cell edges
trap superlattice in cubics
more fixes to cell indexing routines from possible use of superlattice
add HStrainVals to G2spc
use it (maybe) in G2strIO, Math
make arguments for GetReflPos? & GetReflPosDeriv? the same (use A not G)
add GetDij? to G2strMath
topas xye file comments start with "'" sometimes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIddataGUI.py

    r1547 r1559  
    228228                            if name in ['Scale','Extinction','HStrain']:
    229229                                if name == 'Extinction' and 'HKLF' in sourceDict['Histogram']:
    230                                     UseList[item][name][:1] = copy.copy(sourceDict[name][:1])
     230                                    UseList[item][name][:1] = copy.deepcopy(sourceDict[name][:1])
    231231                                    for itm in ['Eg','Es','Ep']:
    232                                         UseList[item][name][2][itm][1] = copy.copy(copyDict[name][itm])
     232                                        UseList[item][name][2][itm][1] = copy.deepcopy(copyDict[name][itm])
    233233                                else:
    234                                     UseList[item][name][1] = copy.copy(copyDict[name])
     234                                    UseList[item][name][1] = copy.deepcopy(copyDict[name])
    235235                            elif name in ['Size','Mustrain']:
    236                                 UseList[item][name][0] = copy.copy(copyDict[name][0])
    237                                 UseList[item][name][2] = copy.copy(copyDict[name][1])
    238                                 UseList[item][name][4] = copy.copy(copyDict[name][2])
     236                                UseList[item][name][0] = copy.deepcopy(copyDict[name][0])
     237                                UseList[item][name][2] = copy.deepcopy(copyDict[name][1])
     238                                UseList[item][name][4] = copy.deepcopy(copyDict[name][2])
    239239                            elif name == 'Pref.Ori.':
    240                                 UseList[item][name][0] = copy.copy(copyDict[name][0])
    241                                 UseList[item][name][2] = copy.copy(copyDict[name][1])
     240                                UseList[item][name][0] = copy.deepcopy(copyDict[name][0])
     241                                UseList[item][name][2] = copy.deepcopy(copyDict[name][1])
    242242                                if sourceDict[name][0] == 'SH':
    243                                     SHflags = copy.copy(copyDict[name][2])
    244                                     SHterms = copy.copy(sourceDict[name][5])
     243                                    SHflags = copy.deepcopy(copyDict[name][2])
     244                                    SHterms = copy.deepcopy(sourceDict[name][5])
    245245                                    for item in SHflags:
    246                                         SHterms[item][1] = copy.copy(SHflags[item])
     246                                        SHterms[item][1] = copy.deepcopy(SHflags[item])
    247247                            elif name == 'Babinet':
    248248                                for bab in babNames:
    249                                     UseList[item][name][bab][1] = copy.copy(copyDict[name][bab])                                             
     249                                    UseList[item][name][bab][1] = copy.deepcopy(copyDict[name][bab])                                             
    250250                    wx.CallAfter(UpdateDData,G2frame,DData,data)
    251251            finally:
Note: See TracChangeset for help on using the changeset viewer.