Ignore:
Timestamp:
Nov 10, 2020 11:24:39 AM (12 months ago)
Author:
toby
Message:

new video tutorial; misc minor RB GUI fixes for Windows; option to show GPX sizes; remove use of deprecated imp module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIscriptable.py

    r4636 r4654  
    13451345        file.close()
    13461346    G2fil.G2Print('gpx file saved as %s'%ProjFile)
    1347 
    1348 # def ImportPowder(reader,filename):
    1349 #     '''Use a reader to import a powder diffraction data file
    1350 
    1351 #     :param str reader: a scriptable reader
    1352 #     :param str filename: full name of powder data file; can be "multi-Bank" data
    1353 
    1354 #     :returns: list rdlist: list of reader objects containing powder data, one for each
    1355 #         "Bank" of data encountered in file. Items in reader object of interest are:
    1356 
    1357 #           * rd.comments: list of str: comments found on powder file
    1358 #           * rd.dnames: list of str: data nammes suitable for use in GSASII data tree NB: duplicated in all rd entries in rdlist
    1359 #           * rd.powderdata: list of numpy arrays: pos,int,wt,zeros,zeros,zeros as needed for a PWDR entry in  GSASII data tree.
    1360 #     '''
    1361 #     rdfile,rdpath,descr = imp.find_module(reader)
    1362 #     rdclass = imp.load_module(reader,rdfile,rdpath,descr)
    1363 #     rd = rdclass.GSAS_ReaderClass()
    1364 #     if not rd.scriptable:
    1365 #         G2fil.G2Print(u'**** ERROR: '+reader+u' is not a scriptable reader')
    1366 #         return None
    1367 #     rdlist = []
    1368 #     if rd.ContentsValidator(filename):
    1369 #         repeat = True
    1370 #         rdbuffer = {} # create temporary storage for file reader
    1371 #         block = 0
    1372 #         while repeat: # loop if the reader asks for another pass on the file
    1373 #             block += 1
    1374 #             repeat = False
    1375 #             rd.objname = ospath.basename(filename)
    1376 #             flag = rd.Reader(filename,None,buffer=rdbuffer,blocknum=block,)
    1377 #             if flag:
    1378 #                 rdlist.append(copy.deepcopy(rd)) # save the result before it is written over
    1379 #                 if rd.repeat:
    1380 #                     repeat = True
    1381 #         return rdlist
    1382 #     G2fil.G2Print(rd.errors)
    1383 #     return None
    13841347
    13851348def SetDefaultDData(dType,histoName,NShkl=0,NDij=0):
Note: See TracChangeset for help on using the changeset viewer.